/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityRecord.java | 120 TaskRecord task; // the task this is in. field in class:ActivityRecord 145 boolean frontOfTask; // is this the root activity of its task? 189 pw.print(" task="); pw.println(task); 517 if (task != null && task.removeActivity(this)) { 518 if (task != newTask) { 519 task.stack.removeTask(task, "setTas [all...] |
H A D | ActivityManagerService.java | 376 // Delay in notifying task stack change listeners (in millis) 2366 if (r.task != null && r.task.voiceInteractor != null) { 2401 /** Sets the task stack listener that gets callbacks when a task stack changes. */ 2417 r.task.stack.notifyActivityDrawnLocked(r); 2435 msg.obj = r.task.askedCompatMode ? null : r; 3640 final TaskRecord task; 3646 task = recentTaskForIdLocked(taskId); 3647 if (task 3924 moveAffiliatedTasksToFront(TaskRecord task, int taskIndex) argument 4026 addRecentTaskLocked(TaskRecord task) argument 4154 trimRecentsForTaskLocked(TaskRecord task, boolean doTrim) argument 8609 moveTaskBackwards(int task) argument 8624 moveTaskBackwardsLocked(int task) argument 8771 startLockTaskMode(TaskRecord task) argument 10058 notifyTaskPersisterLocked(TaskRecord task, boolean flush) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | TessellationCache.cpp | 95 // General purpose tessellation task processing 117 virtual void onProcess(const sp<Task<VertexBuffer*> >& task) { argument 118 TessellationTask* t = static_cast<TessellationTask*>(task.get()); 127 Buffer(const sp<Task<VertexBuffer*> >& task) argument 128 : mTask(task) 160 // Shadow tessellation task processing 185 /* Note - we deep copy all task parameters, because *even though* pointers into Allocator 281 virtual void onProcess(const sp<Task<TessellationCache::vertexBuffer_pair_t*> >& task) { argument 282 ShadowTask* t = static_cast<ShadowTask*>(task.get()); 383 sp<ShadowTask> task local 399 ShadowTask* task = static_cast<ShadowTask*>(mShadowCache.get(key)); local 418 sp<TessellationTask> task = new TessellationTask(tessellator, entry); local [all...] |
H A D | PathCache.cpp | 211 // If there is a pending task we must wait for it to return 213 const sp<Task<SkBitmap*> >& task = texture->task(); local 214 if (task != NULL) { 215 SkBitmap* bitmap = task->getResult(); 218 // If there is a pending task, the path was not added 336 void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) { argument 337 PathTask* t = static_cast<PathTask*>(task.get()); 432 const sp<Task<SkBitmap*> >& task = texture->task(); local 481 sp<PathTask> task = new PathTask(path, paint, texture); local [all...] |
H A D | PathCache.h | 82 sp<Task<SkBitmap*> > task() const { function in struct:android::uirenderer::PathTexture 86 void setTask(const sp<Task<SkBitmap*> >& task) { argument 87 mTask = task; 282 // copied, since input path not refcounted / guaranteed to survive for duration of task 296 virtual void onProcess(const sp<Task<SkBitmap*> >& task);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | RecentsView.java | 153 /** Launches the focused task from the first stack if possible */ 162 // Iterate the stack views and try and find the focused task 166 Task task = tv.getTask(); 168 onTaskViewClicked(stackView, tv, stack, task, false); 177 /** Launches the task that Recents was launched from, if possible */ 188 // Find the launch task in the stack 193 Task task = tasks.get(j); 194 TaskView tv = stackView.getChildViewForTask(task); 195 onTaskViewClicked(stackView, tv, stack, task, false); 205 /** Requests all task stack 404 onTaskViewClicked(final TaskStackView stackView, final TaskView tv, final TaskStack stack, final Task task, final boolean lockToTask) argument [all...] |
H A D | TaskStackViewFilterAlgorithm.java | 105 Task task = tasks.get(i); 108 TaskView tv = mStackView.getChildViewForTask(task); 111 tv = mViewPool.pickUpViewFromPool(task, task); 113 // Compose a new transform to fade and slide the new task in 148 Task task = tv.getTask(); 149 int taskIndex = tasks.indexOf(task); 156 toTransform = curTaskTransforms.get(curTasks.indexOf(task));
|
H A D | TaskStackViewLayoutAlgorithm.java | 80 /** Computes the stack and task rects */ 92 // Compute the task rect 135 // Update the task offsets 140 Task task = tasks.get(i); 141 mTaskProgressMap.put(task.key, pAtFrontMostCardTop); 145 float pPeek = task.group.isFrontMostTask(task) ? 154 // Center the top most task, since that will be focused first 171 // Walk backwards in the task stack and count the number of tasks and visible thumbnails 178 Task task 214 getStackTransform(Task task, float stackScroll, TaskViewTransform transformOut, TaskViewTransform prevTransform) argument [all...] |
/frameworks/base/tools/aidl/ |
H A D | options.cpp | 47 options->task = PREPROCESS_AIDL; 51 options->task = COMPILE_AIDL;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
H A D | JobStoreTest.java | 52 final JobInfo task = new Builder(taskId, mComponent) 60 final JobStatus ts = new JobStatus(task, SOME_UID); 69 assertTasksEqual(task, loadedTaskStatus.getJob()); 109 // Check that the loaded task has the correct runtimes. 133 final JobInfo task = b.build(); 134 JobStatus taskStatus = new JobStatus(task, SOME_UID); 143 assertTasksEqual(task, loaded.getJob()); 147 * Helper function to throw an error if the provided task and TaskStatus objects are not equal. 150 assertEquals("Different task ids.", first.getId(), second.getId());
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayContent.java | 326 final Task task = tasks.get(taskNdx); 327 AppTokenList tokens = task.mAppTokens; 336 if (task.mDeferRemoval) { 337 task.mDeferRemoval = false; 338 mService.removeTaskLocked(task); 386 final Task task = tasks.get(taskNdx); 387 pw.print(" mTaskId="); pw.println(task.taskId); 388 AppTokenList tokens = task.mAppTokens;
|
H A D | WindowManagerService.java | 3436 Slog.w(TAG, "validateAppTokens: empty task list"); 3440 TaskGroup task = tasks.get(0); 3441 int taskId = task.taskId; 3453 task = tasks.get(t); 3454 List<IApplicationToken> tokens = task.tokens; 3465 for (tokenNdx = localTokens.size() - 1, v = task.tokens.size() - 1; 3620 Task task = new Task(atoken, stack, userId); 3621 mTaskIdToTask.put(taskId, task); 3622 stack.addTask(task, !atoken.mLaunchTaskBehind /* toTop */); 3623 return task; 5039 tmpRemoveTaskWindowsLocked(Task task) argument 5196 removeTaskLocked(Task task) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | PageContentRepository.java | 559 RenderPageTask task = mPageToRenderTaskMap.valueAt(i); 560 if (task.isPreload() && !task.isCancelled()) { 561 task.cancel(true); 637 RenderPageTask task = mPageToRenderTaskMap.get(pageIndex); 638 if (task != null && !task.isCancelled()) { 639 task.cancel(true); 646 RenderPageTask task = mPageToRenderTaskMap.valueAt(i); 647 if (!task [all...] |
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
H A D | TestDocumentsProvider.java | 254 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/support/v4/java/android/support/v4/app/ |
H A D | NotificationManagerCompat.java | 264 * Push a notification task for distribution to notification side channels. 266 private void pushSideChannelQueue(Task task) { argument 272 sSideChannelManager.queueTask(task); 302 * Queue a new task to be sent to all listeners. This function can be called 305 public void queueTask(Task task) { argument 306 mHandler.obtainMessage(MSG_QUEUE_TASK, task).sendToTarget(); 329 private void handleQueueTask(Task task) { argument 332 record.taskQueue.add(task); 485 * to flush the task queue, and if an error is encountered, schedule a retry. 500 // Attempt to flush all items in the task queu [all...] |
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
H A D | IdleController.java | 44 "com.android.server.task.controllers.IdleController.ACTION_TRIGGER_IDLE"; 88 * Interaction with the task manager service 92 for (JobStatus task : mTrackedTasks) { 93 task.idleConstraintSatisfied.set(isIdle); 100 * Idle state tracking, and messaging with the task manager when
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | TaskStack.java | 34 * An interface for a task filter to query whether a particular task should show in a stack. 37 /** Returns whether the filter accepts the specified task */ 50 /** Sets the task filter, saving the current touch state */ 72 /** Removes the task filter and returns the previous touch state */ 78 /** Adds a new task to the task list */ 91 /** Removes a task from the base list only if it is in the filtered list */ 101 /** Returns the index of this task in the list of filtered tasks */ 114 /** Returns whether the filtered list contains this task */ [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | AlternateRecentsComponent.java | 94 * task stacks and update recents accordingly. 105 // Debounce any task stack changes 110 /** Preloads the next task */ 118 // Load the next task only if we aren't svelte 190 // Register the task stack listener 320 // Preload only the raw task list into a new load plan (which will be consumed by the 341 // Return early if there is no running task (can't determine affiliated tasks in this case) 343 // Return early if the running task is in the home stack (optimization) 346 // Find the task in the recents list 353 Task task [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.h | 94 void runWithGlContext(RenderTask* task);
|
H A D | CanvasContext.cpp | 358 void CanvasContext::runWithGlContext(RenderTask* task) { argument 360 task->run();
|
/frameworks/base/core/java/android/os/ |
H A D | AsyncTask.java | 46 * <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 671 AsyncTaskResult(AsyncTask task, Data... data) argument [all...] |
H A D | Handler.java | 422 * Runs the specified task synchronously. 433 * must synchronously await completion of a task that must run on the 752 public BlockingRunnable(Runnable task) { argument 753 mTask = task;
|
/frameworks/support/v4/java/android/support/v4/content/ |
H A D | ModernAsyncTask.java | 86 * 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/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipService.java | 1226 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/webview/chromium/java/com/android/webview/chromium/ |
H A D | WebViewChromium.java | 104 public void addTask(Runnable task) { argument 105 mQueue.add(task); 121 Runnable task = mQueue.poll(); 122 while(task != null) { 123 task.run(); 124 task = mQueue.poll(); 180 private <T> T runBlockingFuture(FutureTask<T> task) { argument 185 mRunQueue.addTask(task); 187 return task.get(4, TimeUnit.SECONDS); 200 FutureTask<Void> task [all...] |