/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/thread/ |
H A D | TaskProcessor.h | 33 virtual void process(const sp<TaskBase>& task) = 0; 42 void add(const sp<Task<T> >& task) { argument 43 if (!addImpl(task)) { 45 process(task); 49 virtual void onProcess(const sp<Task<T> >& task) = 0; 52 bool addImpl(const sp<Task<T> >& task); 54 virtual void process(const sp<TaskBase>& task) override { 55 sp<Task<T> > realTask = static_cast<Task<T>* >(task.get()); 57 // sp<Task<T> > realTask = static_cast<sp<Task<T> > >(task); 65 bool TaskProcessor<T>::addImpl(const sp<Task<T> >& task) { argument [all...] |
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 | 60 bool TaskManager::addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor) { argument 62 TaskWrapper wrapper(task, processor); 98 const TaskWrapper& task = tasks.itemAt(i); local 99 task.mProcessor->process(task.mTask); 105 bool TaskManager::WorkerThread::addTask(TaskWrapper task) { argument 115 index = mTasks.add(task);
|
/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/services/core/java/com/android/server/am/ |
H A D | RecentTasks.java | 78 Slog.i(TAG, "Can't remove recent task on user " + userId); 116 TaskRecord task = get(i); 117 if (task.userId != user) { 121 if (task.autoRemoveRecents && task.getTopActivity() == null) { 124 task.removedFromRecents(); 125 Slog.w(TAG, "Removing auto-remove without activity: " + task); 129 if (task.realActivity != null) { 130 ActivityInfo ai = tmpAvailActCache.get(task.realActivity); 133 ai = pm.getActivityInfo(task 204 moveAffiliatedTasksToFront(TaskRecord task, int taskIndex) argument 306 addLocked(TaskRecord task) argument 436 trimForTaskLocked(TaskRecord task, boolean doTrim) argument [all...] |
H A D | TaskPersister.java | 69 * task being launched a chance to load its resources without this occupying IO bandwidth. */ 84 private static final String TAG_TASK = "task"; 106 TaskWriteQueueItem(TaskRecord task) { argument 107 mTask = task; 151 private void removeThumbnails(TaskRecord task) { argument 152 final String taskString = Integer.toString(task.taskId); 176 void wakeup(TaskRecord task, boolean flush) { argument 178 if (task != null) { 183 ((TaskWriteQueueItem) item).mTask == task) { 184 if (!task 280 saveToXml(TaskRecord task) argument [all...] |
H A D | ActivityStack.java | 122 // How long until we reset a task when the user returns to it. Currently 384 final TaskRecord task = mTaskHistory.get(taskNdx); 385 final ArrayList<ActivityRecord> activities = task.mActivities; 401 * @param taskId If non-zero, we'll attempt to skip over records with the same task ID. 407 TaskRecord task = mTaskHistory.get(taskNdx); 408 if (task.taskId == taskId) { 411 ArrayList<ActivityRecord> activities = task.mActivities; 446 final TaskRecord task = mTaskHistory.get(taskNdx); 447 if (task.taskId == id) { 448 return task; 2028 insertTaskAtTop(TaskRecord task, ActivityRecord newActivity) argument 2271 resetTargetTaskIfNeededLocked(TaskRecord task, boolean forceReset) argument 2430 resetAffinityTaskIfNeededLocked(TaskRecord affinityTask, TaskRecord task, boolean topTaskIsHigher, boolean forceReset, int taskInsertionPoint) argument 3619 updateTaskMovement(TaskRecord task, boolean toFront) argument 3796 logStartActivity(int tag, ActivityRecord r, TaskRecord task) argument 4279 removeTask(TaskRecord task, String reason) argument 4290 removeTask(TaskRecord task, String reason, boolean notMoving) argument 4362 addTask(final TaskRecord task, final boolean toTop, boolean moving) argument [all...] |
H A D | ActivityStackSupervisor.java | 220 * new task is created. */ 303 /** The chain of tasks in lockTask mode. The current frontmost task is at the top, and tasks 307 /** Store the current lock task mode. Possible values: 313 * Notifies the user when entering/exiting lock-task. 437 stack = parent.task.stack; 509 prev.task.setTaskToReturnTo(APPLICATION_ACTIVITY_TYPE); 527 * @param id Id of the task we would like returned. 529 * restore the task from recents to the active list. 537 TaskRecord task = stack.taskForIdLocked(id); 538 if (task ! 2771 findTaskToMoveToFrontLocked(TaskRecord task, int flags, Bundle options, String reason) argument 2900 resizeTaskLocked(TaskRecord task, Rect bounds) argument 2963 restoreRecentTaskLocked(TaskRecord task) argument 3841 isLockedTask(TaskRecord task) argument 3845 isLastLockedTask(TaskRecord task) argument 3849 removeLockedTaskLocked(final TaskRecord task) argument 3869 showLockTaskEscapeMessageLocked(TaskRecord task) argument 3875 setLockTaskModeLocked(TaskRecord task, int lockTaskModeState, String reason, boolean andResume) argument 3932 isLockTaskModeViolation(TaskRecord task) argument 3936 isLockTaskModeViolation(TaskRecord task, boolean isNewClearTask) argument [all...] |
/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 306 queue(RenderTask* task) argument 315 queueAtFront(RenderTask* task) argument 321 queueAt(RenderTask* task, nsecs_t runAtNs) argument 326 remove(RenderTask* task) argument [all...] |
H A D | RenderProxy.cpp | 52 MethodInvokeRenderTask* task = new MethodInvokeRenderTask((RunnableMethod) Bridge_ ## method); \ 53 ARGS(method) *args = (ARGS(method) *) task->payload() 76 mContext = (CanvasContext*) postAndWait(task); 97 postAndWait(task); 110 post(task); 127 return (bool) postAndWait(task); 139 postAndWait(task); // block since name/value pointers owned by caller 150 return (bool) postAndWait(task); 162 postAndWait(task); 173 return (bool) postAndWait(task); 262 CREATE_BRIDGE2(runWithGlContext, CanvasContext* context, RenderTask* task) argument 494 post(RenderTask* task) argument 498 postAndWait(MethodInvokeRenderTask* task) argument 508 staticPostAndWait(MethodInvokeRenderTask* task) argument [all...] |
H A D | RenderThread.h | 55 void queue(RenderTask* task); 56 void queueAtFront(RenderTask* task); 58 void remove(RenderTask* task); 78 ANDROID_API void queue(RenderTask* task); 79 ANDROID_API void queueAtFront(RenderTask* task); 80 void queueAt(RenderTask* task, nsecs_t runAtNs); 81 void remove(RenderTask* task); 115 // Returns the next task to be run. If this returns NULL nextWakeup is set
|
H A D | RenderProxy.h | 83 ANDROID_API void runWithGlContext(RenderTask* task); 119 void post(RenderTask* task); 120 void* postAndWait(MethodInvokeRenderTask* task); 122 static void* staticPostAndWait(MethodInvokeRenderTask* task);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternChecker.java | 55 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { 73 task.execute(); 74 return task; 89 AsyncTask<Void, Void, Boolean> task = new AsyncTask<Void, Void, Boolean>() { 107 task.execute(); 108 return task; 125 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { 143 task.execute(); 144 return task; 159 AsyncTask<Void, Void, Boolean> task [all...] |
/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/data-binding/extensions/ |
H A D | build.gradle | 32 task preparePrebuilds() { 37 preparePrebuilds.dependsOn project.tasks.findAll {task -> task.name.startsWith('prebuild')}
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
H A D | AppIdleController.java | 91 for (JobStatus task : mTrackedTasks) { 92 pw.print(task.job.getService().getPackageName()); 93 pw.print(":idle=" + !task.appNotIdleConstraintSatisfied.get()); 108 for (JobStatus task : mTrackedTasks) { 109 String packageName = task.job.getService().getPackageName(); 111 task.getUserId()); 115 if (task.appNotIdleConstraintSatisfied.get() == appIdle) { 116 task.appNotIdleConstraintSatisfied.set(!appIdle); 135 for (JobStatus task : mTrackedTasks) { 136 if (task [all...] |
/frameworks/data-binding/gradlePlugin/src/main/java/android/databinding/tool/ |
H A D | DataBinderPlugin.java | 292 public void execute(final DataBindingProcessLayoutsTask task) { 293 processLayoutsTasks[0] = task; 294 task.setXmlProcessor(xmlProcessor); 295 task.setSdkDir(sdkDir); 296 task.setXmlOutFolder(xmlOutDir); 297 task.setMinSdk(minSdkVersion.getApiLevel()); 299 logD("TASK adding dependency on %s for %s", task, processResTask); 300 processResTask.dependsOn(task); 303 if (dep == task) { 306 logD("adding dependency on %s for %s", dep, task); [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/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/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | RecentsTaskLoadPlan.java | 41 * 2) preloadPlan() will construct a new task stack with all metadata and only icons and 111 // Compose the task key 147 // Add the task to the stack 148 Task task = new Task(taskKey, (t.id != RecentsTaskLoader.INVALID_TASK_ID), 152 task.thumbnail = loader.getAndUpdateThumbnail(taskKey, mSystemServicesProxy, false); 153 if (DEBUG) Log.d(TAG, "\tthumbnail: " + taskKey + ", " + task.thumbnail); 163 stackTasks.add(task); 170 stackTasks.add(task); 201 ", running task id: " + opts.runningTaskId); 212 Task task [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskStack.java | 282 void addTask(Task task, boolean toTop) { argument 283 addTask(task, toTop, task.showForAllUsers()); 288 * @param task The task to add. 290 * @param showForAllUsers Whether to show the task regardless of the current user. 292 void addTask(Task task, boolean toTop, boolean showForAllUsers) { argument 298 if (!showForAllUsers && !mService.isCurrentProfileLocked(task.mUserId)) { 299 // Place the task below all current user tasks. 307 // Put it above first non-current user task 322 moveTaskToTop(Task task) argument 329 moveTaskToBottom(Task task) argument 340 removeTask(Task task) argument [all...] |