/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStackSupervisorTests.java | 72 mSupervisor.mStoppingActivities.add(firstActivity); in testStoppingActivityRemovedWhenResumed() 76 assertFalse(mSupervisor.mStoppingActivities.contains(firstActivity)); in testStoppingActivityRemovedWhenResumed() 92 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, in testReportWaitingActivityLaunchedIfNeeded() 104 assertThat(mSupervisor.mWaitingActivityLaunched).isEmpty(); in testReportWaitingActivityLaunchedIfNeeded() 129 mSupervisor.handleNonResizableTaskIfNeeded(task, newDisplay.getWindowingMode(), in testHandleNonResizableTaskOnSecondaryDisplay() 142 mSupervisor.handleNonResizableTaskIfNeeded(task, newDisplay.getWindowingMode(), in testHandleNonResizableTaskOnSecondaryDisplay()
|
D | LaunchParamsPersisterTests.java | 115 mTestTask = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).setStack(stack) in setUp() 121 mTaskWithDifferentComponent = new TaskBuilder(mSupervisor) in setUp() 125 mTaskWithDifferentUser = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).build(); in setUp() 128 mTarget = new LaunchParamsPersister(mPersisterQueue, mSupervisor, mUserFolderGetter); in setUp() 218 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testSavesAndRestoresLaunchParamsAcrossInstances() 236 final TaskRecord anotherTaskOfTheSameUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp() 248 final TaskRecord anotherTaskOfDifferentUser = new TaskBuilder(mSupervisor) in testClearsRecordsOfTheUserOnUserCleanUp() 287 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testClearsWriteQueueItem() 304 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testClearsFile() 332 final LaunchParamsPersister target = new LaunchParamsPersister(mPersisterQueue, mSupervisor, in testClearsWriteQueueItemOnPackageUninstalled() [all …]
|
D | ActivityDisplayTests.java | 151 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(homeStack).build(); in testNotResumeHomeStackOnRemovingDisplay() 184 final KeyguardController keyguard = mSupervisor.getKeyguardController(); in testTopRunningActivity() 320 }).when(mSupervisor).removeTaskByIdLocked(eq(task4.taskId), anyBoolean(), anyBoolean(), in removeStackTests() 327 }).when(mSupervisor).removeTaskByIdLocked(eq(task2.taskId), anyBoolean(), anyBoolean(), in removeStackTests() 331 verify(mSupervisor).removeTaskByIdLocked(eq(task4.taskId), anyBoolean(), anyBoolean(), in removeStackTests() 333 verify(mSupervisor).removeTaskByIdLocked(eq(task3.taskId), anyBoolean(), anyBoolean(), in removeStackTests() 335 verify(mSupervisor).removeTaskByIdLocked(eq(task2.taskId), anyBoolean(), anyBoolean(), in removeStackTests() 337 verify(mSupervisor).removeTaskByIdLocked(eq(task1.taskId), anyBoolean(), anyBoolean(), in removeStackTests()
|
D | RootActivityContainerTests.java | 167 final KeyguardController keyguard = mSupervisor.getKeyguardController(); in testApplySleepTokens() 289 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary() 316 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(primaryStack).build(); in testResizeDockedStackForSplitScreenPrimary() 342 mSupervisor.findTaskToMoveToFront(targetTask, 0, ActivityOptions.makeBasic(), reason, in testFindTaskToMoveToFrontWhenRecentsOnTop() 358 final TaskRecord targetTask = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() 365 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() 369 mSupervisor.findTaskToMoveToFront(targetTask, 0, ActivityOptions.makeBasic(), reason, in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() 385 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityWhenNonTopmostStackIsTopFocused() 441 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testResumeFocusedStacksStartsHomeActivity_ActivityOnSecondaryScreen() 465 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(targetStack).build(); in testResumeActivityLingeringTransition() [all …]
|
D | ActivityTestsBase.java | 109 ActivityStackSupervisor mSupervisor; field in ActivityTestsBase 131 mSupervisor = mService.mStackSupervisor; in setUpBase() 152 return TestActivityDisplay.create(mSupervisor, sNextDisplayId++); in createNewActivityDisplay() 156 return TestActivityDisplay.create(mSupervisor, sNextDisplayId++, info); in createNewActivityDisplay() 178 final TaskBuilder taskBuilder = new TaskBuilder(mSupervisor).setCreateStack(false); in mockTaskRecordFactory() 337 private final ActivityStackSupervisor mSupervisor; field in ActivityTestsBase.TaskBuilder 351 mSupervisor = supervisor; in TaskBuilder() 400 mStack = mSupervisor.mRootActivityContainer.getDefaultDisplay().createStack( in build() 417 final TestTaskRecord task = new TestTaskRecord(mSupervisor.mService, mTaskId, aInfo, in build() 692 private final ActivityStackSupervisor mSupervisor; field in ActivityTestsBase.TestActivityDisplay [all …]
|
D | RecentsAnimationTest.java | 126 doReturn(aInfo).when(mSupervisor).resolveActivity(any() /* intent */, any() /* rInfo */, in testPreloadRecentsActivity() 149 assertThat(mSupervisor.mStoppingActivities).contains(recentsActivity); in testPreloadRecentsActivity() 155 mSupervisor.mStoppingActivities.remove(recentsActivity); in testPreloadRecentsActivity() 164 assertThat(mSupervisor.mStoppingActivities).contains(recentsActivity); in testPreloadRecentsActivity()
|
D | ActivityMetricsLaunchObserverTests.java | 74 mActivityMetricsLogger = mSupervisor.getActivityMetricsLogger(); in setUpAMLO() 83 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUpAMLO()
|
D | ActivityStartInterceptorTest.java | 95 private ActivityStackSupervisor mSupervisor; field in ActivityStartInterceptorTest 117 mService, mSupervisor, mRootActivityContainer, mContext); in setUp()
|
D | RunningTasksTest.java | 62 final ActivityDisplay display = TestActivityDisplay.create(mSupervisor, DEFAULT_DISPLAY); in testCollectTasksByLastActiveTime()
|
D | LockTaskControllerTest.java | 107 @Mock private ActivityStackSupervisor mSupervisor; field in LockTaskControllerTest 135 mSupervisor.mRecentTasks = mRecentTasks; in setUp() 136 mSupervisor.mRootActivityContainer = mRootActivityContainer; in setUp() 138 mLockTaskController = new LockTaskController(mContext, mSupervisor, in setUp()
|
D | TaskRecordTests.java | 183 TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFitWithinBounds() 359 final TaskRecord task = new TaskBuilder(mSupervisor).build(); in testComputeConfigResourceOverrides() 452 TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testStackBoundsConfiguration()
|
D | ActivityRecordTests.java | 195 doNothing().when(mSupervisor).scheduleRestartTimeout(mActivity); in testRestartProcessIfVisible() 388 mSupervisor.beginDeferResume(); in testShouldMakeActive_deferredResume() 391 mSupervisor.endDeferResume(); in testShouldMakeActive_deferredResume()
|
D | ActivityStackTests.java | 91 mTask = new TaskBuilder(mSupervisor).setStack(mStack).build(); in setUp() 146 final TaskRecord destTask = new TaskBuilder(mSupervisor).setStack(destStack).build(); in testResumedActivityFromActivityReparenting() 1006 assertThat(mSupervisor.mStoppingActivities).contains(activity2); in testFinishCurrentActivity() 1119 final KeyguardController keyguardController = mSupervisor.getKeyguardController(); in verifyShouldSleepActivities()
|
D | ActivityStarterTests.java | 328 doReturn(true).when(mSupervisor).checkStartAnyActivityPermission( in prepareStarter() 781 final TaskRecord topTask = new TaskBuilder(mSupervisor).setStack(topStack).build(); in testBringTaskToFrontOnSecondaryDisplay() 803 final TaskRecord taskRecord = new TaskBuilder(mSupervisor) in createSingleTaskActivityOn()
|
D | TaskLaunchParamsModifierTests.java | 82 mTarget = new TaskLaunchParamsModifier(mSupervisor); in setUp() 92 final TaskRecord task = new TaskBuilder(mSupervisor).build(); in testReturnsSkipWithEmptyActivity() 1263 final TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in addFreeformTaskTo()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStartInterceptor.java | 71 private final ActivityStackSupervisor mSupervisor; field in ActivityStartInterceptor 112 mSupervisor = supervisor; in ActivityStartInterceptor() 207 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid); in interceptQuietProfileIfNeeded() 208 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptQuietProfileIfNeeded() 227 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, in interceptSuspendedByAdminPackage() 230 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, in interceptSuspendedByAdminPackage() 233 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptSuspendedByAdminPackage() 258 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, mRealCallingUid); in interceptSuspendedPackageIfNeeded() 259 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptSuspendedPackageIfNeeded() 284 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid); in interceptWorkProfileChallengeIfNeeded() [all …]
|
D | LockTaskController.java | 131 private final ActivityStackSupervisor mSupervisor; field in LockTaskController 198 mSupervisor = supervisor; in LockTaskController() 462 mSupervisor.mRootActivityContainer.resumeFocusedStacksTopActivities(); in clearLockedTask() 573 mSupervisor.mRecentTasks.onLockTaskModeStateChanged(lockTaskModeState, task.userId); in setLockTaskMode() 592 mSupervisor.findTaskToMoveToFront(task, 0, null, reason, in setLockTaskMode() 594 mSupervisor.mRootActivityContainer.resumeFocusedStacksTopActivities(); in setLockTaskMode() 600 mSupervisor.handleNonResizableTaskIfNeeded(task, WINDOWING_MODE_UNDEFINED, in setLockTaskMode() 656 for (int displayNdx = mSupervisor.mRootActivityContainer.getChildCount() - 1; in updateLockTaskPackages() 658 mSupervisor.mRootActivityContainer.getChildAt(displayNdx).onLockTaskPackagesUpdated(); in updateLockTaskPackages() 661 final ActivityRecord r = mSupervisor.mRootActivityContainer.topRunningActivity(); in updateLockTaskPackages() [all …]
|
D | ActivityStarter.java | 150 private final ActivityStackSupervisor mSupervisor; field in ActivityStarter 256 private ActivityStackSupervisor mSupervisor; field in ActivityStarter.DefaultFactory 265 mSupervisor = supervisor; in DefaultFactory() 279 starter = new ActivityStarter(mController, mService, mSupervisor, mInterceptor); in obtain() 445 mSupervisor = supervisor; in ActivityStarter() 553 mSupervisor.getActivityMetricsLogger().notifyActivityLaunching(r.intent); in startResolvedActivity() 560 mSupervisor.getActivityMetricsLogger().notifyActivityLaunched(mLastStartActivityResult, in startResolvedActivity() 622 mSupervisor.getActivityMetricsLogger().notifyActivityLaunching(intent); in startActivity() 762 boolean abort = !mSupervisor.checkStartAnyActivityPermission(intent, aInfo, resultWho, in startActivity() 785 ? options.getOptions(intent, aInfo, callerApp, mSupervisor) : null; in startActivity() [all …]
|
D | TaskLaunchParamsModifier.java | 96 private final ActivityStackSupervisor mSupervisor; field in TaskLaunchParamsModifier 103 mSupervisor = supervisor; in TaskLaunchParamsModifier() 151 ActivityDisplay display = mSupervisor.mRootActivityContainer.getActivityDisplay(displayId); in calculate() 171 if (mSupervisor.canUseActivityOptionsLaunchBounds(options) in calculate() 295 if (!mSupervisor.mService.mSupportsMultiDisplay) { in getPreferredLaunchDisplay() 327 && mSupervisor.mRootActivityContainer.getActivityDisplay(displayId) == null) { in getPreferredLaunchDisplay() 333 && mSupervisor.mRootActivityContainer.getActivityDisplay(displayId) != null) in getPreferredLaunchDisplay() 338 return mSupervisor.mService.mSupportsFreeformWindowManagement in canApplyFreeformWindowPolicy() 343 return mSupervisor.mService.mSupportsPictureInPicture in canApplyPipWindowPolicy() 639 mSupervisor.mRootActivityContainer.getConfiguration().getLayoutDirection(); in adjustBoundsToFitInDisplay()
|
D | LaunchParamsPersister.java | 75 private final ActivityStackSupervisor mSupervisor; field in LaunchParamsPersister 101 mSupervisor = supervisor; in LaunchParamsPersister() 227 mSupervisor.mRootActivityContainer.getActivityDisplay(displayId); in saveTaskToLaunchParam() 263 final ActivityDisplay display = mSupervisor.mRootActivityContainer.getActivityDisplay( in getLaunchParams()
|
D | ActivityStartController.java | 75 private final ActivityStackSupervisor mSupervisor; field in ActivityStartController 132 mSupervisor = supervisor; in ActivityStartController() 195 mSupervisor.scheduleResumeTopActivities(); in startHomeActivity() 393 ActivityInfo aInfo = mSupervisor.resolveActivity(intent, resolvedTypes[i], in startActivities()
|
D | ActivityMetricsLogger.java | 129 private final ActivityStackSupervisor mSupervisor; field in ActivityMetricsLogger 265 mSupervisor = supervisor; in ActivityMetricsLogger() 284 mSupervisor.mRootActivityContainer.getTopDisplayFocusedStack(); in logWindowState() 296 stack = mSupervisor.mRootActivityContainer.findStackBehind(stack); in logWindowState() 540 synchronized (mSupervisor.mService.mGlobalLock) { in checkVisibility() 963 ? mSupervisor.mService.mProcessNames.get( in findProcessForActivity()
|
D | RecentTasks.java | 150 private final ActivityStackSupervisor mSupervisor; field in RecentTasks 227 mSupervisor = mService.mStackSupervisor; in RecentTasks() 237 mSupervisor = mService.mStackSupervisor; in RecentTasks() 624 mSupervisor.removeTaskByIdLocked(tr.taskId, false, in onPackagesSuspendedChanged() 652 mSupervisor.removeTaskByIdLocked(tr.taskId, true, REMOVE_FROM_RECENTS, in removeTasksByPackageName() 681 mSupervisor.removeTaskByIdLocked(tr.taskId, false, in cleanupDisabledPackageTasksLocked()
|