Lines Matching defs:task
119 * Attempt to cancel the current load task. See {@link android.os.AsyncTask#cancel(boolean)}
129 * @return Returns <tt>false</tt> if the task could not be cancelled,
138 // There was a pending task already waiting for a previous
141 "cancelLoad: still waiting for cancelled task; dropping next");
149 // There is a task, but it is waiting for the time it should
151 if (DEBUG) Log.v(TAG, "cancelLoad: task is waiting, dropping it");
170 * Called if the task was canceled before it was completed. Gives the class a chance
199 void dispatchOnCancelled(LoadTask task, D data) {
201 if (mCancellingTask == task) {
202 if (DEBUG) Log.v(TAG, "Cancelled task is now canceled!");
210 void dispatchOnLoadComplete(LoadTask task, D data) {
211 if (mTask != task) {
212 if (DEBUG) Log.v(TAG, "Load complete of old task, trying to cancel");
213 dispatchOnCancelled(task, data);
256 LoadTask task = mTask;
257 if (task != null) {
259 task.done.await();