/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/ |
D | MultiDisplayActivityLaunchTests.java | 132 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in validateActivityLaunchOnNewDisplay() local 140 .setDisplayId(newDisplay.mId).execute(); in validateActivityLaunchOnNewDisplay() 141 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay() 150 mWmState.getFrontRootTaskActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay() 184 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testLaunchActivityFromSecondaryDisplay() local 187 final int newDisplayId = newDisplay.mId; in testLaunchActivityFromSecondaryDisplay() 192 waitAndAssertTopResumedActivity(BROADCAST_RECEIVER_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay() 234 final DisplayContent newDisplay = externalDisplaySession in testLaunchExternalDisplayActivityWhilePrimaryOff() local 237 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testLaunchExternalDisplayActivityWhilePrimaryOff() 240 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testLaunchExternalDisplayActivityWhilePrimaryOff() [all …]
|
D | MultiDisplayPolicyTests.java | 91 final DisplayContent newDisplay = virtualDisplaySession.createDisplay(); in testContentDestroyOnDisplayRemoved() local 95 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 96 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 99 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 100 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 132 final DisplayContent newDisplay = virtualDisplaySession.createDisplay(); in testActivityLaunchOnContentDestroyDisplayRemoved() local 136 launchActivityOnDisplay(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId); in testActivityLaunchOnContentDestroyDisplayRemoved() 139 newDisplay.mId,"Launched activity must be resumed on secondary display"); in testActivityLaunchOnContentDestroyDisplayRemoved() 155 final DisplayContent newDisplay = virtualDisplaySession.createDisplay(); in testDisplayResize() local 160 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, WINDOWING_MODE_FULLSCREEN, newDisplay.mId); in testDisplayResize() [all …]
|
D | MultiDisplaySecurityTests.java | 104 final DisplayContent newDisplay = createManagedVirtualDisplaySession().createDisplay(); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() local 111 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 127 final DisplayContent newDisplay = createManagedVirtualDisplaySession().createDisplay(); in testLaunchWithoutPermissionOnVirtualDisplay() local 135 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplay() 151 final DisplayContent newDisplay = createManagedVirtualDisplaySession().createDisplay(); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() local 154 launchActivityOnDisplay(LAUNCHING_ACTIVITY, newDisplay.mId); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 156 waitAndAssertActivityStateOnDisplay(LAUNCHING_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 164 .setDisplayId(newDisplay.mId) in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 183 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testCanAccessSystemOwnedDisplay() local 187 assertTrue(isActivityStartAllowedOnDisplay(newDisplay.mId, TEST_ACTIVITY)); in testCanAccessSystemOwnedDisplay() [all …]
|
D | MultiDisplayLockedKeyguardTests.java | 64 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testVirtualDisplayHidesContentWhenLocked() local 70 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked() 97 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testPrivateDisplayHideContentWhenLocked() local 100 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPrivateDisplayHideContentWhenLocked() 118 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testDismissKeyguard_secondaryDisplay() local 126 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_secondaryDisplay() 141 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testDismissKeyguard_whileOccluded_secondaryDisplay() local 152 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_whileOccluded_secondaryDisplay()
|
D | MultiDisplaySystemDecorationTests.java | 93 final DisplayContent newDisplay = virtualDisplaySession in testWallpaperGetDisplayContext() local 97 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext() 143 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testNavBarShowingOnDisplayWithDecor() local 146 mWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor() 221 final DisplayContent newDisplay = createManagedExternalDisplaySession() in testLaunchHomeActivityOnSecondaryDisplayWithoutDecorations() local 227 "No stacks on newly launched virtual display", 0, newDisplay.getRootTasks().size()); in testLaunchHomeActivityOnSecondaryDisplayWithoutDecorations() 236 final DisplayContent newDisplay = createManagedExternalDisplaySession() in testLaunchHomeActivityOnUntrustedVirtualSecondaryDisplay() local 240 assertEquals("No stacks on untrusted virtual display", 0, newDisplay.getRootTasks().size()); in testLaunchHomeActivityOnUntrustedVirtualSecondaryDisplay() 370 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in assertSecondaryHomeResumedOnNewDisplay() local 375 assertSecondaryHomeResumedOnDisplay(homeComponentName, newDisplay.mId); in assertSecondaryHomeResumedOnNewDisplay()
|
D | MultiDisplayClientTests.java | 106 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testDisplayIdUpdateOnMove() local 113 final int displayId = newDisplay.mId; in testDisplayIdUpdateOnMove() 165 final DisplayContent newDisplay = virtualDisplaySession in testDisplayIdUpdateWhenImeMove() local 173 activityClass, mockImeSession, newDisplay.mId); in testDisplayIdUpdateWhenImeMove() 201 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testInputMethodManagerDisplayId() local 205 final Display display = mDm.getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId() 209 assertEquals("IMM#getDisplayId() must match.", newDisplay.mId, imm.getDisplayId()); in testInputMethodManagerDisplayId() 225 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testViewGetDisplay() local 228 final int displayId = isPrimary ? DEFAULT_DISPLAY : newDisplay.mId; in testViewGetDisplay()
|
D | MultiDisplayKeyguardTests.java | 61 final DisplayContent newDisplay = createManagedVirtualDisplaySession().createDisplay(); in testDismissKeyguardActivity_secondaryDisplay() local 65 launchActivityOnDisplay(DISMISS_KEYGUARD_ACTIVITY, newDisplay.mId); in testDismissKeyguardActivity_secondaryDisplay()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/ |
D | ActivityCaptureCallbackTests.java | 79 final WindowManagerState.DisplayContent newDisplay = in testScreencaptureInvokeCallbackOnAllVisibleActivities() local 82 startActivity(SecondaryActivity.class, newDisplay.mId, /* hasFocus */ false); in testScreencaptureInvokeCallbackOnAllVisibleActivities() 87 mWm.notifyScreenshotListeners(newDisplay.mId); in testScreencaptureInvokeCallbackOnAllVisibleActivities() 97 final WindowManagerState.DisplayContent newDisplay = in testScreencaptureInvokeCallbackOnOneDisplay() local 100 startActivity(SecondaryActivity.class, newDisplay.mId, /* hasFocus */ false); in testScreencaptureInvokeCallbackOnOneDisplay() 114 final WindowManagerState.DisplayContent newDisplay = in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities() local 117 startActivity(SecondaryActivity.class, newDisplay.mId, /* hasFocus */ false); in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities() 122 mWm.notifyScreenshotListeners(newDisplay.mId); in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/ |
D | MultiDisplayImeTests.java | 119 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testImeWindowCanSwitchToDifferentDisplays() local 127 newDisplay.mId); in testImeWindowCanSwitchToDifferentDisplays() 133 showSoftInputAndAssertImeShownOnDisplay(newDisplay.mId, imeTestActivitySession, stream); in testImeWindowCanSwitchToDifferentDisplays() 137 assertImeWindowAndDisplayConfiguration(mWmState.getImeWindowState(), newDisplay); in testImeWindowCanSwitchToDifferentDisplays() local 165 final var newDisplay = displaySession.setSimulateDisplay(true).createDisplay(); in testFallbackImmMaintainsParameters() local 168 ImeTestActivity.class, newDisplay.mId); in testFallbackImmMaintainsParameters() 193 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testImeApiForBug118341760() local 197 ImeTestActivityWithBrokenContextWrapper.class, newDisplay.mId); in testImeApiForBug118341760() 232 final DisplayContent newDisplay = createManagedVirtualDisplaySession() in testImeWindowCanSwitchWhenTopFocusedDisplayChange() local 239 newDisplay.mId); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() [all …]
|
D | MultiDisplaySecurityImeTests.java | 65 final WindowManagerState.DisplayContent newDisplay = createManagedVirtualDisplaySession() in testNoInputConnectionForUntrustedVirtualDisplay() local 70 newDisplay.mId); in testNoInputConnectionForUntrustedVirtualDisplay() 88 tapOnDisplaySync(location[0], location[1], newDisplay.mId); in testNoInputConnectionForUntrustedVirtualDisplay()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | KeepScreenOnTests.java | 115 final WindowManagerState.DisplayContent newDisplay = createManagedVirtualDisplaySession() in testKeepScreenOn_activityOnVirtualDisplay_screenStaysOn() local 117 launchActivityOnDisplay(TURN_SCREEN_ON_ACTIVITY, newDisplay.mId); in testKeepScreenOn_activityOnVirtualDisplay_screenStaysOn() 133 final WindowManagerState.DisplayContent newDisplay = createManagedVirtualDisplaySession() in testKeepScreenOn_activityOnVirtualDisplayNotForeground_screenTurnsOff() local 135 launchActivityOnDisplay(TURN_SCREEN_ON_ACTIVITY, WINDOWING_MODE_FULLSCREEN, newDisplay.mId); in testKeepScreenOn_activityOnVirtualDisplayNotForeground_screenTurnsOff() 139 launchActivityOnDisplay(TEST_ACTIVITY, WINDOWING_MODE_FULLSCREEN, newDisplay.mId); in testKeepScreenOn_activityOnVirtualDisplayNotForeground_screenTurnsOff()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/ |
D | DisplayTests.java | 84 final DisplayContent newDisplay = createManagedVirtualDisplaySession().createDisplay(); in testCreateVirtualDisplayWithCustomConfig() local 87 final int newDensityDpi = newDisplay.getFullConfiguration().densityDpi; in testCreateVirtualDisplayWithCustomConfig() 120 final DisplayContent newDisplay = createManagedVirtualDisplaySession().createDisplay(); in testMultiDisplayDisabled() local 123 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testMultiDisplayDisabled()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/ |
D | ActivityLifecycleTopResumedStateTests.java | 805 final WindowManagerState.DisplayContent newDisplay in testTopPositionSwitchAcrossDisplays() local 810 launchOptions.setLaunchDisplayId(newDisplay.mId); in testTopPositionSwitchAcrossDisplays() 816 newDisplay.mId, "Activity launched on secondary display must be focused"); in testTopPositionSwitchAcrossDisplays() 853 final WindowManagerState.DisplayContent newDisplay = createManagedVirtualDisplaySession() in testTopPositionSwitchAcrossDisplaysOnTap() local 859 launchOptions.setLaunchDisplayId(newDisplay.mId); in testTopPositionSwitchAcrossDisplaysOnTap() 865 newDisplay.mId, "Activity launched on secondary display must be focused"); in testTopPositionSwitchAcrossDisplaysOnTap() 908 final WindowManagerState.DisplayContent newDisplay = createManagedVirtualDisplaySession() in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess() local 921 .setDisplayId(newDisplay.mId) in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess() 981 final WindowManagerState.DisplayContent newDisplay = createManagedVirtualDisplaySession() in testTopPositionSwitchAcrossDisplaysOnTapTimeoutDifferentProcess() local 994 .setDisplayId(newDisplay.mId) in testTopPositionSwitchAcrossDisplaysOnTapTimeoutDifferentProcess() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | MultiDisplayTestBase.java | 152 for (DisplayContent newDisplay : newDisplays) { in findNewDisplayStates() 153 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates() 154 result.add(newDisplay); in findNewDisplayStates() 767 final DisplayContent newDisplay = findNewDisplayStates(originalDS, ds).get(0); in createVirtualDisplay() local 768 mDisplayId = newDisplay.mId; in createVirtualDisplay() 769 return newDisplay; in createVirtualDisplay()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityOverlayTest.java | 464 final Display newDisplay = in addOverlayToVirtualDisplayAndCheck() local 467 final int displayId = newDisplay.getDisplayId(); in addOverlayToVirtualDisplayAndCheck() 481 () -> addOverlayWindow(createContext.apply(newDisplay), overlayTitle)); in addOverlayToVirtualDisplayAndCheck() 489 createContext.apply(newDisplay), in addOverlayToVirtualDisplayAndCheck()
|