/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStackSupervisorTests.java | 74 mSupervisor.mStoppingActivities.add(firstActivity); in testStoppingActivityRemovedWhenResumed() 78 assertFalse(mSupervisor.mStoppingActivities.contains(firstActivity)); in testStoppingActivityRemovedWhenResumed() 90 mSupervisor.mWaitingActivityLaunched.add(taskToFrontWait); in testReportWaitingActivityLaunchedIfNeeded() 93 mSupervisor.reportWaitingActivityLaunchedIfNeeded(firstActivity, START_TASK_TO_FRONT); in testReportWaitingActivityLaunchedIfNeeded() 95 assertThat(mSupervisor.mWaitingActivityLaunched).isEmpty(); in testReportWaitingActivityLaunchedIfNeeded() 100 mSupervisor.mWaitingActivityLaunched.add(deliverToTopWait); in testReportWaitingActivityLaunchedIfNeeded() 101 mSupervisor.reportWaitingActivityLaunchedIfNeeded(firstActivity, START_DELIVERED_TO_TOP); in testReportWaitingActivityLaunchedIfNeeded() 103 assertThat(mSupervisor.mWaitingActivityLaunched).isEmpty(); in testReportWaitingActivityLaunchedIfNeeded() 127 mSupervisor.handleNonResizableTaskIfNeeded(task, newDisplay.getWindowingMode(), in testHandleNonResizableTaskOnSecondaryDisplay() 140 mSupervisor.handleNonResizableTaskIfNeeded(task, newDisplay.getWindowingMode(), in testHandleNonResizableTaskOnSecondaryDisplay()
|
D | LaunchParamsPersisterTests.java | 119 mTestTask = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).setStack(stack) in setUp() 125 mTaskWithDifferentComponent = new TaskBuilder(mSupervisor) in setUp() 129 mTaskWithDifferentUser = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).build(); in setUp() 132 mTarget = new LaunchParamsPersister(mPersisterQueue, mSupervisor, mUserFolderGetter); in setUp() 278 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testSavesAndRestoresLaunchParamsAcrossInstances() 296 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testUsesRecordWithSameWindowLayoutAffinityAcrossInstances_NoPreviousRecord() 324 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testUsesRecordWithSameWindowLayoutAffinityAcrossInstances_HasOldPreviousRecord() 342 final Task anotherTaskOfTheSameUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp() 354 final Task anotherTaskOfDifferentUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp() 393 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testClearsWriteQueueItem() [all …]
|
D | ActivityDisplayTests.java | 176 final KeyguardController keyguard = mSupervisor.getKeyguardController(); in testTopRunningActivity() 330 }).when(mSupervisor).removeTask(eq(task4), anyBoolean(), anyBoolean(), any()); in removeStackTests() 336 }).when(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeStackTests() 339 verify(mSupervisor).removeTask(eq(task4), anyBoolean(), anyBoolean(), any()); in removeStackTests() 340 verify(mSupervisor).removeTask(eq(task3), anyBoolean(), anyBoolean(), any()); in removeStackTests() 341 verify(mSupervisor).removeTask(eq(task2), anyBoolean(), anyBoolean(), any()); in removeStackTests() 342 verify(mSupervisor).removeTask(eq(task1), anyBoolean(), anyBoolean(), any()); in removeStackTests()
|
D | ActivityTestsBase.java | 69 ActivityStackSupervisor mSupervisor; field in ActivityTestsBase 85 mSupervisor = mService.mStackSupervisor; in setUpBase() 330 private final ActivityStackSupervisor mSupervisor; field in ActivityTestsBase.TaskBuilder 345 mSupervisor = supervisor; in TaskBuilder() 398 SystemServicesTestRule.checkHoldsLock(mSupervisor.mService.mGlobalLock); in build() 402 : mSupervisor.mRootWindowContainer.getDefaultTaskDisplayArea(); in build() 421 final Task task = new ActivityStack(mSupervisor.mService, mTaskId, aInfo, in build()
|
D | RootActivityContainerTests.java | 172 final KeyguardController keyguard = mSupervisor.getKeyguardController(); in testApplySleepTokens() 367 final Task task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary() 397 mSupervisor.findTaskToMoveToFront(targetTask, 0, ActivityOptions.makeBasic(), reason, in testFindTaskToMoveToFrontWhenRecentsOnTop() 414 final Task targetTask = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() 421 final Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() 425 mSupervisor.findTaskToMoveToFront(targetTask, 0, ActivityOptions.makeBasic(), reason, in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() 441 final Task task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityWhenNonTopmostStackIsTopFocused() 497 final Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testResumeFocusedStacksStartsHomeActivity_ActivityOnSecondaryScreen() 521 final Task task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityLingeringTransition() 541 final Task task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityLingeringTransition_notExecuted() [all …]
|
D | ActivityMetricsLaunchObserverTests.java | 77 mActivityMetricsLogger = mSupervisor.getActivityMetricsLogger(); in setUpAMLO() 193 mSupervisor.beginDeferResume(); in testOnActivityLaunchCancelled_finishedBeforeDrawn() 199 mSupervisor.readyToResume(); in testOnActivityLaunchCancelled_finishedBeforeDrawn()
|
D | RecentsAnimationTest.java | 136 doReturn(aInfo).when(mSupervisor).resolveActivity(any() /* intent */, any() /* rInfo */, in testPreloadRecentsActivity() 158 assertThat(mSupervisor.mStoppingActivities).contains(recentsActivity); in testPreloadRecentsActivity() 164 mSupervisor.mStoppingActivities.remove(recentsActivity); in testPreloadRecentsActivity() 173 assertThat(mSupervisor.mStoppingActivities).contains(recentsActivity); in testPreloadRecentsActivity()
|
D | ActivityStackTests.java | 102 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUp() 1187 assertThat(mSupervisor.mStoppingActivities).contains(activity2); in testFinishCurrentActivity() 1376 final KeyguardController keyguardController = mSupervisor.getKeyguardController(); in testClearUnknownAppVisibilityBehindFullscreenActivity() 1381 mSupervisor.beginDeferResume(); in testClearUnknownAppVisibilityBehindFullscreenActivity() 1390 mSupervisor.startSpecificActivity(r, false /* andResume */, in testClearUnknownAppVisibilityBehindFullscreenActivity() 1393 mSupervisor.endDeferResume(); in testClearUnknownAppVisibilityBehindFullscreenActivity() 1416 doNothing().when(mSupervisor).startSpecificActivity(any(), anyBoolean(), in testNonTopVisibleActivityNotResume() 1421 verify(mSupervisor).startSpecificActivity(any(), eq(false) /* andResume */, in testNonTopVisibleActivityNotResume() 1433 final KeyguardController keyguardController = mSupervisor.getKeyguardController(); in verifyShouldSleepActivities()
|
D | ActivityStartInterceptorTest.java | 98 private ActivityStackSupervisor mSupervisor; field in ActivityStartInterceptorTest 122 mService, mSupervisor, mRootWindowContainer, mContext); in setUp()
|
D | TaskRecordTests.java | 177 Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFitWithinBounds() 342 final Task task = new TaskBuilder(mSupervisor).setDisplay(display).build(); in testComputeConfigResourceOverrides() 407 final Task task = new TaskBuilder(mSupervisor).build(); in testComputeNestedConfigResourceOverrides() 425 final Task fullscreenTask = new TaskBuilder(mSupervisor).build(); in testFullScreenTaskNotAdjustedByMinimalSize() 446 final Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testInsetDisregardedWhenFreeformOverlapsNavBar() 971 Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testStackBoundsConfiguration()
|
D | LockTaskControllerTest.java | 111 @Mock private ActivityStackSupervisor mSupervisor; field in LockTaskControllerTest 139 mSupervisor.mRecentTasks = mRecentTasks; in setUp() 140 mSupervisor.mRootWindowContainer = mRootWindowContainer; in setUp() 142 mLockTaskController = new LockTaskController(mContext, mSupervisor, in setUp()
|
D | ActivityRecordTests.java | 162 verify(mSupervisor, never()).removeTask(any(), anyBoolean(), anyBoolean(), any()); in testRemoveChildWithOverlayActivity() 488 mSupervisor.beginDeferResume(); in testShouldMakeActive_deferredResume() 491 mSupervisor.endDeferResume(); in testShouldMakeActive_deferredResume() 1573 new TaskBuilder(mSupervisor).setStack(initialTask.getStack()).build(); in testActivityReparentChangesProcessOverride() 1605 new TaskBuilder(mSupervisor).setStack(initialTask.getStack()).build(); in testActivityReparentDoesntClearProcessOverride_TwoActivities() 1675 final Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in createActivityOnDisplay()
|
D | ActivityStarterTests.java | 317 doReturn(true).when(mSupervisor).checkStartAnyActivityPermission( in prepareStarter() 792 final Task topTask = new TaskBuilder(mSupervisor).setStack(topStack).build(); in testBringTaskToFrontOnSecondaryDisplay() 849 final Task task = new TaskBuilder(mSupervisor) in createSingleTaskActivityOn()
|
D | TaskLaunchParamsModifierTests.java | 90 mTarget = new TaskLaunchParamsModifier(mSupervisor); in setUp() 100 final Task task = new TaskBuilder(mSupervisor).build(); in testReturnsSkipWithEmptyActivity() 1362 final Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in addFreeformTaskTo()
|
D | RecentTasksTest.java | 286 assertTrue(mSupervisor.inActivityVisibilityUpdate()); in testAddTasksInVisibilityUpdate_expectNoTrim() 292 }).when(mSupervisor).endActivityVisibilityUpdate(); in testAddTasksInVisibilityUpdate_expectNoTrim() 297 assertFalse(mSupervisor.inActivityVisibilityUpdate()); in testAddTasksInVisibilityUpdate_expectNoTrim()
|
D | SizeCompatTests.java | 86 doNothing().when(mSupervisor).scheduleRestartTimeout(mActivity); in testRestartProcessIfVisible()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStartInterceptor.java | 73 private final ActivityStackSupervisor mSupervisor; field in ActivityStartInterceptor 115 mSupervisor = supervisor; in ActivityStartInterceptor() 218 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid); in interceptQuietProfileIfNeeded() 219 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptQuietProfileIfNeeded() 238 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, in interceptSuspendedByAdminPackage() 241 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, in interceptSuspendedByAdminPackage() 244 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptSuspendedByAdminPackage() 275 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, mRealCallingUid); in interceptSuspendedPackageIfNeeded() 276 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptSuspendedPackageIfNeeded() 294 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, mRealCallingUid); in interceptLockTaskModeViolationPackageIfNeeded() [all …]
|
D | LockTaskController.java | 132 private final ActivityStackSupervisor mSupervisor; field in LockTaskController 199 mSupervisor = supervisor; in LockTaskController() 482 mSupervisor.mRootWindowContainer.resumeFocusedStacksTopActivities(); in clearLockedTask() 598 mSupervisor.mRecentTasks.onLockTaskModeStateChanged(lockTaskModeState, task.mUserId); in setLockTaskMode() 617 mSupervisor.findTaskToMoveToFront(task, 0, null, reason, in setLockTaskMode() 619 mSupervisor.mRootWindowContainer.resumeFocusedStacksTopActivities(); in setLockTaskMode() 625 mSupervisor.handleNonResizableTaskIfNeeded(task, WINDOWING_MODE_UNDEFINED, in setLockTaskMode() 626 mSupervisor.mRootWindowContainer.getDefaultTaskDisplayArea(), in setLockTaskMode() 682 mSupervisor.mRootWindowContainer.forAllTasks(Task::setLockTaskAuth); in updateLockTaskPackages() 684 final ActivityRecord r = mSupervisor.mRootWindowContainer.topRunningActivity(); in updateLockTaskPackages() [all …]
|
D | TaskLaunchParamsModifier.java | 86 private final ActivityStackSupervisor mSupervisor; field in TaskLaunchParamsModifier 93 mSupervisor = supervisor; in TaskLaunchParamsModifier() 175 if (mSupervisor.canUseActivityOptionsLaunchBounds(options) in calculate() 248 } else if (!mSupervisor.mService.mSizeCompatFreeform && !root.isResizeable()) { in calculate() 316 final DisplayContent dc = mSupervisor.mRootWindowContainer in getPreferredLaunchTaskDisplayArea() 336 mSupervisor.mRootWindowContainer.getDisplayContent(displayId); in getPreferredLaunchTaskDisplayArea() 360 mSupervisor.mRootWindowContainer.getDisplayContent(callerDisplayId); in getPreferredLaunchTaskDisplayArea() 372 if (taskDisplayArea != null && !mSupervisor.mService.mSupportsMultiDisplay in getPreferredLaunchTaskDisplayArea() 374 taskDisplayArea = mSupervisor.mRootWindowContainer.getDefaultTaskDisplayArea(); in getPreferredLaunchTaskDisplayArea() 379 : mSupervisor.mRootWindowContainer.getDefaultTaskDisplayArea(); in getPreferredLaunchTaskDisplayArea() [all …]
|
D | ActivityStarter.java | 146 private final ActivityStackSupervisor mSupervisor; field in ActivityStarter 259 private ActivityStackSupervisor mSupervisor; field in ActivityStarter.DefaultFactory 268 mSupervisor = supervisor; in DefaultFactory() 282 starter = new ActivityStarter(mController, mService, mSupervisor, mInterceptor); in obtain() 539 mSupervisor = supervisor; in ActivityStarter() 608 final LaunchingState launchingState = mSupervisor.getActivityMetricsLogger() in startResolvedActivity() 616 mSupervisor.getActivityMetricsLogger().notifyActivityLaunched(launchingState, in startResolvedActivity() 638 launchingState = mSupervisor.getActivityMetricsLogger().notifyActivityLaunching( in execute() 647 mRequest.resolveActivity(mSupervisor); in execute() 694 mSupervisor.getActivityMetricsLogger().notifyActivityLaunched(launchingState, res, in execute() [all …]
|
D | ActivityStartController.java | 79 private final ActivityStackSupervisor mSupervisor; field in ActivityStartController 136 mSupervisor = supervisor; in ActivityStartController() 192 mSupervisor.beginDeferResume(); in startHomeActivity() 198 mSupervisor.endDeferResume(); in startHomeActivity() 212 mSupervisor.scheduleResumeTopActivities(); in startHomeActivity() 419 ActivityInfo aInfo = mSupervisor.resolveActivity(intent, resolvedTypes[i], in startActivities() 425 intentGrants = mSupervisor.mService.mUgmInternal in startActivities()
|
D | RecentTasks.java | 152 private final ActivityStackSupervisor mSupervisor; field in RecentTasks 233 mSupervisor = mService.mStackSupervisor; in RecentTasks() 244 mSupervisor = mService.mStackSupervisor; in RecentTasks() 645 mSupervisor.removeTask(task, false, REMOVE_FROM_RECENTS, "suspended-package"); in onPackagesSuspendedChanged() 672 mSupervisor.removeTask(task, true, REMOVE_FROM_RECENTS, "remove-package-task"); in removeTasksByPackageName() 700 mSupervisor.removeTask(task, false, REMOVE_FROM_RECENTS, "disabled-package"); in cleanupDisabledPackageTasksLocked() 1036 final boolean canTrimTask = !mSupervisor.inActivityVisibilityUpdate(); in add() 1442 mSupervisor.removeTask(hiddenTask, false /* killProcess */, in removeUnreachableHiddenTasks()
|
D | LaunchParamsPersister.java | 77 private final ActivityStackSupervisor mSupervisor; field in LaunchParamsPersister 111 mSupervisor = supervisor; in LaunchParamsPersister() 318 final DisplayContent display = mSupervisor.mRootWindowContainer.getDisplayContent( in getLaunchParams()
|
D | ActivityMetricsLogger.java | 141 private final ActivityStackSupervisor mSupervisor; field in ActivityMetricsLogger 383 mSupervisor = supervisor; in ActivityMetricsLogger() 400 mSupervisor.mRootWindowContainer.getTopDisplayFocusedStack(); in logWindowState() 412 stack = mSupervisor.mRootWindowContainer.findStackBehind(stack); in logWindowState() 528 : mSupervisor.mService.getProcessController( in notifyActivityLaunched() 689 synchronized (mSupervisor.mService.mGlobalLock) { in checkVisibility()
|