summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/TaskManagerImpl.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2014-05-19 13:46:29 -0700
committerChristopher Tate <ctate@google.com>2014-05-23 16:41:09 -0700
commitfa380e982e41b0dcbbcf2201803abf26808016b5 (patch)
tree8d418aaa3b36df0b88f98c7c3c6ce1c84b3d2e9e /core/java/android/app/TaskManagerImpl.java
parentcd3a8245489fa36c528b075efe99a147cf4f6785 (diff)
downloadframeworks_base-fa380e982e41b0dcbbcf2201803abf26808016b5.zip
frameworks_base-fa380e982e41b0dcbbcf2201803abf26808016b5.tar.gz
frameworks_base-fa380e982e41b0dcbbcf2201803abf26808016b5.tar.bz2
DO NOT MERGE - Run the task manager service at startup
Also moves most of it into android.app.task rather than android.content. (Cherrypick from master) Change-Id: Ic07a664bf54bc3e40aa0b892946edba4bf37262a
Diffstat (limited to 'core/java/android/app/TaskManagerImpl.java')
-rw-r--r--core/java/android/app/TaskManagerImpl.java62
1 files changed, 62 insertions, 0 deletions
diff --git a/core/java/android/app/TaskManagerImpl.java b/core/java/android/app/TaskManagerImpl.java
new file mode 100644
index 0000000..f42839e
--- /dev/null
+++ b/core/java/android/app/TaskManagerImpl.java
@@ -0,0 +1,62 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// in android.app so ContextImpl has package access
+package android.app;
+
+import android.app.task.ITaskManager;
+import android.app.task.Task;
+import android.app.task.TaskManager;
+
+import java.util.List;
+
+
+/**
+ * Concrete implementation of the TaskManager interface
+ * @hide
+ */
+public class TaskManagerImpl extends TaskManager {
+ ITaskManager mBinder;
+
+ /* package */ TaskManagerImpl(ITaskManager binder) {
+ mBinder = binder;
+ }
+
+ @Override
+ public int schedule(Task task) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public void cancel(int taskId) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void cancelAll() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public List<Task> getAllPendingTasks() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}