Address comments/fix javadoc in TaskManager API

Change-Id: I0cdff12971b88acb40571a5e63b7d644ef629911
This commit is contained in:
Matthew Williams
2014-05-01 10:55:28 -07:00
parent c9b859a422
commit 57df4fd69e
3 changed files with 7 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ interface ITaskCallback {
* 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);
}

View File

@@ -22,9 +22,9 @@ import android.app.task.TaskParams;
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 {

View File

@@ -31,7 +31,7 @@ import com.android.internal.annotations.GuardedBy;
/**
* <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 @@ public abstract class TaskService extends Service {
/**
* 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;
/**