Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 163) sorted by relevance

1234567

/frameworks/base/services/core/java/com/android/server/am/
DRecentTasks.java117 for (final TaskRecord task : this) { in loadUserRecentsLocked()
118 if (task.userId == userId && shouldPersistTaskLocked(task)) { in loadUserRecentsLocked()
119 preaddedTasks.put(task.taskId, true); in loadUserRecentsLocked()
148 void notifyTaskPersisterLocked(TaskRecord task, boolean flush) { in notifyTaskPersisterLocked() argument
149 final ActivityStack stack = task != null ? task.getStack() : null; in notifyTaskPersisterLocked()
155 mTaskPersister.wakeup(task, flush); in notifyTaskPersisterLocked()
168 final TaskRecord task = get(i); in syncPersistentTaskIdsLocked() local
169 if (shouldPersistTaskLocked(task)) { in syncPersistentTaskIdsLocked()
172 if (mPersistedTaskIds.get(task.userId) == null) { in syncPersistentTaskIdsLocked()
173 Slog.wtf(TAG, "No task ids found for userId " + task.userId + ". task=" + task in syncPersistentTaskIdsLocked()
[all …]
DActivityStack.java673 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonOverlayTaskActivity() local
674 final ArrayList<ActivityRecord> activities = task.mActivities; in topRunningNonOverlayTaskActivity()
687 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonDelayedActivityLocked() local
688 final ArrayList<ActivityRecord> activities = task.mActivities; in topRunningNonDelayedActivityLocked()
710 TaskRecord task = mTaskHistory.get(taskNdx); in topRunningActivityLocked() local
711 if (task.taskId == taskId) { in topRunningActivityLocked()
714 ArrayList<ActivityRecord> activities = task.mActivities; in topRunningActivityLocked()
756 final TaskRecord task = mTaskHistory.get(taskNdx); in taskForIdLocked() local
757 if (task.taskId == id) { in taskForIdLocked()
758 return task; in taskForIdLocked()
[all …]
DLaunchingTaskPositioner.java115 void updateDefaultBounds(TaskRecord task, ArrayList<TaskRecord> tasks, in updateDefaultBounds() argument
121 positionCenter(task, tasks, mDefaultFreeformWidth, mDefaultFreeformHeight); in updateDefaultBounds()
130 positionTopRight(task, tasks, width, height); in updateDefaultBounds()
132 positionTopLeft(task, tasks, width, height); in updateDefaultBounds()
136 positionBottomRight(task, tasks, width, height); in updateDefaultBounds()
138 positionBottomLeft(task, tasks, width, height); in updateDefaultBounds()
145 positionCenter(task, tasks, width, height); in updateDefaultBounds()
171 private void positionBottomLeft(TaskRecord task, ArrayList<TaskRecord> tasks, int width, in positionBottomLeft() argument
175 position(task, tasks, mTmpProposal, !ALLOW_RESTART, SHIFT_POLICY_HORIZONTAL_RIGHT); in positionBottomLeft()
178 private void positionBottomRight(TaskRecord task, ArrayList<TaskRecord> tasks, int width, in positionBottomRight() argument
[all …]
DTaskPersister.java113 TaskWriteQueueItem(TaskRecord task) { in TaskWriteQueueItem() argument
114 mTask = task; in TaskWriteQueueItem()
169 private void removeThumbnails(TaskRecord task) { in removeThumbnails() argument
170 final String taskString = Integer.toString(task.taskId); in removeThumbnails()
256 void wakeup(TaskRecord task, boolean flush) { in wakeup() argument
258 if (task != null) { in wakeup()
263 ((TaskWriteQueueItem) item).mTask == task) { in wakeup()
264 if (!task.inRecents) { in wakeup()
266 removeThumbnails(task); in wakeup()
271 if (queueNdx < 0 && task.isPersistable) { in wakeup()
[all …]
DActivityStackSupervisor.java801 final TaskRecord task = stack.taskForIdLocked(id); in anyTaskForIdLocked() local
802 if (task != null) { in anyTaskForIdLocked()
803 return task; in anyTaskForIdLocked()
816 final TaskRecord task = mRecentTasks.taskForIdLocked(id); in anyTaskForIdLocked() local
818 if (task == null) { in anyTaskForIdLocked()
827 return task; in anyTaskForIdLocked()
831 if (!restoreRecentTaskLocked(task, stackId)) { in anyTaskForIdLocked()
837 return task; in anyTaskForIdLocked()
865 private boolean taskTopActivityIsUser(TaskRecord task, @UserIdInt int userId) { in taskTopActivityIsUser() argument
867 final ActivityRecord activityRecord = task.getTopActivity(); in taskTopActivityIsUser()
[all …]
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp70 void TaskQueue::queue(RenderTask* task) { in queue() argument
73 LOG_ALWAYS_FATAL_IF(task->mNext || mTail == task, "Task is already in the queue!"); in queue()
76 if (mTail->mRunAt <= task->mRunAt) { in queue()
77 mTail->mNext = task; in queue()
78 mTail = task; in queue()
83 while (next && next->mRunAt <= task->mRunAt) { in queue()
88 task->mNext = mHead; in queue()
89 mHead = task; in queue()
91 previous->mNext = task; in queue()
93 task->mNext = next; in queue()
[all …]
DRenderProxy.cpp61 MethodInvokeRenderTask* task = new MethodInvokeRenderTask((RunnableMethod) Bridge_ ## method); \
62 ARGS(method) *args = (ARGS(method) *) task->payload()
78 mContext = (CanvasContext*) postAndWait(task); in RenderProxy()
99 postAndWait(task); in destroyContext()
112 post(task); in setSwapBehavior()
129 return (bool) postAndWait(task); in loadSystemProperties()
141 postAndWait(task); // block since name/value pointers owned by caller in setName()
153 post(task); in initialize()
165 post(task); in updateSurface()
176 return (bool) postAndWait(task); in pauseSurface()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityStackTests.java54 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testEmptyTaskCleanupOnRemove() local
55 assertNotNull(task.getWindowContainerController()); in testEmptyTaskCleanupOnRemove()
56 service.mStackSupervisor.getStack(TEST_STACK_ID).removeTask(task, in testEmptyTaskCleanupOnRemove()
58 assertNull(task.getWindowContainerController()); in testEmptyTaskCleanupOnRemove()
64 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testOccupiedTaskCleanupOnRemove() local
65 final ActivityRecord activityRecord = createActivity(service, testActivityComponent, task); in testOccupiedTaskCleanupOnRemove()
66 assertNotNull(task.getWindowContainerController()); in testOccupiedTaskCleanupOnRemove()
67 service.mStackSupervisor.getStack(TEST_STACK_ID).removeTask(task, in testOccupiedTaskCleanupOnRemove()
69 assertNotNull(task.getWindowContainerController()); in testOccupiedTaskCleanupOnRemove()
75 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testNoPauseDuringResumeTopActivity() local
[all …]
DActivityRecordTests.java58 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testStackCleanupOnClearingTask() local
59 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnClearingTask()
68 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testStackCleanupOnActivityRemoval() local
69 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnActivityRemoval()
71 task.removeActivity(record); in testStackCleanupOnActivityRemoval()
78 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in testStackCleanupOnTaskRemoval() local
79 final ActivityRecord record = createActivity(service, testActivityComponent, task); in testStackCleanupOnTaskRemoval()
82 .removeTask(task, null /*reason*/, ActivityStack.REMOVE_TASK_MODE_MOVING); in testStackCleanupOnTaskRemoval()
130 final TaskRecord task = createTask(service, testActivityComponent, TEST_STACK_ID); in verifyPositionWithLimitedAspectRatio() local
131 final ActivityRecord record = createActivity(service, testActivityComponent, task); in verifyPositionWithLimitedAspectRatio()
[all …]
/frameworks/base/libs/hwui/thread/
DTaskProcessor.h33 virtual void process(const sp<TaskBase>& task) = 0;
42 void add(const sp<Task<T> >& task) { in add() argument
43 if (!addImpl(task)) { in add()
45 process(task); in add()
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 { in process() argument
55 sp<Task<T> > realTask = static_cast<Task<T>* >(task.get()); in process()
65 bool TaskProcessor<T>::addImpl(const sp<Task<T> >& task) { in addImpl() argument
68 return mManager->addTask(task, self); in addImpl()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DDocumentLoader.java74 LoaderTask task = mTaskList.findTask(parent); in queryChildDocuments() local
75 if (task == null) { in queryChildDocuments()
85 task = new LoaderTask(mMtpManager, mDatabase, mDevice.operationsSupported, parent); in queryChildDocuments()
86 task.loadObjectHandles(); in queryChildDocuments()
87 task.loadObjectInfoList(NUM_INITIAL_ENTRIES); in queryChildDocuments()
90 mTaskList.remove(task); in queryChildDocuments()
93 mTaskList.addFirst(task); in queryChildDocuments()
94 if (task.getState() == LoaderTask.STATE_LOADING) { in queryChildDocuments()
97 return task.createCursor(mResolver, columnNames); in queryChildDocuments()
120 for (final LoaderTask task : mTaskList) { in getNextTaskOrReleaseBackgroundThread()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotController.java154 final Task task = tasks.valueAt(i); in snapshotTasks() local
155 final int mode = getSnapshotMode(task); in snapshotTasks()
161 snapshot = drawAppThemeSnapshot(task); in snapshotTasks()
164 snapshot = snapshotTask(task); in snapshotTasks()
177 mCache.putSnapshot(task, snapshot); in snapshotTasks()
178 mPersister.persistSnapshot(task.mTaskId, task.mUserId, snapshot); in snapshotTasks()
179 if (task.getController() != null) { in snapshotTasks()
180 task.getController().reportSnapshotChanged(snapshot); in snapshotTasks()
206 private TaskSnapshot snapshotTask(Task task) { in snapshotTask() argument
207 final AppWindowToken top = task.getTopChild(); in snapshotTask()
[all …]
DTaskStack.java188 final Task task = mChildren.get(taskNdx); in setBounds() local
189 Configuration config = configs.get(task.mTaskId); in setBounds()
191 Rect bounds = taskBounds.get(task.mTaskId); in setBounds()
192 task.resizeLocked(bounds, config, false /* forced */); in setBounds()
193 task.setTempInsetBounds(taskTempInsetBounds != null ? in setBounds()
194 taskTempInsetBounds.get(task.mTaskId) : null); in setBounds()
196 Slog.wtf(TAG_WM, "No config for task: " + task + ", is there a mismatch with AM?"); in setBounds()
204 final Task task = mChildren.get(taskNdx); in prepareFreezingTaskBounds() local
205 task.prepareFreezingBounds(); in prepareFreezingTaskBounds()
245 final Task task = mChildren.get(taskNdx); in alignTasksToAdjustedBounds() local
[all …]
/frameworks/native/services/vr/performanced/
Dperformance_service.cpp74 static bool Check(const Message& sender, const Task& task) { in Check()
75 return sender.GetProcessId() == task.thread_group_id(); in Check()
82 static bool Check(const Message& sender, const Task& task) { in Check()
84 EXPAND_PACK(allow |= Allows::Check(sender, task)); in Check()
92 static bool Check(const Message& sender, const Task& task) { in Check()
94 EXPAND_PACK(allow &= Allows::Check(sender, task)); in Check()
109 Task task(getpid()); in PerformanceService() local
110 ALOGI("Running in cpuset=%s uid=%d gid=%d", task.GetCpuSetPath().c_str(), in PerformanceService()
111 task.user_id()[Task::kUidReal], task.group_id()[Task::kUidReal]); in PerformanceService()
231 Task task(task_id); in OnSetSchedulerPolicy() local
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternChecker.java68 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { in verifyPattern() local
94 task.execute(); in verifyPattern()
95 return task; in verifyPattern()
110 AsyncTask<Void, Void, Boolean> task = new AsyncTask<Void, Void, Boolean>() { in checkPattern() local
141 task.execute(); in checkPattern()
142 return task; in checkPattern()
159 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { in verifyPassword() local
177 task.execute(); in verifyPassword()
178 return task; in verifyPassword()
196 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { in verifyTiedProfileChallenge() local
[all …]
DGapWorker.java227 final Task task; in buildTaskList() local
229 task = new Task(); in buildTaskList()
230 mTasks.add(task); in buildTaskList()
232 task = mTasks.get(totalTaskIndex); in buildTaskList()
236 task.immediate = distanceToItem <= viewVelocity; in buildTaskList()
237 task.viewVelocity = viewVelocity; in buildTaskList()
238 task.distanceToItem = distanceToItem; in buildTaskList()
239 task.view = view; in buildTaskList()
240 task.position = prefetchRegistry.mPrefetchArray[j]; in buildTaskList()
323 private void flushTaskWithDeadline(Task task, long deadlineNs) { in flushTaskWithDeadline() argument
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackSeekAsyncDataProvider.java48 protected boolean isCancelled(Object task) { in isCancelled() argument
49 return ((AsyncTask) task).isCancelled(); in isCancelled()
52 protected abstract Bitmap doInBackground(Object task, int index, long position); in doInBackground() argument
115 LoadBitmapTask task = mRequests.get(index); in getThumbnail() local
116 if (task == null || task.isCancelled()) { in getThumbnail()
118 task = new LoadBitmapTask(index, callback); in getThumbnail()
119 mRequests.put(index, task); in getThumbnail()
120 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in getThumbnail()
123 task.mResultCallback = callback; in getThumbnail()
149 LoadBitmapTask task = mRequests.get(i); in prefetch() local
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DTaskDrainer.java117 public void taskStarted(T task) { in taskStarted() argument
120 Log.v(TAG + "[" + mName + "]", "taskStarted " + task); in taskStarted()
128 if (!mEarlyFinishedTaskSet.remove(task)) { in taskStarted()
130 if (!mTaskSet.add(task)) { in taskStarted()
131 throw new IllegalStateException("Task " + task + " was already started"); in taskStarted()
151 public void taskFinished(T task) { in taskFinished() argument
154 Log.v(TAG + "[" + mName + "]", "taskFinished " + task); in taskFinished()
158 if (!mTaskSet.remove(task)) { in taskFinished()
160 if (!mEarlyFinishedTaskSet.add(task)) { in taskFinished()
161 throw new IllegalStateException("Task " + task + " was already finished"); in taskFinished()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsLoggingServiceTest.java95 LogRunnable task = new LogRunnable(); in testEmptyLog() local
96 task.setAppCollector(mCollector); in testEmptyLog()
97 task.setDownloadsDirectory(mDownloads.getRoot()); in testEmptyLog()
98 task.setLogOutputFile(mInputFile); in testEmptyLog()
99 task.setSystemSize(0L); in testEmptyLog()
100 task.setContext(mJobService); in testEmptyLog()
101 task.run(); in testEmptyLog()
137 LogRunnable task = new LogRunnable(); in testPopulatedLogTask() local
138 task.setAppCollector(mCollector); in testPopulatedLogTask()
139 task.setDownloadsDirectory(mDownloads.getRoot()); in testPopulatedLogTask()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFreeformWorkspaceLayoutAlgorithm.java70 Task task = freeformTasks.get(i); in update() local
72 if (task.bounds != null) { in update()
73 rowTaskWidth = (float) task.bounds.width() / task.bounds.height(); in update()
124 Task task = freeformTasks.get(i); in update() local
134 mTaskRectMap.put(task.key, rect); in update()
142 public boolean isTransformAvailable(Task task, TaskStackLayoutAlgorithm stackLayout) { in isTransformAvailable() argument
143 if (stackLayout.mNumFreeformTasks == 0 || task == null) { in isTransformAvailable()
146 return mTaskRectMap.containsKey(task.key); in isTransformAvailable()
153 public TaskViewTransform getTransform(Task task, TaskViewTransform transformOut, in getTransform() argument
155 if (mTaskRectMap.containsKey(task.key)) { in getTransform()
[all …]
DRecentsTransitionHelper.java108 public void launchTaskFromRecents(final TaskStack stack, @Nullable final Task task, in launchTaskFromRecents() argument
120 () -> composeAnimationSpecs(task, stackView, destinationStack, windowRect)); in launchTaskFromRecents()
133 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
139 mStartScreenPinningRunnable.taskId = task.key.id; in launchTaskFromRecents()
164 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
183 startTaskActivity(stack, task, taskView, opts, transitionFuture, destinationStack); in launchTaskFromRecents()
187 if (task.group != null && !task.group.isFrontMostTask(task)) { in launchTaskFromRecents()
191 startTaskActivity(stack, task, taskView, opts, transitionFuture, in launchTaskFromRecents()
198 startTaskActivity(stack, task, taskView, opts, transitionFuture, destinationStack); in launchTaskFromRecents()
229 private void startTaskActivity(TaskStack stack, Task task, @Nullable TaskView taskView,
[all …]
DTaskStackView.java436 Task task = tv.getTask(); in getFrontMostTaskView() local
437 if (stackTasksOnly && task.isFreeformTask()) { in getFrontMostTaskView()
480 void addIgnoreTask(Task task) { in addIgnoreTask() argument
481 mIgnoreTasks.add(task.key); in addIgnoreTask()
487 void removeIgnoreTask(Task task) { in removeIgnoreTask() argument
488 mIgnoreTasks.remove(task.key); in removeIgnoreTask()
494 boolean isIgnoredTask(Task task) { in isIgnoredTask() argument
495 return mIgnoreTasks.contains(task.key); in isIgnoredTask()
536 Task task = tasks.get(i); in computeVisibleTaskTransforms() local
539 transform = mLayoutAlgorithm.getStackTransform(task, curStackScroll, in computeVisibleTaskTransforms()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/
DContiguousFIFOAggregator.java165 public void execute(final T key, final Runnable task) { in execute() argument
169 if (value == null || task == null) { in execute()
170 if (task != null) { in execute()
171 task.run(); in execute()
176 value.task = task; in execute()
203 if (value.task == null) { in maybeExecuteNow()
213 value.task.run(); in maybeExecuteNow()
301 Runnable task; field in ContiguousFIFOAggregator.Value
303 Value(final Callback<T> callback, final Runnable task) { in Value() argument
305 this.task = task; in Value()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/dragndrop/
DDragStartEvent.java30 public final Task task; field in DragStartEvent
35 public DragStartEvent(Task task, TaskView taskView, Point tlOffset) { in DragStartEvent() argument
36 this(task, taskView, tlOffset, true); in DragStartEvent()
39 public DragStartEvent(Task task, TaskView taskView, Point tlOffset, in DragStartEvent() argument
41 this.task = task; in DragStartEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGapWorker.java238 final Task task; in buildTaskList() local
240 task = new Task(); in buildTaskList()
241 mTasks.add(task); in buildTaskList()
243 task = mTasks.get(totalTaskIndex); in buildTaskList()
247 task.immediate = distanceToItem <= viewVelocity; in buildTaskList()
248 task.viewVelocity = viewVelocity; in buildTaskList()
249 task.distanceToItem = distanceToItem; in buildTaskList()
250 task.view = view; in buildTaskList()
251 task.position = prefetchRegistry.mPrefetchArray[j]; in buildTaskList()
340 private void flushTaskWithDeadline(Task task, long deadlineNs) { in flushTaskWithDeadline() argument
[all …]

1234567