Searched refs:task (Results 1 - 25 of 38) sorted by relevance

12

/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.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);
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
/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);
H A DWindowManagerService.java3223 Slog.w(TAG, "validateAppTokens: empty task list");
3227 TaskGroup task = tasks.get(0);
3228 int taskId = task.taskId;
3240 task = tasks.get(t);
3241 List<IApplicationToken> tokens = task.tokens;
3252 for (tokenNdx = localTokens.size() - 1, v = task.tokens.size() - 1;
3401 Task task = new Task(atoken, stack, userId);
3402 mTaskIdToTask.put(taskId, task);
3403 stack.addTask(task, true);
3404 return task;
[all...]
/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);
H A DRecentLoader.java177 final RecentTask task = new RecentTask(root.authority, root.rootId);
178 mTasks.put(root, task);
183 for (RecentTask task : mTasks.values()) {
184 ProviderExecutor.forAuthority(task.authority).execute(task);
200 for (RecentTask task : mTasks.values()) {
201 if (task.isDone()) {
203 final Cursor cursor = task.get();
307 for (RecentTask task : mTasks.values()) {
308 IoUtils.closeQuietly(task);
[all...]
/frameworks/base/tools/aidl/
H A Doptions.h18 int task; member in struct:Options
H A Doptions.cpp47 options->task = PREPROCESS_AIDL;
51 options->task = COMPILE_AIDL;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
H A DMffTestCase.java43 FutureTask<MffContext> task = new FutureTask<MffContext>(new Callable<MffContext>() {
53 handler.post(task);
55 mMffContext = task.get();
/frameworks/base/services/java/com/android/server/am/
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
1667 insertTaskAtTop(TaskRecord task) argument
1872 resetTargetTaskIfNeededLocked(TaskRecord task, boolean forceReset) argument
2040 resetAffinityTaskIfNeededLocked(TaskRecord affinityTask, TaskRecord task, boolean topTaskIsHigher, boolean forceReset, int taskInsertionPoint) argument
3173 logStartActivity(int tag, ActivityRecord r, TaskRecord task) argument
3603 removeTask(TaskRecord task) argument
3623 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 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...]
/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/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/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/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/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DTestDocumentsProvider.java254 CloudTask task = mTask != null ? mTask.get() : null;
255 if (task == null) {
256 Log.d(TAG, "No network task found; starting!");
257 task = new CloudTask(resolver, notifyUri);
258 mTask = new WeakReference<CloudTask>(task);
259 new Thread(task).start();
276 if (task.includeIfFinished(result)) {
288 result.keepAlive = task;
/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/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/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);

Completed in 624 milliseconds

12