Lines Matching refs:task

87      * Indicates the current status of the task. Each status will be set only once
88 * during the lifetime of a task.
92 * Indicates that the task has not been executed yet.
96 * Indicates that the task is running.
120 * Creates a new asynchronous task. This constructor must be invoked on the UI thread.
169 * Returns the current status of this task.
180 * by the caller of this task.
185 * @param params The parameters of the task.
187 * @return A result, defined by the subclass of this task.
208 * <p>This method won't be invoked if the task was cancelled.</p>
268 * Returns <tt>true</tt> if this task was cancelled before it completed
269 * normally. If you are calling {@link #cancel(boolean)} on the task,
271 * {@link #doInBackground(Object[])} to end the task as soon as possible.
273 * @return <tt>true</tt> if task was cancelled before it completed
282 * <p>Attempts to cancel execution of this task. This attempt will
283 * fail if the task has already completed, already been cancelled,
285 * and this task has not started when <tt>cancel</tt> is called,
286 * this task should never run. If the task has already started,
288 * whether the thread executing this task should be interrupted in
289 * an attempt to stop the task.</p>
296 * {@link #doInBackground(Object[])} to finish the task as early as
300 * task should be interrupted; otherwise, in-progress tasks are allowed
303 * @return <tt>false</tt> if the task could not be cancelled,
350 * Executes the task with the specified parameters. The task returns
353 * <p>Note: this function schedules the task on a queue for a single background
367 * @param params The parameters of the task.
380 * Executes the task with the specified parameters. The task returns
401 * @param params The parameters of the task.
414 throw new IllegalStateException("Cannot execute task:"
415 + " the task is already running.");
417 throw new IllegalStateException("Cannot execute task:"
418 + " the task has already been executed "
419 + "(a task can be executed only once)");
447 * {@link #onProgressUpdate} will note be called if the task has been
501 AsyncTaskResult(ModernAsyncTask task, Data... data) {
502 mTask = task;