Lines Matching defs:task

86      * Indicates the current status of the task. Each status will be set only once
87 * during the lifetime of a task.
91 * Indicates that the task has not been executed yet.
95 * Indicates that the task is running.
115 * Creates a new asynchronous task. This constructor must be invoked on the UI thread.
164 * Returns the current status of this task.
175 * by the caller of this task.
180 * @param params The parameters of the task.
182 * @return A result, defined by the subclass of this task.
203 * <p>This method won't be invoked if the task was cancelled.</p>
263 * Returns <tt>true</tt> if this task was cancelled before it completed
264 * normally. If you are calling {@link #cancel(boolean)} on the task,
266 * {@link #doInBackground(Object[])} to end the task as soon as possible.
268 * @return <tt>true</tt> if task was cancelled before it completed
277 * <p>Attempts to cancel execution of this task. This attempt will
278 * fail if the task has already completed, already been cancelled,
280 * and this task has not started when <tt>cancel</tt> is called,
281 * this task should never run. If the task has already started,
283 * whether the thread executing this task should be interrupted in
284 * an attempt to stop the task.</p>
291 * {@link #doInBackground(Object[])} to finish the task as early as
295 * task should be interrupted; otherwise, in-progress tasks are allowed
298 * @return <tt>false</tt> if the task could not be cancelled,
345 * Executes the task with the specified parameters. The task returns
348 * <p>Note: this function schedules the task on a queue for a single background
362 * @param params The parameters of the task.
375 * Executes the task with the specified parameters. The task returns
396 * @param params The parameters of the task.
409 throw new IllegalStateException("Cannot execute task:"
410 + " the task is already running.");
412 throw new IllegalStateException("Cannot execute task:"
413 + " the task has already been executed "
414 + "(a task can be executed only once)");
442 * {@link #onProgressUpdate} will note be called if the task has been
492 AsyncTaskResult(ModernAsyncTask task, Data... data) {
493 mTask = task;