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

/frameworks/base/libs/hwui/thread/
H A DTaskProcessor.h36 virtual void process(const sp<TaskBase>& task) = 0;
45 bool add(const sp<Task<T> >& task);
47 virtual void onProcess(const sp<Task<T> >& task) = 0;
50 virtual void process(const sp<TaskBase>& task) { argument
51 sp<Task<T> > realTask = static_cast<Task<T>* >(task.get());
53 // sp<Task<T> > realTask = static_cast<sp<Task<T> > >(task);
61 bool TaskProcessor<T>::add(const sp<Task<T> >& task) { argument
64 return mManager->addTask(task, self);
H A DTaskManager.h44 * Returns true if this task manager can run tasks,
61 bool addTask(const sp<Task<T> >& task, const sp<TaskProcessor<T> >& processor) { argument
62 return addTaskBase(sp<TaskBase>(task), sp<TaskProcessorBase>(processor));
65 bool addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor);
70 TaskWrapper(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor): argument
71 mTask(task), mProcessor(processor) {
82 bool addTask(TaskWrapper task);
94 // task is available in the list
H A DTaskManager.cpp57 bool TaskManager::addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor) { argument
59 TaskWrapper wrapper(task, processor);
90 const TaskWrapper& task = tasks.itemAt(i); local
91 task.mProcessor->process(task.mTask);
97 bool TaskManager::WorkerThread::addTask(TaskWrapper task) { argument
103 ssize_t index = mTasks.add(task);
/frameworks/base/tools/aidl/
H A Doptions.h18 int task; member in struct:Options
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DProviderExecutor.java73 * Execute the given task. If given task is not {@link Preemptable}, it will
76 public <P> void execute(AsyncTask<P, ?, ?> task, P... params) { argument
77 if (task instanceof Preemptable) {
79 mPreemptable.add(new WeakReference<Preemptable>((Preemptable) task));
81 task.executeOnExecutor(mNonPreemptingExecutor, params);
83 task.executeOnExecutor(this, params);
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java74 final ActivityManager.RecentTaskInfo task,
88 if (task.id >= 0 && thumbs != null) {
90 mAm.removeSubTask(task.id, subIndex+1);
92 mAm.moveTaskToFront(task.id, ActivityManager.MOVE_TASK_WITH_HOME);
95 startActivity(task.baseIntent);
97 Log.w("foo", "Unable to start task: " + e);
106 if (task.id >= 0 && thumbs != null) {
108 mAm.removeTask(task.id, ActivityManager.REMOVE_TASK_KILL_PROCESS);
110 mAm.removeSubTask(task.id, subIndex);
73 addThumbnail(LinearLayout container, Bitmap bm, final ActivityManager.RecentTaskInfo task, final ActivityManager.TaskThumbnails thumbs, final int subIndex) argument
/frameworks/support/v4/java/android/support/v4/content/
H A DAsyncTaskLoader.java119 * 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) { argument
201 if (mCancellingTask == task) {
202 if (DEBUG) Log.v(TAG, "Cancelled task i
210 dispatchOnLoadComplete(LoadTask task, D data) argument
[all...]
H A DModernAsyncTask.java86 * 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 wa
492 AsyncTaskResult(ModernAsyncTask task, Data... data) argument
[all...]
/frameworks/base/core/java/android/content/
H A DAsyncTaskLoader.java60 // 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 wa
239 dispatchOnCancelled(LoadTask task, D data) argument
252 dispatchOnLoadComplete(LoadTask task, D data) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DTaskStack.java97 * @param task The task to add.
100 boolean addTask(Task task, boolean toTop) { argument
109 if (task.mUserId != currentUserId) {
110 // Place the task below all current user tasks.
119 if (DEBUG_TASK_MOVEMENT) Slog.d(TAG, "addTask: task=" + task + " toTop=" + toTop
121 mTasks.add(stackNdx, task);
123 task.mStack = this;
124 mDisplayContent.addTask(task, toTo
128 moveTaskToTop(Task task) argument
135 moveTaskToBottom(Task task) argument
146 removeTask(Task task) argument
[all...]
H A DDisplayContent.java174 void addTask(Task task, boolean toTop) { argument
175 mTaskHistory.remove(task);
177 final int userId = task.mUserId;
195 mTaskHistory.add(taskNdx, task);
196 EventLog.writeEvent(EventLogTags.WM_TASK_MOVED, task.taskId, toTop ? 1 : 0, taskNdx);
199 void removeTask(Task task) { argument
200 mTaskHistory.remove(task);
/frameworks/base/core/java/android/os/
H A DAsyncTask.java46 * <p>An asynchronous task is defined by a computation that runs on a background thread and
47 * whose result is published on the UI thread. An asynchronous task is defined by 3 generic
89 * <p>Once created, a task is executed very simply:</p>
95 * <p>The three types used by an asynchronous task are the following:</p>
97 * <li><code>Params</code>, the type of the parameters sent to the task upon
104 * <p>Not all types are always used by an asynchronous task. To mark a type as unused,
111 * <p>When an asynchronous task is executed, the task goes through 4 steps:</p>
113 * <li>{@link #onPreExecute()}, invoked on the UI thread before the task
114 * is executed. This step is normally used to setup the task, fo
663 AsyncTaskResult(AsyncTask task, Data... data) argument
[all...]
H A DHandler.java418 * Runs the specified task synchronously.
429 * must synchronously await completion of a task that must run on the
746 public BlockingRunnable(Runnable task) { argument
747 mTask = task;
/frameworks/base/libs/hwui/
H A DPathCache.cpp218 // If there is a pending task we must wait for it to return
220 const sp<Task<SkBitmap*> >& task = texture->task(); local
221 if (task != NULL) {
222 SkBitmap* bitmap = task->getResult();
225 // If there is a pending task, the path was not added
343 void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) { argument
344 sp<PathTask> t = static_cast<PathTask* >(task.get());
437 const sp<Task<SkBitmap*> >& task = texture->task(); local
486 sp<PathTask> task = new PathTask(path, paint, texture); local
[all...]
H A DPathCache.h81 sp<Task<SkBitmap*> > task() const { function in struct:android::uirenderer::PathTexture
85 void setTask(const sp<Task<SkBitmap*> >& task) { argument
86 mTask = task;
313 virtual void onProcess(const sp<Task<SkBitmap*> >& task);
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipService.java1226 public void execute(Runnable task) { argument
1227 mMyWakeLock.acquire(task);
1228 Message.obtain(this, 0/* don't care */, task).sendToTarget();
1240 private void executeInternal(Runnable task) { argument
1242 task.run();
1244 loge("run task: " + task, t);
1246 mMyWakeLock.release(task);
/frameworks/base/services/java/com/android/server/am/
H A DActivityRecord.java96 TaskRecord task; // the task this is in. field in class:ActivityRecord
119 boolean frontOfTask; // is this the root activity of its task?
157 pw.print(" task="); pw.println(task);
482 if (task != null && task.removeActivity(this)) {
483 if (task != newTask) {
484 mStackSupervisor.removeTask(task);
491 if (task !
[all...]
H A DActivityStack.java108 // How long until we reset a task when the user returns to it. Currently
357 final TaskRecord task = mTaskHistory.get(taskNdx);
358 final ArrayList<ActivityRecord> activities = task.mActivities;
374 * @param taskId If non-zero, we'll attempt to skip over records with the same task ID.
380 TaskRecord task = mTaskHistory.get(taskNdx);
381 if (task.taskId == taskId) {
384 ArrayList<ActivityRecord> activities = task.mActivities;
397 // Iterate to find the first non-empty task stack. Note that this code can
418 final TaskRecord task = mTaskHistory.get(taskNdx);
419 if (task
1658 insertTaskAtTop(TaskRecord task) argument
1863 resetTargetTaskIfNeededLocked(TaskRecord task, boolean forceReset) argument
2031 resetAffinityTaskIfNeededLocked(TaskRecord affinityTask, TaskRecord task, boolean topTaskIsHigher, boolean forceReset, int taskInsertionPoint) argument
3161 logStartActivity(int tag, ActivityRecord r, TaskRecord task) argument
3591 removeTask(TaskRecord task) argument
3611 addTask(final TaskRecord task, final boolean toTop) argument
[all...]
H A DActivityStackSupervisor.java131 * new task is created. */
288 prev.task.mOnTopOfHome = false;
306 TaskRecord task = stack.taskForIdLocked(id);
307 if (task != null) {
308 return task;
334 void removeTask(TaskRecord task) { argument
335 mWindowManager.removeTask(task.taskId);
336 final ActivityStack stack = task.stack;
338 if (r != null && r.task == task) {
[all...]
H A DActivityManagerService.java695 * waiting to receive all of the thumbnails for a task.
2258 r.task.stack.notifyActivityDrawnLocked(r);
2276 msg.obj = r.task.askedCompatMode ? null : r;
3331 final void addRecentTaskLocked(TaskRecord task) { argument
3333 // Quick case: check if the top-most recent task is the same.
3334 if (N > 0 && mRecentTasks.get(0) == task) {
3337 // Remove any existing entries that are the same kind of task.
3340 if (task.userId == tr.userId
3341 && ((task.affinity != null && task
7019 moveTaskToFront(int task, int flags, Bundle options) argument
7090 moveTaskBackwards(int task) argument
7105 moveTaskBackwardsLocked(int task) argument
[all...]
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorMain.cpp136 int task,
1407 pContext->onProgressUpdateMethodId, 1/*task status*/,
1421 pContext->onProgressUpdateMethodId, 1/*task status*/,
1430 pContext->onProgressUpdateMethodId, 0/*task status*/,
2421 int task,
2433 videoEditJava_getEngineCToJava(task), progress);
2771 // Check if a task is being performed.
2419 videoEditor_callOnProgressUpdate( ManualEditContext* pContext, int task, int progress) argument
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebViewChromium.java94 public void addTask(Runnable task) { argument
95 mQueue.add(task);
111 Runnable task = mQueue.poll();
112 while(task != null) {
113 task.run();
114 task = mQueue.poll();
164 private <T> T runBlockingFuture(FutureTask<T> task) { argument
169 mRunQueue.addTask(task);
171 return task.get(4, TimeUnit.SECONDS);
184 FutureTask<Void> task
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManagerNative.java579 int task = data.readInt();
583 moveTaskToFront(task, fl, options);
590 int task = data.readInt();
591 moveTaskToBack(task);
608 int task = data.readInt();
609 moveTaskBackwards(task);
2663 public void moveTaskToFront(int task, int flags, Bundle options) throws RemoteException argument
2668 data.writeInt(task);
2681 public void moveTaskToBack(int task) throws RemoteException argument
2686 data.writeInt(task);
2706 moveTaskBackwards(int task) argument
[all...]
H A DIActivityManager.java116 public void moveTaskToFront(int task, int flags, Bundle options) throws RemoteException; argument
117 public void moveTaskToBack(int task) throws RemoteException; argument
119 public void moveTaskBackwards(int task) throws RemoteException; argument

Completed in 712 milliseconds