/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskTests.java | 135 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveContainer() local 136 final ActivityRecord activity = createActivityRecord(mDisplayContent, task); in testRemoveContainer() 138 task.remove(false /* withTransition */, "testRemoveContainer"); in testRemoveContainer() 140 assertNotNull(task.getParent()); in testRemoveContainer() 142 assertTrue(task.hasChild()); in testRemoveContainer() 147 assertNull(task.getParent()); in testRemoveContainer() 148 assertEquals(0, task.getChildCount()); in testRemoveContainer() 150 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(task); in testRemoveContainer() 178 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveContainer_deferRemoval() local 179 final ActivityRecord activity = createActivityRecord(mDisplayContent, task); in testRemoveContainer_deferRemoval() [all …]
|
D | DesktopModeLaunchParamsModifierTests.java | 96 final Task task = new TaskBuilder(mSupervisor).build(); in testReturnsContinueIfDesktopWindowingIsEnabledAndUnsupportedDeviceOverridden() local 97 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsContinueIfDesktopWindowingIsEnabledAndUnsupportedDeviceOverridden() 113 final Task task = new TaskBuilder(mSupervisor).build(); in testReturnsSkipIfNotBoundsPhase() local 114 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(task).setPhase( in testReturnsSkipIfNotBoundsPhase() 123 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsSkipIfTaskNotUsingActivityTypeStandardOrUndefined() local 125 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsSkipIfTaskNotUsingActivityTypeStandardOrUndefined() 133 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsContinueIfTaskUsingActivityTypeStandard() local 135 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsContinueIfTaskUsingActivityTypeStandard() 143 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsContinueIfTaskUsingActivityTypeUndefined() local 145 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsContinueIfTaskUsingActivityTypeUndefined() [all …]
|
D | TaskFragmentOrganizerControllerTest.java | 435 final Task task = activity.getTask(); in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() local 438 task.effectiveUid = uid; in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() 451 assertActivityReparentedToTaskTransaction(task.mTaskId, activity.intent, activity.token); in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() 455 .setParentTask(task) in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() 472 assertActivityReparentedToTaskTransaction(task.mTaskId, activity.intent, activity.token); in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() 484 final Task task = createTask(mDisplayContent); in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken() local 485 task.addChild(mTaskFragment, POSITION_TOP); in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken() 486 final ActivityRecord activity = createActivityRecord(task); in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken() 503 task.effectiveUid = uid; in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken() 519 assertEquals(task.mTaskId, change.getTaskId()); in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken() [all …]
|
D | RootTaskTests.java | 162 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRootTaskRemoveImmediately() local 163 assertEquals(rootTask, task.getRootTask()); in testRootTaskRemoveImmediately() 168 assertNull(task.getParent()); in testRootTaskRemoveImmediately() 174 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveContainer() local 177 assertNotNull(task); in testRemoveContainer() 183 assertNull(task.getDisplayContent()); in testRemoveContainer() 184 assertNull(task.getParent()); in testRemoveContainer() 190 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveContainer_deferRemoval() local 193 doReturn(rootTask).when(task).getAnimatingContainer( in testRemoveContainer_deferRemoval() 201 assertNotNull(task); in testRemoveContainer_deferRemoval() [all …]
|
D | WindowContainerTransactionTests.java | 58 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveTask() local 59 final ActivityRecord activity = createActivityRecord(mDisplayContent, task); in testRemoveTask() 62 WindowContainerToken token = task.getTaskInfo().token; in testRemoveTask() 67 assertNotNull(task.getParent()); in testRemoveTask() 69 assertTrue(task.hasChild()); in testRemoveTask() 74 assertNull(task.getParent()); in testRemoveTask() 75 assertEquals(0, task.getChildCount()); in testRemoveTask() 77 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(task); in testRemoveTask() 90 final Task task = createTask(mDisplayContent); in testDesktopMode_tasksAreBroughtToFront() local 91 final ActivityRecord activity = createActivityRecord(mDisplayContent, task); in testDesktopMode_tasksAreBroughtToFront() [all …]
|
D | BackNavigationControllerTests.java | 117 Task task = createTopTaskWithActivity(); in backNavInfo_HomeWhenBackToLauncher() local 118 IOnBackInvokedCallback callback = withSystemCallback(task); in backNavInfo_HomeWhenBackToLauncher() 217 IOnBackInvokedCallback callback = withSystemCallback(testCase.task); in backTypeCrossActivityWithCustomizeExitAnimation() 239 IOnBackInvokedCallback callback = withSystemCallback(testCase.task); in backTypeCrossActivityWhenBackToPreviousActivity() 292 final Task task = createTask(mDefaultDisplay); in backTypeCrossActivityInTaskFragment() local 293 final TaskFragment tf1 = createTaskFragmentWithActivity(task); in backTypeCrossActivityInTaskFragment() 294 final TaskFragment tf2 = createTaskFragmentWithActivity(task); in backTypeCrossActivityInTaskFragment() 304 predictable = BackNavigationController.getAnimatablePrevActivities(task, topAr, in backTypeCrossActivityInTaskFragment() 312 predictable = BackNavigationController.getAnimatablePrevActivities(task, topAr, in backTypeCrossActivityInTaskFragment() 321 predictable = BackNavigationController.getAnimatablePrevActivities(task, topAr, in backTypeCrossActivityInTaskFragment() [all …]
|
D | TaskFragmentTest.java | 148 final Task task = createTask(mDisplayContent, WINDOWING_MODE_MULTI_WINDOW, in testShouldStartChangeTransition_relativePositionChange() local 150 task.setBoundsUnchecked(new Rect(0, 0, 1000, 1000)); in testShouldStartChangeTransition_relativePositionChange() 151 mTaskFragment = createTaskFragmentWithEmbeddedActivity(task, mOrganizer); in testShouldStartChangeTransition_relativePositionChange() 180 final Task task = createTask(mDisplayContent, WINDOWING_MODE_MULTI_WINDOW, in testStartChangeTransition_resetSurface() local 182 task.setBoundsUnchecked(new Rect(0, 0, 1000, 1000)); in testStartChangeTransition_resetSurface() 183 mTaskFragment = createTaskFragmentWithEmbeddedActivity(task, mOrganizer); in testStartChangeTransition_resetSurface() 348 final Task task = createTask(mDisplayContent); in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() local 349 final TaskFragment taskFragment0 = createTaskFragmentWithEmbeddedActivity(task, mOrganizer); in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() 351 .setParentTask(task) in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() 355 task.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() [all …]
|
D | LaunchParamsControllerTests.java | 134 (task, layout, activity, source, options, phase, currentParams, outParams, request) in testEarlyExit() 288 final Task task = new TaskBuilder(mAtm.mTaskSupervisor).setCreateParentTask(true).build(); in testLayoutNonRootTaskWindowingModeChange() local 289 task.getRootTask().setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in testLayoutNonRootTaskWindowingModeChange() 293 final int beforeWindowMode = task.getWindowingMode(); in testLayoutNonRootTaskWindowingModeChange() 296 mController.layoutTask(task, null /* windowLayout */); in testLayoutNonRootTaskWindowingModeChange() 298 final int afterWindowMode = task.getWindowingMode(); in testLayoutNonRootTaskWindowingModeChange() 313 final Task task = new TaskBuilder(mAtm.mTaskSupervisor) in testLayoutTaskBoundsChangeFreeformWindow() local 318 assertNotEquals(expected, task.getBounds()); in testLayoutTaskBoundsChangeFreeformWindow() 320 mController.layoutTask(task, null /* windowLayout */); in testLayoutTaskBoundsChangeFreeformWindow() 324 assertEquals(expected, task.getRequestedOverrideBounds()); in testLayoutTaskBoundsChangeFreeformWindow() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | RecentTasks.java | 148 void onRecentTaskAdded(Task task); in onRecentTaskAdded() argument 153 void onRecentTaskRemoved(Task task, boolean wasTrimmed, boolean killProcess); in onRecentTaskRemoved() argument 487 private void notifyTaskAdded(Task task) { in notifyTaskAdded() argument 489 mCallbacks.get(i).onRecentTaskAdded(task); in notifyTaskAdded() 494 private void notifyTaskRemoved(Task task, boolean wasTrimmed, boolean killProcess) { in notifyTaskRemoved() argument 496 mCallbacks.get(i).onRecentTaskRemoved(task, wasTrimmed, killProcess); in notifyTaskRemoved() 538 final Task task = mTasks.get(i); in restoreRecentTasksLocked() local 539 if (task.mUserId == userId && shouldPersistTaskLocked(task)) { in restoreRecentTasksLocked() 540 existedTaskIds.add(task.mTaskId); in restoreRecentTasksLocked() 552 Task task = tasks.get(i); in restoreRecentTasksLocked() local [all …]
|
D | TaskOrganizerController.java | 113 SurfaceControl prepareLeash(Task task, String reason) { in prepareLeash() argument 114 return new SurfaceControl(task.getSurfaceControl(), reason); in prepareLeash() 117 void onTaskAppeared(Task task) { in onTaskAppeared() argument 118 ProtoLog.v(WM_DEBUG_WINDOW_ORGANIZER, "Task appeared taskId=%d", task.mTaskId); in onTaskAppeared() 119 final RunningTaskInfo taskInfo = task.getTaskInfo(); in onTaskAppeared() 121 mTaskOrganizer.onTaskAppeared(taskInfo, prepareLeash(task, in onTaskAppeared() 128 void onTaskVanished(Task task) { in onTaskVanished() argument 129 ProtoLog.v(WM_DEBUG_WINDOW_ORGANIZER, "Task vanished taskId=%d", task.mTaskId); in onTaskVanished() 130 final RunningTaskInfo taskInfo = task.getTaskInfo(); in onTaskVanished() 138 void onTaskInfoChanged(Task task, ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument [all …]
|
D | TaskSnapshotController.java | 122 final Task task = activity.getTask(); in handleClosingApps() local 123 if (task == null) continue; in handleClosingApps() 125 getClosingTasksInner(task, mTmpTasks); in handleClosingApps() 142 for (Task task : tasks) { in addSkipClosingAppSnapshotTasks() 143 mSkipClosingAppSnapshotTasks.add(task.mTaskId); in addSkipClosingAppSnapshotTasks() 158 void recordSnapshot(Task task, Transition.ChangeInfo changeInfo) { in recordSnapshot() argument 161 recordSnapshot(task); in recordSnapshot() 167 TaskSnapshot recordSnapshot(Task task) { in recordSnapshot() argument 168 final TaskSnapshot snapshot = recordSnapshotInner(task); in recordSnapshot() 169 if (snapshot != null && !task.isActivityTypeHome()) { in recordSnapshot() [all …]
|
D | LockTaskController.java | 239 boolean isTaskLocked(Task task) { in isTaskLocked() argument 240 return mLockTaskModeTasks.contains(task); in isTaskLocked() 246 private boolean isRootTask(Task task) { in isRootTask() argument 247 return mLockTaskModeTasks.indexOf(task) == 0; in isRootTask() 255 final Task task = activity.getTask(); in activityBlockedFromFinish() local 256 if (task.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE_PRIV || !isRootTask(task)) { in activityBlockedFromFinish() 260 final ActivityRecord taskTop = task.getTopNonFinishingActivity(); in activityBlockedFromFinish() 261 final ActivityRecord taskRoot = task.getRootActivity(); in activityBlockedFromFinish() 283 final boolean hasOtherActivityInTask = task.getActivity(a -> !a.finishing in activityBlockedFromFinish() 304 boolean canMoveTaskToBack(Task task) { in canMoveTaskToBack() argument [all …]
|
D | RunningTasks.java | 117 final Task task = mTmpSortedTasks.get(i); in getTasks() local 122 list.add(createRunningTaskInfo(task, visibleActiveTime)); in getTasks() 136 public void accept(Task task) { 137 if (task.getTopNonFinishingActivity() == null) { 141 if (task.effectiveUid != mCallingUid) { 142 if (task.mUserId != mUserId && !mCrossUser && !mProfileIds.contains(task.mUserId)) { 153 && task.getActivityType() != ACTIVITY_TYPE_HOME 154 && task.getActivityType() != ACTIVITY_TYPE_RECENTS 155 && !mRecentTasks.isVisibleRecentTask(task)) { 160 if (task.isVisibleRequested()) { [all …]
|
D | ActivityTaskSupervisor.java | 397 boolean canPlaceEntityOnDisplay(int displayId, int callingPid, int callingUid, Task task) { in canPlaceEntityOnDisplay() argument 398 return canPlaceEntityOnDisplay(displayId, callingPid, callingUid, task, in canPlaceEntityOnDisplay() 403 Task task, ActivityInfo activityInfo) { in canPlaceEntityOnDisplay() argument 427 if (task != null) { in canPlaceEntityOnDisplay() 428 task.forAllActivities((r) -> { in canPlaceEntityOnDisplay() 803 final Task task = r.getTask(); in realStartActivityLocked() local 806 if (task.pauseActivityIfNeeded(r, "realStart")) { in realStartActivityLocked() 818 final Task rootTask = task.getRootTask(); in realStartActivityLocked() 879 if (task.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE in realStartActivityLocked() 880 || task.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE_PRIV in realStartActivityLocked() [all …]
|
D | TaskPersister.java | 124 private void removeThumbnails(Task task) { in removeThumbnails() argument 128 return file.getName().startsWith(Integer.toString(task.mTaskId)); in removeThumbnails() 192 void wakeup(Task task, boolean flush) { in wakeup() argument 194 if (task != null) { in wakeup() 196 queueItem -> task == queueItem.mTask, TaskWriteQueueItem.class); in wakeup() 197 if (item != null && !task.inRecents) { in wakeup() 198 removeThumbnails(task); in wakeup() 201 if (item == null && task.isPersistable) { in wakeup() 202 mPersisterQueue.addItem(new TaskWriteQueueItem(task, mService), flush); in wakeup() 210 Slog.d(TAG, "wakeup: task=" + task + " flush=" + flush + " Callers=" in wakeup() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DesktopModeWindowDecorViewModelTests.kt | 189 val task = createTask(windowingMode = WINDOWING_MODE_FREEFORM) in testDeleteCaptionOnChangeTransitionWhenNecessary() constant 191 val decoration = setUpMockDecorationForTask(task) in testDeleteCaptionOnChangeTransitionWhenNecessary() 193 onTaskOpening(task, taskSurface) in testDeleteCaptionOnChangeTransitionWhenNecessary() 195 task.setWindowingMode(WINDOWING_MODE_UNDEFINED) in testDeleteCaptionOnChangeTransitionWhenNecessary() 196 task.setActivityType(ACTIVITY_TYPE_UNDEFINED) in testDeleteCaptionOnChangeTransitionWhenNecessary() 197 onTaskChanging(task, taskSurface) in testDeleteCaptionOnChangeTransitionWhenNecessary() 203 task, in testDeleteCaptionOnChangeTransitionWhenNecessary() 215 val task = createTask( in testCreateCaptionOnChangeTransitionWhenNecessary() constant 220 setUpMockDecorationForTask(task) in testCreateCaptionOnChangeTransitionWhenNecessary() 222 onTaskChanging(task, taskSurface) in testCreateCaptionOnChangeTransitionWhenNecessary() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksLimiterTest.kt | 98 val task = setUpFreeformTask() in addPendingMinimizeTransition_taskIsNotMinimized() constant 99 markTaskHidden(task) in addPendingMinimizeTransition_taskIsNotMinimized() 101 desktopTasksLimiter.addPendingMinimizeChange(Binder(), displayId = 1, taskId = task.taskId) in addPendingMinimizeTransition_taskIsNotMinimized() 103 assertThat(desktopTaskRepo.isMinimizedTask(taskId = task.taskId)).isFalse() in addPendingMinimizeTransition_taskIsNotMinimized() 108 val task = setUpFreeformTask() in onTransitionReady_noPendingTransition_taskIsNotMinimized() constant 109 markTaskHidden(task) in onTransitionReady_noPendingTransition_taskIsNotMinimized() 113 TransitionInfoBuilder(TRANSIT_OPEN).addChange(TRANSIT_TO_BACK, task).build(), in onTransitionReady_noPendingTransition_taskIsNotMinimized() 117 assertThat(desktopTaskRepo.isMinimizedTask(taskId = task.taskId)).isFalse() in onTransitionReady_noPendingTransition_taskIsNotMinimized() 124 val task = setUpFreeformTask() in onTransitionReady_differentPendingTransition_taskIsNotMinimized() constant 125 markTaskHidden(task) in onTransitionReady_differentPendingTransition_taskIsNotMinimized() [all …]
|
D | DesktopTasksControllerTest.kt | 488 val task = setUpFullscreenTask() in <lambda>() constant 491 controller.moveToDesktop(task, transitionSource = UNKNOWN) in <lambda>() 493 assertThat(findBoundsChange(wct, task)).isEqualTo(DEFAULT_LANDSCAPE_BOUNDS) in <lambda>() 499 val task = setUpFullscreenTask(screenOrientation = SCREEN_ORIENTATION_LANDSCAPE) in <lambda>() constant 502 controller.moveToDesktop(task, transitionSource = UNKNOWN) in <lambda>() 504 assertThat(findBoundsChange(wct, task)).isEqualTo(DEFAULT_LANDSCAPE_BOUNDS) in <lambda>() 510 val task = in <lambda>() constant 514 controller.moveToDesktop(task, transitionSource = UNKNOWN) in <lambda>() 516 assertThat(findBoundsChange(wct, task)).isEqualTo(RESIZABLE_PORTRAIT_BOUNDS) in <lambda>() 522 val task = in <lambda>() constant [all …]
|
D | DragToDesktopTransitionHandlerTest.kt | 73 val task = createTask() in startDragToDesktop_animateDragWhenReady() constant 75 val transition = startDragToDesktopTransition(task, dragAnimator) in startDragToDesktop_animateDragWhenReady() 83 draggedTask = task in startDragToDesktop_animateDragWhenReady() 124 val task = createTask() in startDragToDesktop_aborted_finishDropped() constant 126 val transition = startDragToDesktopTransition(task, dragAnimator) in startDragToDesktop_aborted_finishDropped() 141 val task = createTask() in startDragToDesktop_aborted_cancelDropped() constant 143 val transition = startDragToDesktopTransition(task, dragAnimator) in startDragToDesktop_aborted_cancelDropped() 158 val task = createTask() in startDragToDesktop_anotherTransitionInProgress_startDropped() constant 161 startDragToDesktopTransition(task, dragAnimator) in startDragToDesktop_anotherTransitionInProgress_startDropped() 162 startDragToDesktopTransition(task, dragAnimator) in startDragToDesktop_anotherTransitionInProgress_startDropped() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 286 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_updatesBookkeeping() local 288 runTask(task); in testRunTask_whenQueueEmpty_updatesBookkeeping() 300 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_releasesWakeLock() local 302 runTask(task); in testRunTask_whenQueueEmpty_releasesWakeLock() 311 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_doesNotProduceData() local 313 runTask(task); in testRunTask_whenQueueEmpty_doesNotProduceData() 323 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_doesNotCallTransport() local 325 runTask(task); in testRunTask_whenQueueEmpty_doesNotCallTransport() 336 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, true); in testRunTask_whenQueueEmpty_notifiesCorrectly() local 338 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/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/packages/SystemUI/tests/src/com/android/systemui/screenshot/data/model/ |
D | DisplayContentScenarios.kt | 236 fun fullScreen(task: TaskSpec, visible: Boolean) = in fullScreen() 238 taskId = task.taskId, in fullScreen() 239 userId = task.userId, in fullScreen() 242 topActivity = ComponentName.unflattenFromString(task.name), in fullScreen() 244 listOf(newChildTask(taskId = task.taskId, userId = task.userId, name = task.name)) in fullScreen() 248 fun pictureInPicture(task: TaskSpec) = in pictureInPicture() 250 taskId = task.taskId, in pictureInPicture() 251 userId = task.userId, in pictureInPicture() 254 topActivity = ComponentName.unflattenFromString(task.name), in pictureInPicture() 256 listOf(newChildTask(taskId = task.taskId, userId = userId, name = task.name)) in pictureInPicture() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksController.kt | 347 task: RunningTaskInfo, in <lambda>() 351 if (Flags.enableDesktopWindowingModalsPolicy() && isSingleTopActivityTranslucent(task)) { in <lambda>() 359 if (isSystemUIApplication(task)) { in <lambda>() 370 task.taskId in <lambda>() 372 exitSplitIfApplicable(wct, task) in <lambda>() 375 bringDesktopAppsToFrontBeforeShowingNewTask(task.displayId, wct, task.taskId) in <lambda>() 376 addMoveToDesktopChanges(wct, task) in <lambda>() 455 shellTaskOrganizer.getRunningTaskInfo(taskId)?.let { task -> in <lambda>() method 456 moveToFullscreenWithAnimation(task, task.positionInParent, transitionSource) in <lambda>() 468 fun moveToSplit(task: RunningTaskInfo) { in <lambda>() [all …]
|
/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 …]
|