Home
last modified time | relevance | path

Searched refs:mAmWmState (Results 1 – 25 of 45) sorted by relevance

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DKeyguardTests.java106 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 …]
DKeyguardLockedTests.java77 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 …]
DSplitScreenTests.java85 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 …]
DActivityVisibilityTests.java86 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 …]
DMultiDisplayPolicyTests.java91 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 …]
DAssistantStackTests.java79 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 …]
DVrDisplayTests.java121 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 …]
DMultiDisplayActivityLaunchTests.java127 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 …]
DMultiDisplayLockedKeyguardTests.java68 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 …]
DAppConfigurationTests.java190 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 …]
DKeyguardTransitionTests.java63 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 …]
DFreeformWindowingModeTests.java66 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 …]
DPinnedStackTests.java157 mAmWmState.assertDeviceDefaultDisplaySize( in testMinimumDeviceSize()
207 mAmWmState.computeState(false /* compareTaskAndStackBounds */, in testNonTappablePipActivity()
209 mAmWmState.assertVisibility(PIP_ACTIVITY, true); in testNonTappablePipActivity()
221 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackDefaultBounds()
227 WindowManagerState wmState = mAmWmState.getWmState(); in testPinnedStackDefaultBounds()
235 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackDefaultBounds()
241 wmState = mAmWmState.getWmState(); in testPinnedStackDefaultBounds()
259 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackMovementBounds()
265 WindowManagerState wmState = mAmWmState.getWmState(); in testPinnedStackMovementBounds()
273 mAmWmState.waitForWithWmState((wmState1) -> { in testPinnedStackMovementBounds()
[all …]
DMultiDisplayKeyguardTests.java64 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 …]
DAnimationBackgroundTests.java55 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()
DStartActivityTests.java60 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()
DMultiDisplaySecurityTests.java111 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 …]
DDisplaySizeTest.java69 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()
DMultiDisplaySystemDecorationTests.java150 mAmWmState.waitForWithWmState( in testWallpaperShowOnSecondaryDisplays()
155 isWallpaperOnDisplay(mAmWmState.getWmState(), decoredSystemDisplay.mId)); in testWallpaperShowOnSecondaryDisplays()
158 isWallpaperOnDisplay(mAmWmState.getWmState(), untrustedDisplay.mId)); in testWallpaperShowOnSecondaryDisplays()
214 mAmWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor()
226 mAmWmState.waitAndAssertNavBarShownOnDisplay(DEFAULT_DISPLAY); in testNavBarNotShowingOnDisplayWithoutDecor()
227 final List<WindowState> expected = mAmWmState.getWmState().getAllNavigationBarStates(); in testNavBarNotShowingOnDisplayWithoutDecor()
245 mAmWmState.waitAndAssertNavBarShownOnDisplay(DEFAULT_DISPLAY); in testNavBarNotShowingOnPrivateDisplay()
246 final List<WindowState> expected = mAmWmState.getWmState().getAllNavigationBarStates(); in testNavBarNotShowingOnPrivateDisplay()
267 mAmWmState.waitAndAssertNavBarShownOnDisplay(supportsSysDecorDisplay.mId); in waitAndAssertNavBarStatesAreTheSame()
271 mAmWmState.computeState(true); in waitAndAssertNavBarStatesAreTheSame()
[all …]
DConfigChangeTests.java125 mAmWmState.computeState(activityName); in testRotation180WithCutout()
169 final int currentRotation = mAmWmState.getWmState().getRotation(); in getLifecycleCountsForRotation()
184 mAmWmState.waitFor("activity rotated with 90 degree delta", in getLifecycleCountsForRotation()
189 mAmWmState.computeState(activityName); in getLifecycleCountsForRotation()
209 mAmWmState.computeState(activityName); in testRotation()
214 mAmWmState.computeState(activityName); in testRotation()
216 mAmWmState.getAmState().getTaskByActivity(activityName).mStackId; in testRotation()
217 final int displayId = mAmWmState.getAmState().getStackById(actualStackId).mDisplayId; in testRotation()
231 mAmWmState.computeState(activityName); in testRotation()
252 mAmWmState.computeState(activityName); in testChangeFontScale()
[all …]
DRobustnessTests.java43 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()
DDisplayTests.java110 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()
172 mAmWmState.waitForHomeActivityVisible(); in testForceDisplayMetrics()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityStarterTests.java90 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/
DBackgroundActivityLaunchTest.java104 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_A_BACKGROUND_ACTIVITY)); in setUp()
105 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_A_FOREGROUND_ACTIVITY)); in setUp()
106 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_B_FOREGROUND_ACTIVITY)); in setUp()
120 mAmWmState.waitForHomeActivityVisible(); in tearDown()
219 mAmWmState.waitForHomeActivityVisible(); in testActivityNotBlockedwhenForegroundActivityLaunchInSameTask()
249 mAmWmState.waitForHomeActivityVisible(); in testActivityNotBlockedWhenForegroundActivityLaunchInDifferentTask()
275 mAmWmState.waitForHomeActivityVisible(); in testActivityBlockedWhenForegroundActivityRestartsItself()
314 mAmWmState.waitForHomeActivityVisible(); in testSecondActivityBlockedWhenBackgroundActivityLaunch()
440 assertNull(mAmWmState.getAmState().getTaskByActivity(sourceComponent)); in assertTaskStack()
443 List<ActivityManagerState.Activity> actual = mAmWmState.getAmState().getTaskByActivity( in assertTaskStack()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java289 protected ActivityAndWindowManagersState mAmWmState = new ActivityAndWindowManagersState(); field in ActivityManagerTestBase
292 return mAmWmState; in getAmWmState()
576 mAmWmState.waitForValidState(activityName); in launchActivity()
586 mAmWmState.waitForValidState(activityName); in launchActivityInNewTask()
595 mAmWmState.computeState(true); in getStackIds()
596 final List<ActivityManagerState.ActivityStack> stacks = mAmWmState.getAmState().getStacks(); in getStackIds()
606 mAmWmState.computeState(true); in getStackForTaskId()
607 final List<ActivityManagerState.ActivityStack> stacks = mAmWmState.getAmState().getStacks(); in getStackForTaskId()
620 mAmWmState.waitForHomeActivityVisible(); in launchHomeActivity()
627 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in launchActivity()
[all …]

12