Lines Matching defs:task
60 // Set to true to indicate that the task has been posted to a handler for
78 // reflect the fact that the task was being canceled.
109 /* Runs on the UI thread, when the waiting task is posted to a handler.
110 * This method is only executed when task execution was deferred (waiting was true). */
117 /* Used for testing purposes to wait for the task to complete. */
174 // There was a pending task already waiting for a previous
177 "cancelLoad: still waiting for cancelled task; dropping next");
185 // There is a task, but it is waiting for the time it should
187 if (DEBUG) Slog.v(TAG, "cancelLoad: task is waiting, dropping it");
207 * Called if the task was canceled before it was completed. Gives the class a chance
211 * if the task threw {@link OperationCanceledException}.
239 void dispatchOnCancelled(LoadTask task, D data) {
241 if (mCancellingTask == task) {
242 if (DEBUG) Slog.v(TAG, "Cancelled task is now canceled!");
252 void dispatchOnLoadComplete(LoadTask task, D data) {
253 if (mTask != task) {
254 if (DEBUG) Slog.v(TAG, "Load complete of old task, trying to cancel");
255 dispatchOnCancelled(task, data);
351 LoadTask task = mTask;
352 if (task != null) {
353 task.waitForLoader();