Searched defs:task (Results 1 - 25 of 61) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/processing/
H A DProcessingTaskConsumer.java29 public void enqueueTask(ProcessingTask task); argument
H A DProcessingServiceManager.java72 * Enqueues a new task. If the service is not already running, it will be
75 * @param task The task to be enqueued.
78 public synchronized void enqueueTask(ProcessingTask task) { argument
79 mQueue.add(task);
88 * Remove the next task from the queue and return it.
155 * is empty {@link #popNextSession()} returns null), the task will kill
/packages/apps/Dialer/src/com/android/dialer/util/
H A DAsyncTaskExecutor.java43 * The identifier supplied is any Object that can be used to identify the task later. Most
45 * accepted, though of course this won't help in identifying the task later.
47 <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params); argument
H A DAsyncTaskExecutors.java94 public <T> AsyncTask<T, ?, ?> submit(Object identifer, AsyncTask<T, ?, ?> task, argument
97 return task.executeOnExecutor(mExecutor, params);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DAsyncTaskUtil.java49 public static <Param> void executeInParallel(AsyncTask<Param, ?, ?> task, Param... params) { argument
51 task.execute(params);
54 sMethodExecuteOnExecutor.invoke(task, sExecutor, params);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DDisableBluetoothSharingTask.java17 package com.android.managedprovisioning.task;
H A DManagedProfileSettingsTask.java17 package com.android.managedprovisioning.task;
H A DDisableInstallShortcutListenersTask.java17 package com.android.managedprovisioning.task;
H A DDisallowAddUserTask.java17 package com.android.managedprovisioning.task;
H A DSetDevicePolicyTask.java17 package com.android.managedprovisioning.task;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DNamedTaskExecutor.java25 * Schedules a task for execution. Implementations should not throw
26 * {@link java.util.concurrent.RejectedExecutionException} if the task
29 void execute(NamedTask task); argument
H A DPerNameExecutor.java23 * Uses a separate executor for each task name.
51 public synchronized void execute(NamedTask task) { argument
55 String name = task.getName();
61 executor.execute(task);
H A DBatchingNamedTaskExecutor.java48 public void execute(NamedTask task) { argument
50 if (DBG) Log.d(TAG, "Queuing " + task);
51 mQueuedTasks.add(task);
55 private void dispatch(NamedTask task) { argument
56 if (DBG) Log.d(TAG, "Dispatching " + task);
57 mExecutor.execute(task);
74 for (NamedTask task : batch) {
75 dispatch(task);
H A DSingleThreadNamedTaskExecutor.java56 public void execute(NamedTask task) { argument
60 mQueue.add(task);
76 NamedTask task;
78 task = mQueue.take();
82 currentThread.setName(threadName + " " + task.getName());
84 if (DBG) Log.d(TAG, "Running task " + task.getName());
85 task.run();
86 if (DBG) Log.d(TAG, "Task " + task.getName() + " complete");
88 Log.e(TAG, "Task " + task
[all...]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DImageProcessorListener.java34 * Called when a task starts running.
36 * @param task Task specification that includes unique content id
38 public void onStart(TaskImageContainer.TaskInfo task); argument
43 * @param task Task specification that includes unique content id
46 public void onResultCompressed(TaskImageContainer.TaskInfo task, argument
52 * @param task Task specification that includes unique content id
55 public void onResultUncompressed(TaskImageContainer.TaskInfo task, argument
61 * @param task Task specification that includes unique content id
64 public void onResultUri(TaskImageContainer.TaskInfo task, Uri uri); argument
67 // public void onError(TaskImageContainer.JobInfo task);
[all...]
H A DImageTaskManager.java24 * its task dependencies and manage its image references.
31 * dependent task does NOT require the image reference, it should be passed
33 * called after the task has completed its own computations, but before it
43 * Spawns a single dependent task from internal implementation of a task.
45 * @param task The task to be run
48 public boolean appendTasks(ImageToProcess img, TaskImageContainer task); argument
51 * Signals the ImageTaskManager that a task has released a reference to the
57 * @param img the image to be released by the task
[all...]
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
H A DDisallowAddUserTaskTest.java17 package com.android.managedprovisioning.task;
H A DInstallPackageTaskTest.java17 package com.android.managedprovisioning.task;
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
H A DMockExecutor.java23 * A simple executor that maintains a queue and executes one task synchronously every
33 public void execute(Runnable task) { argument
35 mQueue.addLast(task);
H A DMockNamedTaskExecutor.java23 * A simple executor that maintains a queue and executes one task synchronously every
31 public void execute(NamedTask task) { argument
32 mExecutor.execute(task);
/packages/services/Telephony/src/com/android/phone/vvm/omtp/scheduling/
H A DPolicy.java27 void onCreate(BaseTask task, Intent intent, int flags, int startId); argument
H A DBlockerTask.java25 * Task to block another task of the same ID from being queued for a certain amount of time.
51 public void onDuplicatedTaskAdded(Task task) { argument
53 .v(TAG, task.toString() + "blocked, " + getReadyInMilliSeconds() + "millis remaining");
H A DMinimalIntervalPolicy.java24 * If a task with this policy succeeds, a {@link BlockerTask} with the same {@link TaskId} of the
25 * task will be queued immediately, preventing the same task from running for a certain amount of
39 public void onCreate(BaseTask task, Intent intent, int flags, int startId) { argument
40 mTask = task;
H A DPostponePolicy.java24 * A task with Postpone policy will not be executed immediately. It will wait for a while and if a
25 * duplicated task is queued during the duration, the task will be postponed further. The task will
26 * only be executed if no new task was added in postponeMillis. Useful to batch small tasks in quick
41 public void onCreate(BaseTask task, Intent intent, int flags, int startId) { argument
42 mTask = task;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
H A DProcessingTaskController.java42 ProcessingTask task = mTasks.get(msg.what);
43 if (task != null) {
45 task.onResult((ProcessingTask.Result) msg.obj);
47 task.onUpdate((ProcessingTask.Update) msg.obj);
57 ProcessingTask task = mTasks.get(msg.what);
58 if (task != null) {
59 task.processRequest((ProcessingTask.Request) msg.obj);
89 public void add(ProcessingTask task) { argument
90 task.added(this);
91 mTasks.put(task
[all...]

Completed in 180 milliseconds

123