/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | KeyguardTests.java | 106 mAmWmState.computeState(TEST_ACTIVITY); in testKeyguardHidesActivity() 107 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testKeyguardHidesActivity() 109 mAmWmState.computeState(true); in testKeyguardHidesActivity() 110 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testKeyguardHidesActivity() 112 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testKeyguardHidesActivity() 122 mAmWmState.computeState(SHOW_WHEN_LOCKED_ACTIVITY); in testShowWhenLockedActivity() 123 mAmWmState.assertVisibility(SHOW_WHEN_LOCKED_ACTIVITY, true); in testShowWhenLockedActivity() 125 mAmWmState.computeState(true); in testShowWhenLockedActivity() 126 mAmWmState.assertVisibility(SHOW_WHEN_LOCKED_ACTIVITY, true); in testShowWhenLockedActivity() 127 mAmWmState.assertKeyguardShowingAndOccluded(); in testShowWhenLockedActivity() [all …]
|
D | KeyguardLockedTests.java | 77 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testLockAndUnlock() 80 mAmWmState.waitForKeyguardGone(); in testLockAndUnlock() 81 mAmWmState.assertKeyguardGone(); in testLockAndUnlock() 97 mAmWmState.waitForKeyguardShowingAndNotOccluded(); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269() 98 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269() 109 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testDismissKeyguard() 112 mAmWmState.waitForKeyguardGone(); in testDismissKeyguard() 113 mAmWmState.assertKeyguardGone(); in testDismissKeyguard() 114 mAmWmState.assertVisibility(DISMISS_KEYGUARD_ACTIVITY, true); in testDismissKeyguard() 123 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testDismissKeyguard_whileOccluded() [all …]
|
D | SplitScreenTests.java | 85 mIsHomeRecentsComponent = mAmWmState.getAmState().isHomeRecentsComponent(); in setUp() 93 mAmWmState.assertDeviceDefaultDisplaySize( in testMinimumDeviceSize() 102 mAmWmState.computeState(TEST_ACTIVITY); in testStackList() 103 mAmWmState.assertContainsStack("Must contain home stack.", in testStackList() 105 mAmWmState.assertContainsStack("Must contain fullscreen stack.", in testStackList() 107 mAmWmState.assertDoesNotContainStack("Must not contain docked stack.", in testStackList() 114 mAmWmState.assertContainsStack("Must contain home stack.", in testDockActivity() 116 mAmWmState.assertContainsStack("Must contain docked stack.", in testDockActivity() 125 mAmWmState.assertContainsStack("Must contain home stack.", in testNonResizeableNotDocked() 127 mAmWmState.assertDoesNotContainStack("Must not contain docked stack.", in testNonResizeableNotDocked() [all …]
|
D | ActivityVisibilityTests.java | 86 mAmWmState.waitForValidState(LAUNCH_PIP_ON_PIP_ACTIVITY); in testTranslucentActivityOnTopOfPinnedStack() 89 final int stackId = mAmWmState.getAmState().getStackIdByActivity( in testTranslucentActivityOnTopOfPinnedStack() 94 mAmWmState.waitForValidState( in testTranslucentActivityOnTopOfPinnedStack() 100 mAmWmState.assertFrontStack("Pinned stack must be the front stack.", in testTranslucentActivityOnTopOfPinnedStack() 102 mAmWmState.assertVisibility(LAUNCH_PIP_ON_PIP_ACTIVITY, true); in testTranslucentActivityOnTopOfPinnedStack() 103 mAmWmState.assertVisibility(ALWAYS_FOCUSABLE_PIP_ACTIVITY, true); in testTranslucentActivityOnTopOfPinnedStack() 119 mAmWmState.assertFrontStack("Fullscreen stack must be the front stack.", in testTranslucentActivityOnTopOfHome() 121 mAmWmState.assertVisibility(ALWAYS_FOCUSABLE_PIP_ACTIVITY, true); in testTranslucentActivityOnTopOfHome() 122 mAmWmState.assertHomeActivityVisible(true); in testTranslucentActivityOnTopOfHome() 139 final int stackId = mAmWmState.getAmState().getStackIdByActivity( in testHomeVisibleOnActivityTaskPinned() [all …]
|
D | MultiDisplayPolicyTests.java | 91 mAmWmState.assertVisibility(VIRTUAL_DISPLAY_ACTIVITY, true /* visible */); in testContentDestroyOnDisplayRemoved() 106 mAmWmState.waitForActivityRemoved(TEST_ACTIVITY); in testContentDestroyOnDisplayRemoved() 107 mAmWmState.waitForActivityRemoved(RESIZEABLE_ACTIVITY); in testContentDestroyOnDisplayRemoved() 111 mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testContentDestroyOnDisplayRemoved() 113 mAmWmState.getAmState().containsActivity(RESIZEABLE_ACTIVITY)); in testContentDestroyOnDisplayRemoved() 116 mAmWmState.getWmState().containsWindow(getWindowName(TEST_ACTIVITY))); in testContentDestroyOnDisplayRemoved() 118 mAmWmState.getWmState().containsWindow(getWindowName(RESIZEABLE_ACTIVITY))); in testContentDestroyOnDisplayRemoved() 132 mAmWmState.assertVisibility(VIRTUAL_DISPLAY_ACTIVITY, true /* visible */); in testActivityLaunchOnContentDestroyDisplayRemoved() 155 mAmWmState.assertVisibility(VIRTUAL_DISPLAY_ACTIVITY, true /* visible */); in testDisplayResize() 170 mAmWmState.waitForWithAmState(amState -> { in testDisplayResize() [all …]
|
D | AssistantStackTests.java | 79 mAmWmState.getAmState().getStackByActivityType(ACTIVITY_TYPE_ASSISTANT); in setUp() 96 mAmWmState.getAmState().getStackByActivityType( in testLaunchingAssistantActivityIntoAssistantStack() 112 mAmWmState.assertContainsStack("Must contain pinned stack.", in testAssistantStackZOrder() 119 mAmWmState.assertContainsStack("Must contain fullscreen stack.", in testAssistantStackZOrder() 121 mAmWmState.assertContainsStack("Must contain docked stack.", in testAssistantStackZOrder() 132 mAmWmState.assertFrontStack("Pinned stack should be on top.", in testAssistantStackZOrder() 134 mAmWmState.assertFocusedStack("Assistant stack should be focused.", in testAssistantStackZOrder() 154 mAmWmState.assertContainsStack("Must contain fullscreen stack.", in testAssistantStackLaunchNewTaskWithDockedStack() 156 mAmWmState.assertContainsStack("Must contain docked stack.", in testAssistantStackLaunchNewTaskWithDockedStack() 176 mAmWmState.assertFocusedActivity("TestActivity should be resumed", TEST_ACTIVITY); in assertAssistantStackCanLaunchAndReturnFromNewTask() [all …]
|
D | VrDisplayTests.java | 121 mAmWmState.computeState(VR_TEST_ACTIVITY); in testVrActivityLaunch() 122 mAmWmState.assertVisibility(VR_TEST_ACTIVITY, true /* visible */); in testVrActivityLaunch() 126 mAmWmState.computeState(LAUNCHING_ACTIVITY); in testVrActivityLaunch() 129 mAmWmState.assertVisibility(LAUNCHING_ACTIVITY, true /* visible */); in testVrActivityLaunch() 132 mAmWmState.assertFocusedActivity("Launched activity must be focused", in testVrActivityLaunch() 134 final int focusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testVrActivityLaunch() 136 = mAmWmState.getAmState().getStackById(focusedStackId); in testVrActivityLaunch() 171 mAmWmState.computeState(VR_TEST_ACTIVITY); in testVrActivityReLaunch() 172 mAmWmState.assertVisibility(VR_TEST_ACTIVITY, true /* visible */); in testVrActivityReLaunch() 176 mAmWmState.computeState(LAUNCHING_ACTIVITY); in testVrActivityReLaunch() [all …]
|
D | MultiDisplayLockedKeyguardTests.java | 68 mAmWmState.assertVisibility(VIRTUAL_DISPLAY_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked() 72 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked() 78 mAmWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testVirtualDisplayHidesContentWhenLocked() 84 mAmWmState.waitForKeyguardGone(); in testVirtualDisplayHidesContentWhenLocked() 85 mAmWmState.assertKeyguardGone(); in testVirtualDisplayHidesContentWhenLocked() 88 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked() 109 mAmWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testPrivateDisplayHideContentWhenLocked() 126 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testDismissKeyguard_secondaryDisplay() 134 mAmWmState.waitForKeyguardGone(); in testDismissKeyguard_secondaryDisplay() 135 mAmWmState.assertKeyguardGone(); in testDismissKeyguard_secondaryDisplay() [all …]
|
D | KeyguardTransitionTests.java | 63 mAmWmState.computeState(TEST_ACTIVITY); in testUnlock() 65 mAmWmState.getWmState().getDefaultDisplayLastTransition()); in testUnlock() 75 mAmWmState.computeState(WALLPAPAER_ACTIVITY); in testUnlockWallpaper() 77 mAmWmState.getWmState().getDefaultDisplayLastTransition()); in testUnlockWallpaper() 86 mAmWmState.computeState(SHOW_WHEN_LOCKED_ACTIVITY); in testOcclude() 88 mAmWmState.getWmState().getDefaultDisplayLastTransition()); in testOcclude() 98 mAmWmState.waitForKeyguardShowingAndNotOccluded(); in testUnocclude() 99 mAmWmState.computeState(true); in testUnocclude() 101 mAmWmState.getWmState().getDefaultDisplayLastTransition()); in testUnocclude() 111 mAmWmState.computeState(SHOW_WHEN_LOCKED_WITH_DIALOG_ACTIVITY); in testNewActivityDuringOccluded() [all …]
|
D | MultiDisplayActivityLaunchTests.java | 127 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay() 145 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityOnPrimaryDisplay() 203 0, mAmWmState.getAmState().getResumedActivitiesCount()); in testLaunchExternalDisplayActivityWhilePrimaryOff() 213 mAmWmState.assertFocusedAppOnDisplay("App on default display must still be focused", in testLaunchExternalDisplayActivityWhilePrimaryOff() 250 final int externalFrontStackId = mAmWmState.getAmState() in testMoveNonResizeableActivityToSecondaryDisplay() 260 mAmWmState.waitForWithAmState(state -> in testMoveNonResizeableActivityToSecondaryDisplay() 265 mAmWmState.getAmState().getDisplayByActivity(NON_RESIZEABLE_ACTIVITY)); in testMoveNonResizeableActivityToSecondaryDisplay() 315 mAmWmState.waitForActivityState(NON_RESIZEABLE_ACTIVITY, STATE_RESUMED); in testLaunchNonResizeableActivityFromSecondaryDisplayNewTask() 318 final int newFrontStackId = mAmWmState.getAmState().getFocusedStackId(); in testLaunchNonResizeableActivityFromSecondaryDisplayNewTask() 320 mAmWmState.getAmState().getStackById(newFrontStackId); in testLaunchNonResizeableActivityFromSecondaryDisplayNewTask() [all …]
|
D | FreeformWindowingModeTests.java | 66 mAmWmState.computeState(FREEFORM_ACTIVITY, TEST_ACTIVITY); in testFreeformWindowManagementSupport() 69 mAmWmState.assertDoesNotContainStack("Must not contain freeform stack.", in testFreeformWindowManagementSupport() 74 mAmWmState.assertFrontStackOnDisplay("Freeform stack must be the front stack.", in testFreeformWindowManagementSupport() 76 mAmWmState.assertVisibility(FREEFORM_ACTIVITY, true); in testFreeformWindowManagementSupport() 77 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testFreeformWindowManagementSupport() 78 mAmWmState.assertFocusedActivity( in testFreeformWindowManagementSupport() 81 mAmWmState.getAmState().getTaskByActivity(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport() 89 mAmWmState.computeState(NON_RESIZEABLE_ACTIVITY); in testNonResizeableActivityHasFullDisplayBounds() 92 mAmWmState.getAmState().getTaskByActivity(NON_RESIZEABLE_ACTIVITY); in testNonResizeableActivityHasFullDisplayBounds() 93 final ActivityStack stack = mAmWmState.getAmState().getStackById(task.mStackId); in testNonResizeableActivityHasFullDisplayBounds() [all …]
|
D | AppConfigurationTests.java | 190 mAmWmState.getAmState().getTaskByActivity(RESIZEABLE_ACTIVITY); in rotateAndCheckSizes() 191 final int displayId = mAmWmState.getAmState().getStackById(task.mStackId).mDisplayId; in rotateAndCheckSizes() 254 mAmWmState.computeState(false /* compareTaskAndStackBounds */, in moveActivityFullSplitFull() 256 final ActivityManagerState.ActivityStack stack = mAmWmState.getAmState() in moveActivityFullSplitFull() 303 final ActivityManagerState.ActivityStack stack = mAmWmState.getAmState() in testDialogWhenLargeSplitSmall() 306 mAmWmState.getWmState().getDisplay(stack.mDisplayId); in testDialogWhenLargeSplitSmall() 312 mAmWmState.waitForValidState( in testDialogWhenLargeSplitSmall() 329 mAmWmState.assertVisibility(PORTRAIT_ORIENTATION_ACTIVITY, true /* visible */); in testFullscreenAppOrientationRequests() 336 mAmWmState.assertVisibility(LANDSCAPE_ORIENTATION_ACTIVITY, true /* visible */); in testFullscreenAppOrientationRequests() 343 mAmWmState.assertVisibility(PORTRAIT_ORIENTATION_ACTIVITY, true /* visible */); in testFullscreenAppOrientationRequests() [all …]
|
D | PinnedStackTests.java | 153 mAmWmState.assertDeviceDefaultDisplaySize( in testMinimumDeviceSize() 202 mAmWmState.computeState(false /* compareTaskAndStackBounds */, in testNonTappablePipActivity() 204 mAmWmState.assertVisibility(PIP_ACTIVITY, true); in testNonTappablePipActivity() 216 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackDefaultBounds() 222 WindowManagerState wmState = mAmWmState.getWmState(); in testPinnedStackDefaultBounds() 230 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackDefaultBounds() 236 wmState = mAmWmState.getWmState(); in testPinnedStackDefaultBounds() 254 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackMovementBounds() 260 WindowManagerState wmState = mAmWmState.getWmState(); in testPinnedStackMovementBounds() 268 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackMovementBounds() [all …]
|
D | MultiDisplayKeyguardTests.java | 64 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testDismissKeyguardActivity_secondaryDisplay() 66 mAmWmState.waitForKeyguardShowingAndNotOccluded(); in testDismissKeyguardActivity_secondaryDisplay() 67 mAmWmState.assertKeyguardShowingAndNotOccluded(); in testDismissKeyguardActivity_secondaryDisplay() 68 mAmWmState.assertVisibility(DISMISS_KEYGUARD_ACTIVITY, true); in testDismissKeyguardActivity_secondaryDisplay() 83 mAmWmState.waitForWithWmState((state) -> isKeyguardOnDisplay(state, publicDisplay.mId), in testShowKeyguardDialogOnSecondaryDisplay() 87 isKeyguardOnDisplay(mAmWmState.getWmState(), publicDisplay.mId)); in testShowKeyguardDialogOnSecondaryDisplay() 91 mAmWmState.computeState(true); in testShowKeyguardDialogOnSecondaryDisplay() 93 isKeyguardOnDisplay(mAmWmState.getWmState(), publicDisplay.mId)); in testShowKeyguardDialogOnSecondaryDisplay() 111 mAmWmState.waitForWithWmState((state) -> isKeyguardOnDisplay(state, publicDisplay.mId), in testNoKeyguardDialogOnPrivateDisplay() 115 isKeyguardOnDisplay(mAmWmState.getWmState(), publicDisplay.mId)); in testNoKeyguardDialogOnPrivateDisplay() [all …]
|
D | AnimationBackgroundTests.java | 55 mAmWmState.waitForWithWmState(state -> state in testAnimationBackground_duringAnimation() 60 assertTrue("window animation background needs to be showing", mAmWmState.getWmState() in testAnimationBackground_duringAnimation() 69 mAmWmState.computeState(ANIMATION_TEST_ACTIVITY); in testAnimationBackground_gone() 70 mAmWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testAnimationBackground_gone() 76 assertFalse("window animation background needs to be gone", mAmWmState.getWmState() in testAnimationBackground_gone() 82 mAmWmState.waitForValidState(activity); in assumeActivityNotInFreeformDisplay() 83 final int displayId = mAmWmState.getAmState().getDisplayByActivity(activity); in assumeActivityNotInFreeformDisplay() 84 final Display display = mAmWmState.getWmState().getDisplay(displayId); in assumeActivityNotInFreeformDisplay()
|
D | StartActivityTests.java | 60 mAmWmState.computeState(testActivity2.getComponentName()); in testStartActivityContexts() 63 assertFalse(mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testStartActivityContexts() 64 mAmWmState.assertResumedActivity( in testStartActivityContexts() 83 mAmWmState.computeState(TEST_ACTIVITY); in testStartActivityNewTask() 84 mAmWmState.assertResumedActivity("Test Activity should be started with new task flag", in testStartActivityNewTask() 101 mAmWmState.computeState(TEST_ACTIVITY); in testLegacyStartActivityFromNonActivityContext() 102 mAmWmState.assertResumedActivity("Test Activity should be resumed without older sdk", in testLegacyStartActivityFromNonActivityContext()
|
D | DisplaySizeTest.java | 69 mAmWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialog() 76 mAmWmState.assertActivityDisplayed(SMALLEST_WIDTH_ACTIVITY); in testCompatibilityDialog() 77 mAmWmState.assertWindowDisplayed(UNSUPPORTED_DISPLAY_SIZE_DIALOG_NAME); in testCompatibilityDialog() 84 mAmWmState.assertActivityDisplayed(SMALLEST_WIDTH_ACTIVITY); in testCompatibilityDialogWhenFocused() 89 mAmWmState.assertWindowDisplayed(UNSUPPORTED_DISPLAY_SIZE_DIALOG_NAME); in testCompatibilityDialogWhenFocused() 97 mAmWmState.assertActivityDisplayed(SMALLEST_WIDTH_ACTIVITY); in testCompatibilityDialogAfterReturn() 103 mAmWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialogAfterReturn() 112 mAmWmState.assertActivityDisplayed(SMALLEST_WIDTH_ACTIVITY); in testCompatibilityDialogAfterReturn() 113 mAmWmState.assertWindowDisplayed(UNSUPPORTED_DISPLAY_SIZE_DIALOG_NAME); in testCompatibilityDialogAfterReturn()
|
D | MultiDisplaySecurityTests.java | 111 mAmWmState.waitForValidState(TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 113 final int externalFocusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 115 mAmWmState.getAmState().getStackById(externalFocusedStackId); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 119 mAmWmState.assertFocusedActivity("Focus must be on newly launched app", in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 122 externalFocusedStackId, mAmWmState.getAmState().getFocusedStackId()); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 148 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplay() 150 mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testLaunchWithoutPermissionOnVirtualDisplay() 517 mAmWmState.assertVisibility(VIRTUAL_DISPLAY_ACTIVITY, true /* visible */); in testPermissionLaunchFromShell() 518 mAmWmState.assertFocusedActivity("Virtual display activity must be on top", in testPermissionLaunchFromShell() 520 final int defaultDisplayFocusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testPermissionLaunchFromShell() [all …]
|
D | RobustnessTests.java | 43 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityRecursively() 44 if (mAmWmState.getAmState().isActivityVisible(TEST_ACTIVITY)) { in testLaunchActivityRecursively() 48 mAmWmState.waitForValidState(TEST_ACTIVITY); in testLaunchActivityRecursively() 49 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testLaunchActivityRecursively()
|
D | MultiDisplaySystemDecorationTests.java | 148 mAmWmState.waitForWithWmState( in testWallpaperShowOnSecondaryDisplays() 153 isWallpaperOnDisplay(mAmWmState.getWmState(), decoredSystemDisplay.mId)); in testWallpaperShowOnSecondaryDisplays() 156 isWallpaperOnDisplay(mAmWmState.getWmState(), untrustedDisplay.mId)); in testWallpaperShowOnSecondaryDisplays() 212 mAmWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor() 224 mAmWmState.waitAndAssertNavBarShownOnDisplay(DEFAULT_DISPLAY); in testNavBarNotShowingOnDisplayWithoutDecor() 225 final List<WindowState> expected = mAmWmState.getWmState().getAllNavigationBarStates(); in testNavBarNotShowingOnDisplayWithoutDecor() 243 mAmWmState.waitAndAssertNavBarShownOnDisplay(DEFAULT_DISPLAY); in testNavBarNotShowingOnPrivateDisplay() 244 final List<WindowState> expected = mAmWmState.getWmState().getAllNavigationBarStates(); in testNavBarNotShowingOnPrivateDisplay() 265 mAmWmState.waitAndAssertNavBarShownOnDisplay(supportsSysDecorDisplay.mId); in waitAndAssertNavBarStatesAreTheSame() 269 mAmWmState.computeState(true); in waitAndAssertNavBarStatesAreTheSame() [all …]
|
D | ConfigChangeTests.java | 155 mAmWmState.computeState(activityName); in testRotation180WithCutout() 200 mAmWmState.computeState(activityName); in getStateCountForRotation() 238 mAmWmState.computeState(activityName); in testRotation() 243 mAmWmState.computeState(activityName); in testRotation() 245 mAmWmState.getAmState().getTaskByActivity(activityName).mStackId; in testRotation() 246 final int displayId = mAmWmState.getAmState().getStackById(actualStackId).mDisplayId; in testRotation() 260 mAmWmState.computeState(activityName); in testRotation() 281 mAmWmState.computeState(activityName); in testChangeFontScale() 288 mAmWmState.computeState(activityName); in testChangeFontScale() 314 mAmWmState.waitForWithAmState((amState) -> { in testUpdateApplicationInfo()
|
D | DisplayTests.java | 110 mAmWmState.computeState(TEST_ACTIVITY); in testMultiDisplayDisabled() 112 mAmWmState.assertFocusedActivity("Launched activity must be focused", in testMultiDisplayDisabled() 116 final int frontStackId = mAmWmState.getAmState().getFrontStackId(DEFAULT_DISPLAY); in testMultiDisplayDisabled() 118 mAmWmState.getAmState().getStackById(frontStackId); in testMultiDisplayDisabled() 123 mAmWmState.assertFocusedStack("Focus must be on the default display", frontStackId); in testMultiDisplayDisabled() 171 mAmWmState.waitForHomeActivityVisible(); in testForceDisplayMetrics()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityStarterTests.java | 90 mAmWmState.waitForActivityState(secondLaunchActivity.getComponentName(), STATE_RESUMED); in testClearTopNewTaskResetTask() 93 mAmWmState.getAmState().getTopActivityName(0)); in testClearTopNewTaskResetTask() 106 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchStandardActivity() 107 final int instances = mAmWmState.getAmState().getActivityCountInTask(taskId, null); in testLaunchStandardActivity() 114 mAmWmState.getAmState().getActivityCountInTask(taskId, null)); in testLaunchStandardActivity() 119 mAmWmState.getAmState().getTopActivityName(0)); in testLaunchStandardActivity() 123 mAmWmState.getAmState().getTaskByActivity(SECOND_STANDARD_ACTIVITY).getTaskId()); in testLaunchStandardActivity() 138 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTopActivity() 143 final int instances = mAmWmState.getAmState().getActivityCountInTask(taskId, null); in testLaunchSingleTopActivity() 146 mAmWmState.assertFocusedActivity(SINGLE_TOP_ACTIVITY + "must be focused Activity", in testLaunchSingleTopActivity() [all …]
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityLaunchTest.java | 93 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_A_BACKGROUND_ACTIVITY)); in setUp() 94 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_A_FOREGROUND_ACTIVITY)); in setUp() 95 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_B_FOREGROUND_ACTIVITY)); in setUp() 108 mAmWmState.waitForHomeActivityVisible(); in tearDown() 193 mAmWmState.waitForHomeActivityVisible(); in testActivityNotBlockedwhenForegroundActivityLaunchInSameTask() 226 mAmWmState.waitForHomeActivityVisible(); in testActivityNotBlockedWhenForegroundActivityLaunchInDifferentTask() 255 mAmWmState.waitForHomeActivityVisible(); in testActivityBlockedWhenForegroundActivityRestartsItself() 383 assertNull(mAmWmState.getAmState().getTaskByActivity(sourceComponent)); in assertTaskStack() 386 List<ActivityManagerState.Activity> actual = mAmWmState.getAmState().getTaskByActivity( in assertTaskStack() 427 mAmWmState.getAmState().computeState(); in waitForActivityFocused() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 288 protected ActivityAndWindowManagersState mAmWmState = new ActivityAndWindowManagersState(); field in ActivityManagerTestBase 291 return mAmWmState; in getAmWmState() 549 mAmWmState.waitForValidState(activityName); in launchActivity() 559 mAmWmState.waitForValidState(activityName); in launchActivityInNewTask() 568 mAmWmState.computeState(true); in getStackIds() 569 final List<ActivityManagerState.ActivityStack> stacks = mAmWmState.getAmState().getStacks(); in getStackIds() 579 mAmWmState.computeState(true); in getStackForTaskId() 580 final List<ActivityManagerState.ActivityStack> stacks = mAmWmState.getAmState().getStacks(); in getStackForTaskId() 593 mAmWmState.waitForHomeActivityVisible(); in launchHomeActivity() 600 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in launchActivity() [all …]
|