Address comments/fix javadoc in TaskManager API
Change-Id: I0cdff12971b88acb40571a5e63b7d644ef629911
diff --git a/core/java/android/app/task/ITaskCallback.aidl b/core/java/android/app/task/ITaskCallback.aidl
index 63fcdd8..ffa57d1 100644
--- a/core/java/android/app/task/ITaskCallback.aidl
+++ b/core/java/android/app/task/ITaskCallback.aidl
@@ -47,6 +47,7 @@
* the next one and stop attributing wakelock time to us etc.
*
* @param taskId Unique integer used to identify this task.
+ * @param reschedule Whether or not to reschedule this task.
*/
- void taskFinished(int taskId, boolean taskFailed);
+ void taskFinished(int taskId, boolean reschedule);
}
diff --git a/core/java/android/app/task/ITaskService.aidl b/core/java/android/app/task/ITaskService.aidl
index c25abc5..87b0191 100644
--- a/core/java/android/app/task/ITaskService.aidl
+++ b/core/java/android/app/task/ITaskService.aidl
@@ -22,9 +22,9 @@
import android.os.Bundle;
/**
- * Interface that the framework uses to communicate with application code
- * that implements a TaskService. End user code does not implement this interface directly;
- * instead, the app's idle service implementation will extend android.app.maintenance.IdleService.
+ * Interface that the framework uses to communicate with application code that implements a
+ * TaskService. End user code does not implement this interface directly; instead, the app's
+ * service implementation will extend android.app.task.TaskService.
* {@hide}
*/
oneway interface ITaskService {
diff --git a/core/java/android/app/task/TaskService.java b/core/java/android/app/task/TaskService.java
index d22f7f1..81333be 100644
--- a/core/java/android/app/task/TaskService.java
+++ b/core/java/android/app/task/TaskService.java
@@ -31,7 +31,7 @@
/**
* <p>Entry point for the callback from the {@link android.content.TaskManager}.</p>
* <p>This is the base class that handles asynchronous requests that were previously scheduled. You
- * are responsible for overriding {@Link AbstracTaskService#onPerformTask(Bundle)}, which is where
+ * are responsible for overriding {@link TaskService#onStartTask(TaskParams)}, which is where
* you will implement your task logic.</p>
* <p>This service executes each incoming task on a {@link android.os.Handler} running on your
* application's main thread. This means that you <b>must</b> offload your execution logic to
@@ -61,7 +61,7 @@
/**
* Identifier for a message that will result in a call to
- * {@link #onStartTask(android.app.task.TaskParams, android.os.Bundle)}.
+ * {@link #onStartTask(android.app.task.TaskParams)}.
*/
private final int MSG_EXECUTE_TASK = 0;
/**