Home
last modified time | relevance | path

Searched refs:newDisplay (Results 1 – 10 of 10) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayActivityLaunchTests.java110 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in validateActivityLaunchOnNewDisplay() local
117 .setDisplayId(newDisplay.mId).execute(); in validateActivityLaunchOnNewDisplay()
118 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay()
127 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay()
161 final ActivityDisplay newDisplay = in testLaunchActivityFromSecondaryDisplay() local
163 final int newDisplayId = newDisplay.mId; in testLaunchActivityFromSecondaryDisplay()
168 waitAndAssertTopResumedActivity(BROADCAST_RECEIVER_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay()
178 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay()
205 final ActivityDisplay newDisplay = externalDisplaySession in testLaunchExternalDisplayActivityWhilePrimaryOff() local
208 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testLaunchExternalDisplayActivityWhilePrimaryOff()
[all …]
DMultiDisplayPolicyTests.java90 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testContentDestroyOnDisplayRemoved() local
94 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved()
95 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testContentDestroyOnDisplayRemoved()
98 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved()
99 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, newDisplay.mId, in testContentDestroyOnDisplayRemoved()
131 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testActivityLaunchOnContentDestroyDisplayRemoved() local
135 launchActivityOnDisplay(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId); in testActivityLaunchOnContentDestroyDisplayRemoved()
137 waitAndAssertTopResumedActivity(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId, in testActivityLaunchOnContentDestroyDisplayRemoved()
154 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testDisplayResize() local
159 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testDisplayResize()
[all …]
DMultiDisplaySecurityTests.java102 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() local
107 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
116 assertEquals("Focused stack must be on secondary display", newDisplay.mId, in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
134 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testLaunchWithoutPermissionOnVirtualDisplay() local
142 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplay()
162 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() local
165 launchActivityOnDisplay(LAUNCHING_ACTIVITY, newDisplay.mId); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding()
167 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, newDisplay.mId, in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding()
175 .setDisplayId(newDisplay.mId) in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding()
190 final ActivityDisplay newDisplay = virtualDisplaySession.setSimulateDisplay(true) in testCanAccessSystemOwnedDisplay() local
[all …]
DMultiDisplaySystemDecorationTests.java120 final ActivityDisplay newDisplay = virtualDisplaySession in testWallpaperGetDisplayContext() local
124 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext()
211 final ActivityDisplay newDisplay = externalDisplaySession in testNavBarShowingOnDisplayWithDecor() local
214 mAmWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor()
293 final ActivityDisplay newDisplay = externalDisplaySession.createVirtualDisplay(); in testLaunchHomeActivityOnSecondaryDisplayWithoutDecorations() local
298 newDisplay.mStacks.size()); in testLaunchHomeActivityOnSecondaryDisplayWithoutDecorations()
311 final ActivityDisplay newDisplay in testLaunchSingleHomeActivityOnDisplayWithDecorations() local
316 waitAndAssertTopResumedActivity(getDefaultSecondaryHomeComponent(), newDisplay.mId, in testLaunchSingleHomeActivityOnDisplayWithDecorations()
319 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleHomeActivityOnDisplayWithDecorations()
333 final ActivityDisplay newDisplay in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations() local
[all …]
DMultiDisplayLockedKeyguardTests.java66 final ActivityDisplay newDisplay = virtualDisplaySession.setPublicDisplay(true) in testVirtualDisplayHidesContentWhenLocked() local
71 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked()
101 final ActivityDisplay newDisplay = in testPrivateDisplayHideContentWhenLocked() local
103 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPrivateDisplayHideContentWhenLocked()
122 final ActivityDisplay newDisplay = virtualDisplaySession.setPublicDisplay(true). in testDismissKeyguard_secondaryDisplay() local
129 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_secondaryDisplay()
146 final ActivityDisplay newDisplay = virtualDisplaySession.setPublicDisplay(true). in testDismissKeyguard_whileOccluded_secondaryDisplay() local
156 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_whileOccluded_secondaryDisplay()
DMultiDisplayClientTests.java100 final ActivityManagerState.ActivityDisplay newDisplay = in testDisplayIdUpdateOnMove() local
106 launchOptions.setLaunchDisplayId(newDisplay.mId); in testDisplayIdUpdateOnMove()
111 waitAndAssertTopResumedActivity(activityName, newDisplay.mId, in testDisplayIdUpdateOnMove()
123 assertEquals(message, newDisplay.mId, activity.getDisplayId()); in testDisplayIdUpdateOnMove()
124 assertEquals(message, newDisplay.mId, activity.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
126 assertEquals(message, newDisplay.mId, wm.getDefaultDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
174 final ActivityManagerState.ActivityDisplay newDisplay = virtualDisplaySession in testDisplayIdUpdateWhenImeMove() local
179 activityClass, mockImeSession, newDisplay.mId); in testDisplayIdUpdateWhenImeMove()
209 final ActivityManagerState.ActivityDisplay newDisplay = virtualDisplaySession in testInputMethodManagerDisplayId() local
213 .getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId()
[all …]
DDisplayTests.java68 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testCreateVirtualDisplayWithCustomConfig() local
71 final int newDensityDpi = newDisplay.mFullConfiguration.densityDpi; in testCreateVirtualDisplayWithCustomConfig()
106 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testMultiDisplayDisabled() local
109 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testMultiDisplayDisabled()
DMultiDisplayKeyguardTests.java61 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testDismissKeyguardActivity_secondaryDisplay() local
65 launchActivityOnDisplay(DISMISS_KEYGUARD_ACTIVITY, newDisplay.mId); in testDismissKeyguardActivity_secondaryDisplay()
DMultiDisplayTestBase.java140 for (ActivityDisplay newDisplay : newDisplays) { in findNewDisplayStates()
141 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates()
142 result.add(newDisplay); in findNewDisplayStates()
703 final ActivityDisplay newDisplay = findNewDisplayStates(originalDS, ds).get(0); in createVirtualDisplay() local
704 mDisplayId = newDisplay.mId; in createVirtualDisplay()
705 return newDisplay; in createVirtualDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleTopResumedStateTests.java761 final ActivityManagerState.ActivityDisplay newDisplay in testTopPositionSwitchAcrossDisplays() local
766 launchOptions.setLaunchDisplayId(newDisplay.mId); in testTopPositionSwitchAcrossDisplays()
771 newDisplay.mId, "Activity launched on secondary display must be focused"); in testTopPositionSwitchAcrossDisplays()
809 final ActivityManagerState.ActivityDisplay newDisplay in testTopPositionSwitchAcrossDisplaysOnTap() local
814 launchOptions.setLaunchDisplayId(newDisplay.mId); in testTopPositionSwitchAcrossDisplaysOnTap()
819 newDisplay.mId, "Activity launched on secondary display must be focused"); in testTopPositionSwitchAcrossDisplaysOnTap()
839 tapOnDisplayCenter(newDisplay.mId); in testTopPositionSwitchAcrossDisplaysOnTap()
859 final ActivityManagerState.ActivityDisplay newDisplay in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess() local
871 .setDisplayId(newDisplay.mId) in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
899 tapOnDisplayCenter(newDisplay.mId); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
[all …]