/frameworks/support/v4/java/android/support/v4/os/ |
H A D | AsyncTaskCompat.java | 29 * Executes the task with the specified parameters, allowing multiple tasks to run in parallel 32 * @param task The {@link android.os.AsyncTask} to execute. 33 * @param params The parameters of the task. 37 AsyncTask<Params, Progress, Result> task, 39 if (task == null) { 40 throw new IllegalArgumentException("task can not be null"); 45 AsyncTaskCompatHoneycomb.executeParallel(task, params); 48 task.execute(params); 51 return task; 36 executeParallel( AsyncTask<Params, Progress, Result> task, Params... params) argument
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderThread.cpp | 63 void TaskQueue::queue(RenderTask* task) { argument 65 // to have the same task queued twice 66 LOG_ALWAYS_FATAL_IF(task->mNext || mTail == task, "Task is already in the queue!"); 69 if (mTail->mRunAt <= task->mRunAt) { 70 mTail->mNext = task; 71 mTail = task; 76 while (next && next->mRunAt <= task->mRunAt) { 81 task->mNext = mHead; 82 mHead = task; 97 queueAtFront(RenderTask* task) argument 106 remove(RenderTask* task) argument 300 queue(RenderTask* task) argument 309 queueAtFront(RenderTask* task) argument 315 queueAt(RenderTask* task, nsecs_t runAtNs) argument 320 remove(RenderTask* task) argument [all...] |
H A D | RenderThread.h | 53 void queue(RenderTask* task); 54 void queueAtFront(RenderTask* task); 56 void remove(RenderTask* task); 76 ANDROID_API void queue(RenderTask* task); 77 ANDROID_API void queueAtFront(RenderTask* task); 78 void queueAt(RenderTask* task, nsecs_t runAtNs); 79 void remove(RenderTask* task); 110 // Returns the next task to be run. If this returns NULL nextWakeup is set
|
H A D | RenderProxy.cpp | 52 MethodInvokeRenderTask* task = new MethodInvokeRenderTask((RunnableMethod) Bridge_ ## method); \ 53 ARGS(method) *args = (ARGS(method) *) task->payload() 69 mContext = (CanvasContext*) postAndWait(task); 90 postAndWait(task); 103 post(task); 115 post(task); 132 return (bool) postAndWait(task); 143 return (bool) postAndWait(task); 155 postAndWait(task); 166 return (bool) postAndWait(task); 243 CREATE_BRIDGE2(runWithGlContext, CanvasContext* context, RenderTask* task) argument 413 post(RenderTask* task) argument 417 postAndWait(MethodInvokeRenderTask* task) argument 427 staticPostAndWait(MethodInvokeRenderTask* task) argument [all...] |
H A D | RenderProxy.h | 82 ANDROID_API void runWithGlContext(RenderTask* task); 114 void post(RenderTask* task); 115 void* postAndWait(MethodInvokeRenderTask* task); 117 static void* staticPostAndWait(MethodInvokeRenderTask* task);
|
H A D | RenderTask.h | 61 // Takes ownership of task, caller owns lock and signal 62 SignalingRenderTask(RenderTask* task, Mutex* lock, Condition* signal) argument 63 : mTask(task), mLock(lock), mSignal(signal) {}
|
/frameworks/support/v4/honeycomb/android/support/v4/os/ |
H A D | AsyncTaskCompatHoneycomb.java | 27 AsyncTask<Params, Progress, Result> task, 29 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); 26 executeParallel( AsyncTask<Params, Progress, Result> task, Params... params) argument
|
/frameworks/base/libs/hwui/thread/ |
H A D | TaskProcessor.h | 36 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 D | TaskManager.h | 44 * 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); 95 // task is available in the list
|
H A D | TaskManager.cpp | 62 bool TaskManager::addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor) { argument 64 TaskWrapper wrapper(task, processor); 102 const TaskWrapper& task = tasks.itemAt(i); local 103 task.mProcessor->process(task.mTask); 109 bool TaskManager::WorkerThread::addTask(TaskWrapper task) { argument 115 ssize_t index = mTasks.add(task);
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | TaskDrainer.java | 31 * <p>The initial state is to allow all tasks to be started and finished. A task may only be started 32 * once, after which it must be finished before starting again. Likewise, finishing a task 69 * Create a new task drainer; {@code onDrained} callbacks will be posted to the listener 82 * Create a new task drainer; {@code onDrained} callbacks will be posted to the listener 97 * Mark an asynchronous task as having started. 99 * <p>A task cannot be started more than once without first having finished. Once 102 * @param task a key to identify a task 108 * If attempting to start a task which is already started (and not finished), 109 * or if attempting to start a task afte 111 taskStarted(T task) argument 142 taskFinished(T task) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | TaskPersister.java | 69 * task being launched a chance to load its resources without this occupying IO bandwidth. */ 84 // Directory where restored historical task XML/PNG files are placed. This directory 90 // Max time to wait for the application/package of a restored task to be installed 94 private static final String TAG_TASK = "task"; 116 TaskWriteQueueItem(TaskRecord task) { argument 117 mTask = task; 135 // Local cache of package names to uid used when restoring a task from another device. 138 // The next time in milliseconds we will remove expired task from 172 private void removeThumbnails(TaskRecord task) { argument 173 final String taskString = Integer.toString(task 197 wakeup(TaskRecord task, boolean flush) argument 301 saveToXml(TaskRecord task) argument [all...] |
H A D | ActivityStack.java | 117 // How long until we reset a task when the user returns to it. Currently 378 final TaskRecord task = mTaskHistory.get(taskNdx); 379 final ArrayList<ActivityRecord> activities = task.mActivities; 395 * @param taskId If non-zero, we'll attempt to skip over records with the same task ID. 401 TaskRecord task = mTaskHistory.get(taskNdx); 402 if (task.taskId == taskId) { 405 ArrayList<ActivityRecord> activities = task.mActivities; 440 final TaskRecord task = mTaskHistory.get(taskNdx); 441 if (task.taskId == id) { 442 return task; 1898 insertTaskAtTop(TaskRecord task) argument 2128 resetTargetTaskIfNeededLocked(TaskRecord task, boolean forceReset) argument 2286 resetAffinityTaskIfNeededLocked(TaskRecord affinityTask, TaskRecord task, boolean topTaskIsHigher, boolean forceReset, int taskInsertionPoint) argument 3441 updateTaskMovement(TaskRecord task, boolean toFront) argument 3600 logStartActivity(int tag, ActivityRecord r, TaskRecord task) argument 4035 removeTask(TaskRecord task, String reason) argument 4096 addTask(final TaskRecord task, final boolean toTop, boolean moving) argument [all...] |
H A D | ActivityStackSupervisor.java | 179 * new task is created. */ 265 /** If non-null then the task specified remains in front and no other tasks may be started 266 * until the task exits or #stopLockTaskMode() is called. */ 268 /** Whether lock task has been entered by an authorized app and cannot 272 * Notifies the user when entering/exiting lock-task. 392 stack = parent.task.stack; 450 prev.task.setTaskToReturnTo(APPLICATION_ACTIVITY_TYPE); 468 TaskRecord task = stack.taskForIdLocked(id); 469 if (task != null) { 470 return task; 2513 findTaskToMoveToFrontLocked(TaskRecord task, int flags, Bundle options, String reason) argument 2623 restoreRecentTaskLocked(TaskRecord task) argument 3458 setLockTaskModeLocked(TaskRecord task, boolean isLocked, String reason) argument 3486 isLockTaskModeViolation(TaskRecord task) argument 3490 endLockTaskModeIfTaskEnding(TaskRecord task) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | ProviderExecutor.java | 73 * 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 D | RecentLoader.java | 177 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/opt/bitmap/src/com/android/bitmap/ |
H A D | ContiguousFIFOAggregator.java | 29 * An implementation of a task aggregator that executes tasks in the order that they are expected 32 * The task will be scheduled to run when its corresponding key becomes the first expected key 35 * If on {@link #execute(Object, Runnable)} the key is not expected, the task will be executed 42 * <li>Execute task <b>2</b> for key <b>B</b>. The first expected key is <b>A</b>, 43 * which has no task associated with it, so we store task <b>2</b>. </li> 44 * <li>Execute task <b>4</b> for key <b>Z</b>. We store task <b>4</b>. </li> 45 * <li>Execute task <b>1</b> for key <b>A</b>. We run task < 165 execute(final T key, final Runnable task) argument 301 Runnable task; field in class:ContiguousFIFOAggregator.Value 303 Value(final Callback<T> callback, final Runnable task) argument [all...] |
/frameworks/base/tools/aidl/ |
H A D | options.h | 18 int task; member in struct:Options
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | RecentsTaskLoadPlan.java | 38 * - preloadPlan() will construct a new task stack with all metadata and only icons and thumbnails 105 // Compose the task key 139 // Add the task to the stack 140 Task task = new Task(taskKey, (t.id != RecentsTaskLoader.INVALID_TASK_ID), 144 task.thumbnail = loader.getAndUpdateThumbnail(taskKey, mSystemServicesProxy, false); 145 if (DEBUG) Log.d(TAG, "\tthumbnail: " + taskKey + ", " + task.thumbnail); 146 loadedTasks.add(task); 164 ", running task id: " + opts.runningTaskId); 173 Task task = tasks.get(i); 174 Task.TaskKey taskKey = task [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/ |
H A D | MffTestCase.java | 43 FutureTask<MffContext> task = new FutureTask<MffContext>(new Callable<MffContext>() { 53 handler.post(task); 55 mMffContext = task.get();
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskStack.java | 169 * @param task The task to add. 172 void addTask(Task task, boolean toTop) { argument 178 if (!mService.isCurrentProfileLocked(task.mUserId)) { 179 // Place the task below all current user tasks. 185 // Put it above first non-current user task. 189 if (DEBUG_TASK_MOVEMENT) Slog.d(TAG, "addTask: task=" + task + " toTop=" + toTop 191 mTasks.add(stackNdx, task); 193 task 198 moveTaskToTop(Task task) argument 205 moveTaskToBottom(Task task) argument 216 removeTask(Task task) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | AsyncTaskLoader.java | 60 // 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) Log.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 D | AsyncTaskLoader.java | 119 * 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...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackView.java | 46 /* The visual representation of a task stack view */ 118 // Show the task bar dismiss buttons 133 /** Sets the task stack */ 151 // Reset the focused task 161 // Mark each task view for relayout 210 /** Finds the child view given a specific task. */ 222 /** Returns the stack algorithm for this task stack. */ 240 // We can reuse the task transforms where possible to reduce object allocation 292 // Get all the task transforms 307 Task task 1010 prepareViewToLeavePool(TaskView tv, Task task, boolean isNewView) argument 1087 onTaskViewClicked(TaskView tv, Task task, boolean lockToTask) argument [all...] |
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 102 final ActivityManager.RecentTaskInfo task, 116 if (task.id >= 0 && thumbs != null) { 117 mAm.moveTaskToFront(task.id, ActivityManager.MOVE_TASK_WITH_HOME); 120 startActivity(task.baseIntent); 122 Log.w("foo", "Unable to start task: " + e); 131 if (task.id >= 0 && thumbs != null) { 132 mAm.removeTask(task.id); 378 ActivityManager.AppTask task = findDocTask(); 379 if (task == null) { 386 task 101 addThumbnail(LinearLayout container, Bitmap bm, final ActivityManager.RecentTaskInfo task, final ActivityManager.TaskThumbnail thumbs) argument [all...] |