/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskTests.java | 46 final WindowTestUtils.TestTask task = WindowTestUtils.createTestTask(stackController1); in testRemoveContainer() local 48 WindowTestUtils.createAppWindowTokenInTask(mDisplayContent, task); in testRemoveContainer() 50 task.removeIfPossible(); in testRemoveContainer() 52 assertNull(task.getParent()); in testRemoveContainer() 53 assertEquals(0, task.getChildCount()); in testRemoveContainer() 60 final WindowTestUtils.TestTask task = WindowTestUtils.createTestTask(stackController1); in testRemoveContainer_deferRemoval() local 62 WindowTestUtils.createAppWindowTokenInTask(mDisplayContent, task); in testRemoveContainer_deferRemoval() 64 task.mShouldDeferRemoval = true; in testRemoveContainer_deferRemoval() 66 task.removeIfPossible(); in testRemoveContainer_deferRemoval() 69 assertNotNull(task.getParent()); in testRemoveContainer_deferRemoval() [all …]
|
D | TaskRecordTests.java | 119 final TaskRecord task = createTaskRecord(1); in testCopyBaseIntentForTaskInfo() local 120 task.lastTaskDescription = new ActivityManager.TaskDescription(); in testCopyBaseIntentForTaskInfo() 121 final TaskInfo info = task.getTaskInfo(); in testCopyBaseIntentForTaskInfo() 124 assertThat(info.baseIntent, not(sameInstance(task.getBaseIntent()))); in testCopyBaseIntentForTaskInfo() 141 final TaskRecord task = createTaskRecord(1); in testReturnsToHomeStack() local 142 assertFalse(task.returnsToHomeStack()); in testReturnsToHomeStack() 143 task.intent = null; in testReturnsToHomeStack() 144 assertFalse(task.returnsToHomeStack()); in testReturnsToHomeStack() 145 task.intent = new Intent(); in testReturnsToHomeStack() 146 assertFalse(task.returnsToHomeStack()); in testReturnsToHomeStack() [all …]
|
D | LaunchParamsControllerTests.java | 131 (task, layout, activity, source, options, phase, currentParams, outParams) in testEarlyExit() 281 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskPreferredDisplayChange() local 286 mController.layoutTask(task, null /* windowLayout */); in testLayoutTaskPreferredDisplayChange() 287 verify(mService, times(1)).moveStackToDisplay(eq(task.getStackId()), in testLayoutTaskPreferredDisplayChange() 301 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskWindowingModeChange() local 305 final int beforeWindowMode = task.getStack().getWindowingMode(); in testLayoutTaskWindowingModeChange() 308 mController.layoutTask(task, null /* windowLayout */); in testLayoutTaskWindowingModeChange() 310 final int afterWindowMode = task.getStack().getWindowingMode(); in testLayoutTaskWindowingModeChange() 326 final TaskRecord task = new TaskBuilder(mService.mStackSupervisor).build(); in testLayoutTaskBoundsChangeFreeformWindow() local 330 assertNotEquals(expected, task.getBounds()); in testLayoutTaskBoundsChangeFreeformWindow() [all …]
|
D | TaskStackTests.java | 108 final Task task = createTaskInStack(stack, 0 /* userId */); in testStackRemoveImmediately() local 109 assertEquals(stack, task.mStack); in testStackRemoveImmediately() 114 assertNull(task.mStack); in testStackRemoveImmediately() 120 final WindowTestUtils.TestTask task = WindowTestUtils.createTestTask(stack); in testRemoveContainer() local 123 assertNotNull(task); in testRemoveContainer() 129 assertNull(task.getDisplayContent()); in testRemoveContainer() 130 assertNull(task.mStack); in testRemoveContainer() 136 final WindowTestUtils.TestTask task = WindowTestUtils.createTestTask(stack); in testRemoveContainer_deferRemoval() local 139 task.setLocalIsAnimating(true); in testRemoveContainer_deferRemoval() 146 assertNotNull(task); in testRemoveContainer_deferRemoval() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | RecentTasks.java | 137 void onRecentTaskAdded(TaskRecord task); in onRecentTaskAdded() argument 142 void onRecentTaskRemoved(TaskRecord task, boolean wasTrimmed, boolean killProcess); in onRecentTaskRemoved() argument 426 private void notifyTaskAdded(TaskRecord task) { in notifyTaskAdded() argument 428 mCallbacks.get(i).onRecentTaskAdded(task); in notifyTaskAdded() 432 private void notifyTaskRemoved(TaskRecord task, boolean wasTrimmed, boolean killProcess) { in notifyTaskRemoved() argument 434 mCallbacks.get(i).onRecentTaskRemoved(task, wasTrimmed, killProcess); in notifyTaskRemoved() 455 for (final TaskRecord task : mTasks) { in loadUserRecentsLocked() 456 if (task.userId == userId && shouldPersistTaskLocked(task)) { in loadUserRecentsLocked() 457 preaddedTasks.put(task.taskId, true); in loadUserRecentsLocked() 501 void notifyTaskPersisterLocked(TaskRecord task, boolean flush) { in notifyTaskPersisterLocked() argument [all …]
|
D | LockTaskController.java | 224 boolean isTaskLocked(TaskRecord task) { in isTaskLocked() argument 225 return mLockTaskModeTasks.contains(task); in isTaskLocked() 231 private boolean isRootTask(TaskRecord task) { in isRootTask() argument 232 return mLockTaskModeTasks.indexOf(task) == 0; in isRootTask() 240 final TaskRecord task = activity.getTaskRecord(); in activityBlockedFromFinish() local 241 if (activity == task.getRootActivity() in activityBlockedFromFinish() 242 && activity == task.getTopActivity() in activityBlockedFromFinish() 243 && task.mLockTaskAuth != LOCK_TASK_AUTH_LAUNCHABLE_PRIV in activityBlockedFromFinish() 244 && isRootTask(task)) { in activityBlockedFromFinish() 257 boolean canMoveTaskToBack(TaskRecord task) { in canMoveTaskToBack() argument [all …]
|
D | TaskSnapshotController.java | 173 final Task task = tasks.valueAt(i); in snapshotTasks() local 174 final int mode = getSnapshotMode(task); in snapshotTasks() 180 snapshot = drawAppThemeSnapshot(task); in snapshotTasks() 183 snapshot = snapshotTask(task); in snapshotTasks() 196 mCache.putSnapshot(task, snapshot); in snapshotTasks() 197 mPersister.persistSnapshot(task.mTaskId, task.mUserId, snapshot); in snapshotTasks() 198 task.onSnapshotChanged(snapshot); in snapshotTasks() 228 @Nullable private AppWindowToken findAppTokenForSnapshot(Task task) { in findAppTokenForSnapshot() argument 229 for (int i = task.getChildCount() - 1; i >= 0; --i) { in findAppTokenForSnapshot() 230 final AppWindowToken appWindowToken = task.getChildAt(i); in findAppTokenForSnapshot() [all …]
|
D | TaskPersister.java | 121 private void removeThumbnails(TaskRecord task) { in removeThumbnails() argument 125 return file.getName().startsWith(Integer.toString(task.taskId)); in removeThumbnails() 188 void wakeup(TaskRecord task, boolean flush) { in wakeup() argument 190 if (task != null) { in wakeup() 192 queueItem -> task == queueItem.mTask, TaskWriteQueueItem.class); in wakeup() 193 if (item != null && !task.inRecents) { in wakeup() 194 removeThumbnails(task); in wakeup() 197 if (item == null && task.isPersistable) { in wakeup() 198 mPersisterQueue.addItem(new TaskWriteQueueItem(task, mService), flush); in wakeup() 206 Slog.d(TAG, "wakeup: task=" + task + " flush=" + flush + " Callers=" in wakeup() [all …]
|
D | LaunchParamsController.java | 77 void calculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in calculate() argument 81 if (task != null || activity != null) { in calculate() 82 mPersister.getLaunchParams(task, activity, result); in calculate() 93 switch(modifier.onCalculate(task, layout, activity, source, options, phase, mTmpCurrent, in calculate() 123 boolean layoutTask(TaskRecord task, WindowLayout layout) { in layoutTask() argument 124 return layoutTask(task, layout, null /*activity*/, null /*source*/, null /*options*/); in layoutTask() 127 boolean layoutTask(TaskRecord task, WindowLayout layout, ActivityRecord activity, in layoutTask() argument 129 calculate(task, layout, activity, source, options, PHASE_BOUNDS, mTmpParams); in layoutTask() 140 && mTmpParams.mPreferredDisplayId != task.getStack().getDisplay().mDisplayId) { in layoutTask() 141 mService.moveStackToDisplay(task.getStackId(), mTmpParams.mPreferredDisplayId); in layoutTask() [all …]
|
D | TaskScreenshotAnimatable.java | 40 public static TaskScreenshotAnimatable create(Task task) { in create() argument 41 return new TaskScreenshotAnimatable(task, getBufferFromTask(task)); in create() 44 private static SurfaceControl.ScreenshotGraphicBuffer getBufferFromTask(Task task) { in getBufferFromTask() argument 45 if (task == null) { in getBufferFromTask() 48 final Rect tmpRect = task.getBounds(); in getBufferFromTask() 51 task.getSurfaceControl().getHandle(), tmpRect, 1f); in getBufferFromTask() 54 private TaskScreenshotAnimatable(Task task, in TaskScreenshotAnimatable() argument 58 mTask = task; in TaskScreenshotAnimatable() 62 Slog.d(TAG, "Creating TaskScreenshotAnimatable: task: " + task in TaskScreenshotAnimatable()
|
D | ActivityStack.java | 1088 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonOverlayTaskActivity() local 1089 final ArrayList<ActivityRecord> activities = task.mActivities; in topRunningNonOverlayTaskActivity() 1102 final TaskRecord task = mTaskHistory.get(taskNdx); in topRunningNonDelayedActivityLocked() local 1103 final ArrayList<ActivityRecord> activities = task.mActivities; in topRunningNonDelayedActivityLocked() 1125 TaskRecord task = mTaskHistory.get(taskNdx); in topRunningActivityLocked() local 1126 if (task.taskId == taskId) { in topRunningActivityLocked() 1129 ArrayList<ActivityRecord> activities = task.mActivities; in topRunningActivityLocked() 1168 final TaskRecord task = mTaskHistory.get(taskNdx); in taskForIdLocked() local 1169 if (task.taskId == id) { in taskForIdLocked() 1170 return task; in taskForIdLocked() [all …]
|
D | ActivityStackSupervisor.java | 733 final TaskRecord task = r.getTaskRecord(); in realStartActivityLocked() local 734 final ActivityStack stack = task.getStack(); in realStartActivityLocked() 795 if (task.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE in realStartActivityLocked() 796 || task.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE_PRIV in realStartActivityLocked() 797 || (task.mLockTaskAuth == LOCK_TASK_AUTH_WHITELISTED in realStartActivityLocked() 800 lockTaskController.startLockTaskMode(task, false, 0 /* blank UID */); in realStartActivityLocked() 819 System.identityHashCode(r), task.taskId, r.shortComponentName); in realStartActivityLocked() 822 updateHomeProcess(task.mActivities.get(0).app); in realStartActivityLocked() 853 r.launchedFromPackage, task.voiceInteractor, proc.getReportedProcState(), in realStartActivityLocked() 1381 void findTaskToMoveToFront(TaskRecord task, int flags, ActivityOptions options, String reason, in findTaskToMoveToFront() argument [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 263 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_updatesBookkeeping() local 265 runTask(task); in testRunTask_whenQueueEmpty_updatesBookkeeping() 277 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_releasesWakeLock() local 279 runTask(task); in testRunTask_whenQueueEmpty_releasesWakeLock() 288 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_doesNotProduceData() local 290 runTask(task); in testRunTask_whenQueueEmpty_doesNotProduceData() 300 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_doesNotCallTransport() local 302 runTask(task); in testRunTask_whenQueueEmpty_doesNotCallTransport() 313 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_notifiesCorrectly() local 315 runTask(task); in testRunTask_whenQueueEmpty_notifiesCorrectly() [all …]
|
/frameworks/native/services/vr/performanced/ |
D | performance_service.cpp | 80 static bool Check(const Message& sender, const Task& task) { in Check() 81 return sender.GetProcessId() == task.thread_group_id(); in Check() 88 static bool Check(const Message& sender, const Task& task) { in Check() 90 EXPAND_PACK(allow |= Allows::Check(sender, task)); in Check() 98 static bool Check(const Message& sender, const Task& task) { in Check() 100 EXPAND_PACK(allow &= Allows::Check(sender, task)); in Check() 115 Task task(getpid()); in PerformanceService() local 116 ALOGI("Running in cpuset=%s uid=%d gid=%d", task.GetCpuSetPath().c_str(), in PerformanceService() 117 task.user_id()[Task::kUidReal], task.group_id()[Task::kUidReal]); in PerformanceService() 143 const pdx::Message& sender, const Task& task) { in PerformanceService() argument [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | DocumentLoader.java | 74 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/core/java/com/android/internal/widget/ |
D | LockPatternChecker.java | 69 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { in verifyPattern() local 95 task.execute(); in verifyPattern() 96 return task; in verifyPattern() 111 AsyncTask<Void, Void, Boolean> task = new AsyncTask<Void, Void, Boolean>() { in checkPattern() local 142 task.execute(); in checkPattern() 143 return task; in checkPattern() 181 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { in verifyPassword() local 199 task.execute(); in verifyPassword() 200 return task; in verifyPassword() 218 AsyncTask<Void, Void, byte[]> task = new AsyncTask<Void, Void, byte[]>() { in verifyTiedProfileChallenge() local [all …]
|
D | GapWorker.java | 227 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/base/core/java/android/hardware/camera2/utils/ |
D | TaskDrainer.java | 116 public void taskStarted(T task) { in taskStarted() argument 119 Log.v(TAG + "[" + mName + "]", "taskStarted " + task); in taskStarted() 127 if (!mEarlyFinishedTaskSet.remove(task)) { in taskStarted() 129 if (!mTaskSet.add(task)) { in taskStarted() 130 throw new IllegalStateException("Task " + task + " was already started"); in taskStarted() 150 public void taskFinished(T task) { in taskFinished() argument 153 Log.v(TAG + "[" + mName + "]", "taskFinished " + task); in taskFinished() 157 if (!mTaskSet.remove(task)) { in taskFinished() 159 if (!mEarlyFinishedTaskSet.add(task)) { in taskFinished() 160 throw new IllegalStateException("Task " + task + " was already finished"); in taskFinished()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsLoggingServiceTest.java | 95 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/opt/bitmap/src/com/android/bitmap/ |
D | ContiguousFIFOAggregator.java | 165 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/legacy/recents/src/com/android/systemui/recents/events/ui/dragndrop/ |
D | DragStartEvent.java | 30 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/base/libs/hwui/thread/ |
D | CommonPool.h | 88 auto task = std::make_shared<task_t>(std::forward<F>(func)); variable 89 post([task]() { std::invoke(*task); }); 90 return task->get_future(); 95 std::packaged_task<decltype(func())()> task{std::forward<F>(func)}; 96 post([&task]() { std::invoke(task); }); 97 return task.get_future().get();
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/activity/ |
D | LaunchTaskEvent.java | 34 public final Task task; field in LaunchTaskEvent 40 public LaunchTaskEvent(TaskView taskView, Task task, Rect targetTaskBounds, in LaunchTaskEvent() argument 42 this(taskView, task, targetTaskBounds, screenPinningRequested, in LaunchTaskEvent() 46 public LaunchTaskEvent(TaskView taskView, Task task, Rect targetTaskBounds, in LaunchTaskEvent() argument 49 this.task = task; in LaunchTaskEvent()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | TaskStackView.java | 435 void addIgnoreTask(Task task) { in addIgnoreTask() argument 436 mIgnoreTasks.add(task.key); in addIgnoreTask() 442 void removeIgnoreTask(Task task) { in removeIgnoreTask() argument 443 mIgnoreTasks.remove(task.key); in removeIgnoreTask() 449 boolean isIgnoredTask(Task task) { in isIgnoredTask() argument 450 return mIgnoreTasks.contains(task.key); in isIgnoredTask() 489 Task task = tasks.get(i); in computeVisibleTaskTransforms() local 492 transform = mLayoutAlgorithm.getStackTransform(task, curStackScroll, in computeVisibleTaskTransforms() 498 transformAtTarget = mLayoutAlgorithm.getStackTransform(task, targetStackScroll, in computeVisibleTaskTransforms() 507 if (ignoreTasksSet.contains(task.key)) { in computeVisibleTaskTransforms() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | VisualVoicemailService.java | 161 VisualVoicemailTask task = new VisualVoicemailTask(msg.replyTo, msg.arg1); 164 onCellServiceConnected(task, handle); 168 onSmsReceived(task, sms); 171 onSimRemoved(task, handle); 174 onStopped(task); 198 public abstract void onCellServiceConnected(VisualVoicemailTask task, in onCellServiceConnected() argument 212 public abstract void onSmsReceived(VisualVoicemailTask task, in onSmsReceived() argument 223 public abstract void onSimRemoved(VisualVoicemailTask task, in onSimRemoved() argument 231 public abstract void onStopped(VisualVoicemailTask task); in onStopped() argument
|