Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57df4fd6 authored by Matthew Williams's avatar Matthew Williams
Browse files

Address comments/fix javadoc in TaskManager API

Change-Id: I0cdff12971b88acb40571a5e63b7d644ef629911
parent c9b859a4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}
+3 −3
Original line number Diff line number Diff line
@@ -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 {
+2 −2
Original line number Diff line number Diff line
@@ -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;
    /**