/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayActivityLaunchTests.java | 110 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 …]
|
D | MultiDisplayPolicyTests.java | 90 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 …]
|
D | MultiDisplaySecurityTests.java | 102 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 …]
|
D | MultiDisplaySystemDecorationTests.java | 118 final ActivityDisplay newDisplay = virtualDisplaySession in testWallpaperGetDisplayContext() local 122 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext() 209 final ActivityDisplay newDisplay = externalDisplaySession in testNavBarShowingOnDisplayWithDecor() local 212 mAmWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor() 291 final ActivityDisplay newDisplay = externalDisplaySession.createVirtualDisplay(); in testLaunchHomeActivityOnSecondaryDisplayWithoutDecorations() local 296 newDisplay.mStacks.size()); in testLaunchHomeActivityOnSecondaryDisplayWithoutDecorations() 309 final ActivityDisplay newDisplay in testLaunchSingleHomeActivityOnDisplayWithDecorations() local 314 waitAndAssertTopResumedActivity(getDefaultSecondaryHomeComponent(), newDisplay.mId, in testLaunchSingleHomeActivityOnDisplayWithDecorations() 317 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleHomeActivityOnDisplayWithDecorations() 331 final ActivityDisplay newDisplay in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations() local [all …]
|
D | MultiDisplayLockedKeyguardTests.java | 66 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()
|
D | MultiDisplayClientTests.java | 100 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 …]
|
D | DisplayTests.java | 67 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testCreateVirtualDisplayWithCustomConfig() local 70 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()
|
D | MultiDisplayKeyguardTests.java | 61 final ActivityDisplay newDisplay = virtualDisplaySession.createDisplay(); in testDismissKeyguardActivity_secondaryDisplay() local 65 launchActivityOnDisplay(DISMISS_KEYGUARD_ACTIVITY, newDisplay.mId); in testDismissKeyguardActivity_secondaryDisplay()
|
D | MultiDisplayTestBase.java | 139 for (ActivityDisplay newDisplay : newDisplays) { in findNewDisplayStates() 140 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates() 141 result.add(newDisplay); in findNewDisplayStates() 692 final ActivityDisplay newDisplay = findNewDisplayStates(originalDS, ds).get(0); in createVirtualDisplay() local 693 mDisplayId = newDisplay.mId; in createVirtualDisplay() 694 return newDisplay; in createVirtualDisplay()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecycleTopResumedStateTests.java | 761 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 …]
|