Home
last modified time | relevance | path

Searched refs:DEFAULT_DISPLAY (Results 1 – 25 of 81) sorted by relevance

1234

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayPolicyTests.java41 import static android.view.Display.DEFAULT_DISPLAY;
137 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testActivityLaunchOnContentDestroyDisplayRemoved()
248 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY, in testExternalDisplayActivityTurnPrimaryOff()
260 RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY); in testExternalDisplayActivityTurnPrimaryOff()
364 assertBothDisplaysHaveResumedActivities(pair(DEFAULT_DISPLAY, RESIZEABLE_ACTIVITY), in testLaunchActivitiesAffectsVisibility()
382 DEFAULT_DISPLAY, frontStack.mDisplayId); in testMoveTaskBetweenDisplays()
389 assertBothDisplaysHaveResumedActivities(pair(DEFAULT_DISPLAY, VIRTUAL_DISPLAY_ACTIVITY), in testMoveTaskBetweenDisplays()
394 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testMoveTaskBetweenDisplays()
446 DEFAULT_DISPLAY); in testStackFocusSwitchOnDisplayRemoved3()
548 waitAndAssertTopResumedActivity(VIRTUAL_DISPLAY_ACTIVITY, DEFAULT_DISPLAY, in validateStackFocusSwitchOnStackEmptied()
[all …]
DDreamManagerServiceTests.java28 import static android.view.Display.DEFAULT_DISPLAY;
132 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in startFullscreenTestActivity()
143 waitAndAssertTopResumedActivity(mDreamActivityName, DEFAULT_DISPLAY, in testStartAndStopDream()
155 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testStartAndStopDream()
164 waitAndAssertTopResumedActivity(mDreamActivityName, DEFAULT_DISPLAY, in testDreamServiceStopsTimely()
184 waitAndAssertTopResumedActivity(mDreamActivityName, DEFAULT_DISPLAY, in testForceStopStubbornDream()
197 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testForceStopStubbornDream()
211 waitAndAssertTopResumedActivity(mDreamActivityName, DEFAULT_DISPLAY, in testDreamNotFinishAfterRotation()
231 DEFAULT_DISPLAY, "TurnScreenOnActivity should resume through dream"); in testStartTurnScreenOnActivityDoesWake()
242 DEFAULT_DISPLAY, "TurnScreenOnAttrActivity should resume through dream"); in testStartTurnScreenOnAttrActivityDoesWake()
[all …]
DAmStartOptionsTests.java27 import static android.view.Display.DEFAULT_DISPLAY;
87 + " --display " + DEFAULT_DISPLAY); in testDashW_FinishingTop()
88 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY, in testDashW_FinishingTop()
107 mWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in startActivityAndVerifyResult()
114 + DEFAULT_DISPLAY + (shouldStart ? " -d about:blank" : "")); in startActivityAndVerifyResult()
116 waitAndAssertTopResumedActivity(actualActivity, DEFAULT_DISPLAY, in startActivityAndVerifyResult()
DMultiDisplayActivityLaunchTests.java58 import static android.view.Display.DEFAULT_DISPLAY;
156 launchActivityOnDisplay(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY); in testLaunchActivityOnPrimaryDisplay()
158 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityOnPrimaryDisplay()
163 .setMultipleTask(true).setDisplayId(DEFAULT_DISPLAY).execute(); in testLaunchActivityOnPrimaryDisplay()
166 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityOnPrimaryDisplay()
179 .setDisplayId(DEFAULT_DISPLAY).execute(); in testLaunchActivityFromSecondaryDisplay()
198 .setDisplayId(DEFAULT_DISPLAY).execute(); in testLaunchActivityFromSecondaryDisplay()
199 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityFromSecondaryDisplay()
216 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY, in testLaunchExternalDisplayActivityWhilePrimaryOff()
239 RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY); in testLaunchExternalDisplayActivityWhilePrimaryOff()
[all …]
DActivityTransitionTests.java21 import static android.view.Display.DEFAULT_DISPLAY;
103 mWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testActivityTransitionDurationNoShortenAsExpected()
105 DEFAULT_DISPLAY, "Activity must be launched"); in testActivityTransitionDurationNoShortenAsExpected()
142 mWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testTaskTransitionDurationNoShortenAsExpected()
143 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testTaskTransitionDurationNoShortenAsExpected()
183 mWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testTaskTransitionOverrideDisabled()
184 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testTaskTransitionOverrideDisabled()
224 mWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testTaskTransitionOverride()
225 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testTaskTransitionOverride()
DWindowManagerTestBase.java21 import static android.view.Display.DEFAULT_DISPLAY;
42 return startActivity(cls, DEFAULT_DISPLAY); in startActivity()
56 return startActivity(cls, DEFAULT_DISPLAY, true /* hasFocus */, windowingMode); in startActivityInWindowingMode()
62 if (displayId == DEFAULT_DISPLAY && windowingMode == WINDOWING_MODE_UNDEFINED) { in startActivity()
66 if (displayId != DEFAULT_DISPLAY) ap.setLaunchDisplayId(displayId); in startActivity()
DActivityVisibilityTests.java55 import static android.view.Display.DEFAULT_DISPLAY;
252 isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnActivity()
288 assertTrue("Display should be turned on by flags.", isDisplayOn(DEFAULT_DISPLAY)); in testFreeformWindowTurnScreenOnActivity()
558 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrNoLockScreen()
575 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrNoLockScreen_SplitScreen()
588 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnWithAttr_Freeform()
601 assertFalse("Display keeps off", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrWithLockScreen()
615 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnShowOnLockAttr()
636 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testChangeToFullscreenWhenLockWithAttrInFreeform()
648 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrRemove()
[all …]
DWindowFocusTests.java21 import static android.view.Display.DEFAULT_DISPLAY;
138 DEFAULT_DISPLAY); in testKeyReceiving()
140 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_1, DEFAULT_DISPLAY); in testKeyReceiving()
155 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_4, DEFAULT_DISPLAY); in testKeyReceiving()
194 DEFAULT_DISPLAY); in testMovingDisplayToTopByKeyEvent()
199 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_0, DEFAULT_DISPLAY); in testMovingDisplayToTopByKeyEvent()
212 DEFAULT_DISPLAY); in testDelayLosingFocus()
229 DEFAULT_DISPLAY); in testPointerCapture()
259 startActivity(AutoEngagePointerCaptureActivity.class, DEFAULT_DISPLAY); in testPointerCaptureWhenFocus()
290 DEFAULT_DISPLAY); in testDisplayChanged()
[all …]
DActivityTaskAffinityTests.java23 import static android.view.Display.DEFAULT_DISPLAY;
73 waitAndAssertTopResumedActivity(activityA, DEFAULT_DISPLAY, in testActivitiesShouldBeInTheSameTask()
78 waitAndAssertTopResumedActivity(activityB, DEFAULT_DISPLAY, in testActivitiesShouldBeInTheSameTask()
DDisplayTests.java21 import static android.view.Display.DEFAULT_DISPLAY;
56 final DisplayContent primaryDisplay = getDisplayState(reportedDisplays, DEFAULT_DISPLAY); in testDefaultDisplayOverrideConfiguration()
126 final int frontStackId = mWmState.getFrontRootTaskId(DEFAULT_DISPLAY); in testMultiDisplayDisabled()
132 DEFAULT_DISPLAY, frontStack.mDisplayId); in testMultiDisplayDisabled()
159 createManagedDisplayMetricsSession(DEFAULT_DISPLAY); in testForceDisplayMetrics()
DMultiDisplaySystemDecorationTests.java33 import static android.view.Display.DEFAULT_DISPLAY;
417 ImeTestActivity2.class, DEFAULT_DISPLAY); in testImeWindowCanSwitchToDifferentDisplays()
422 waitOrderedImeEventsThenAssertImeShown(stream, DEFAULT_DISPLAY, in testImeWindowCanSwitchToDifferentDisplays()
430 mWmState.getDisplay(DEFAULT_DISPLAY)); in testImeWindowCanSwitchToDifferentDisplays()
490 DEFAULT_DISPLAY); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
494 final DisplayContent defDisplay = mWmState.getDisplay(DEFAULT_DISPLAY); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
567 waitOrderedImeEventsThenAssertImeShown(stream, DEFAULT_DISPLAY, in testCrossDisplayBasicImeOperations()
643 DEFAULT_DISPLAY); in testDisplayPolicyImeHideImeNoSystemDecorations()
648 tapOnDisplayCenter(DEFAULT_DISPLAY); in testDisplayPolicyImeHideImeNoSystemDecorations()
650 tapOnDisplaySync(location[0], location[1], DEFAULT_DISPLAY); in testDisplayPolicyImeHideImeNoSystemDecorations()
[all …]
DAnrTests.java26 import static android.view.Display.DEFAULT_DISPLAY;
128 tapOnDisplayCenterAsync(DEFAULT_DISPLAY); in slowOnTouchEventHandleTriggersAnr()
130 tapOnDisplayCenterAsync(DEFAULT_DISPLAY); in slowOnTouchEventHandleTriggersAnr()
146 tapOnDisplayCenterAsync(DEFAULT_DISPLAY); in embeddedWindowTriggersAnr()
148 tapOnDisplayCenterAsync(DEFAULT_DISPLAY); in embeddedWindowTriggersAnr()
DAspectRatioTests.java153 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMaxAspectRatioResizeableActivity()
166 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMaxAspectRatioUnsetActivity()
185 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMinAspectRatioResizeableActivity()
197 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMinAspectRatioUnsetActivity()
DVirtualDisplayHelper.java25 import static android.view.Display.DEFAULT_DISPLAY;
130 waitForDisplayState(DEFAULT_DISPLAY, wantOn); in waitForDefaultDisplayState()
134 final String message = (displayId == DEFAULT_DISPLAY ? "default" : "virtual") in waitForDisplayState()
DKeyguardLockedTests.java35 import static android.view.Display.DEFAULT_DISPLAY;
248 assertFalse(isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnActivity_withSecureKeyguard()
263 assertTrue(isDisplayOn(DEFAULT_DISPLAY)); in testDismissKeyguardAttrActivity_method_turnScreenOn_withSecureKeyguard()
384 mWmState.waitAndAssertImeWindowShownOnDisplay(DEFAULT_DISPLAY); in testShowWhenLockedAttrImeActivityAndShowSoftInput()
399 DEFAULT_DISPLAY); in testShowWhenLockedImeActivityAndShowSoftInput()
406 mWmState.waitAndAssertImeWindowShownOnDisplay(DEFAULT_DISPLAY); in testShowWhenLockedImeActivityAndShowSoftInput()
419 DEFAULT_DISPLAY); in testImeShowsAfterLockScreenOnEditorTap()
442 mWmState.waitAndAssertImeWindowShownOnDisplay(DEFAULT_DISPLAY); in testImeShowsAfterLockScreenOnEditorTap()
DStartActivityTests.java38 import static android.view.Display.DEFAULT_DISPLAY;
213 DEFAULT_DISPLAY); in testStartActivityByNavigateUpToFromDiffUid()
217 DEFAULT_DISPLAY); in testStartActivityByNavigateUpToFromDiffUid()
234 waitAndAssertTopResumedActivity(intent1.getComponent(), DEFAULT_DISPLAY, in testStartActivityByNavigateUpToFromDiffUid() local
337 DEFAULT_DISPLAY); in testStartActivitiesTaskOverlayStayOnTop()
DWindowUntrustedTouchTest.java187 mWmState.waitForAppTransitionIdleOnDisplay(Display.DEFAULT_DISPLAY); in tearDown()
644 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testLongEnterAnimations_areLimited()
647 assertTrue(mWmState.waitForAppTransitionIdleOnDisplay(Display.DEFAULT_DISPLAY)); in testLongEnterAnimations_areLimited()
660 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testLongExitAnimations_areLimited()
663 assertTrue(mWmState.waitForAppTransitionIdleOnDisplay(Display.DEFAULT_DISPLAY)); in testLongExitAnimations_areLimited()
671 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testWhenEnterAnimationAboveThresholdAndNewActivityNotTouchable_blocksTouch()
682 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testWhenEnterAnimationBelowThresholdAndNewActivityNotTouchable_allowsTouch()
693 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testWhenEnterAnimationBelowThresholdAndNewActivityTouchable_blocksTouch()
706 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testWhenExitAnimationBelowThreshold_allowsTouch()
719 assertTrue(mWmState.waitForAppTransitionRunningOnDisplay(Display.DEFAULT_DISPLAY)); in testWhenExitAnimationAboveThreshold_blocksTouch()
[all …]
DMultiDisplaySecurityTests.java42 import static android.view.Display.DEFAULT_DISPLAY;
478 DEFAULT_DISPLAY, frontStack.mDisplayId); in testPermissionLaunchFromShell()
485 assertBothDisplaysHaveResumedActivities(pair(DEFAULT_DISPLAY, VIRTUAL_DISPLAY_ACTIVITY), in testPermissionLaunchFromShell()
496 assertBothDisplaysHaveResumedActivities(pair(DEFAULT_DISPLAY, VIRTUAL_DISPLAY_ACTIVITY), in testPermissionLaunchFromShell()
571 DEFAULT_DISPLAY, frontStack.mDisplayId); in testPermissionLaunchFromDifferentApp()
845 waitOrderedImeEventsThenAssertImeShown(stream, DEFAULT_DISPLAY, in testNoInputConnectionForUntrustedVirtualDisplay()
851 tapOnDisplayCenter(DEFAULT_DISPLAY); in testNoInputConnectionForUntrustedVirtualDisplay()
853 assertEquals(DEFAULT_DISPLAY, mWmState.getFocusedDisplayId()); in testNoInputConnectionForUntrustedVirtualDisplay()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLiveWallpaper.java21 import static android.view.Display.DEFAULT_DISPLAY;
41 if (displayId != DEFAULT_DISPLAY) { in onCreateEngine()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTakeScreenshotTest.java132 takeScreenshot(Display.DEFAULT_DISPLAY); in testTakeScreenshot_GetScreenshotResult()
141 takeScreenshot(Display.DEFAULT_DISPLAY); in testTakeScreenshot_RequestIntervalTime()
148 takeScreenshot(Display.DEFAULT_DISPLAY); in testTakeScreenshot_RequestIntervalTime()
156 takeScreenshot(Display.DEFAULT_DISPLAY); in testTakeScreenshot_RequestIntervalTime()
202 Display.DEFAULT_DISPLAY); in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
225 takeScreenshot(Display.DEFAULT_DISPLAY); in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java26 import static android.view.Display.DEFAULT_DISPLAY;
163 && !state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY); in isKeyguardShowingAndNotOccluded()
173 && state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY), in waitForKeyguardShowingAndOccluded()
533 assertFrontStackOnDisplay(msg, windowingMode, activityType, DEFAULT_DISPLAY);
548 assertEquals(msg, activityType, getFrontStackActivityType(DEFAULT_DISPLAY));
653 final int minTaskSizePx = defaultMinimalTaskSize(DEFAULT_DISPLAY);
654 final WindowManagerState.DisplayContent display = getDisplay(DEFAULT_DISPLAY);
667 final int minDisplaySizePx = defaultMinimalDisplaySizeForSplitScreen(DEFAULT_DISPLAY);
668 final WindowManagerState.DisplayContent display = getDisplay(DEFAULT_DISPLAY);
679 getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY));
[all …]
DTestTaskOrganizer.java26 import static android.view.Display.DEFAULT_DISPLAY;
94 .getDisplay(DEFAULT_DISPLAY)).getSystemService(WindowManager.class) in registerOrganizer()
123 createRootTask(DEFAULT_DISPLAY, WINDOWING_MODE_MULTI_WINDOW, mPrimaryCookie); in createRootTasksIfNeeded()
124 createRootTask(DEFAULT_DISPLAY, WINDOWING_MODE_MULTI_WINDOW, mSecondaryCookie); in createRootTasksIfNeeded()
326 final List<ActivityManager.RunningTaskInfo> rootTasks = getRootTasks(DEFAULT_DISPLAY, in getTaskInfo()
/cts/tests/tests/car/src/android/car/cts/
DCarOccupantZoneManagerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
78 Display defaultDisplay = displayManager.getDisplay(DEFAULT_DISPLAY); in testGetDisplayType_mainDisplay()
111 assertThat(getDriverDisplay().getDisplayId()).isEqualTo(DEFAULT_DISPLAY); in testDriverDisplayIdIsDefaultDisplay()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DHotplugTestActivity.java167 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTestAsync()
184 getAsserter().that(displayId).isEqualTo(Display.DEFAULT_DISPLAY); in onDisplayChanged()
188 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onDisplayChanged()
/cts/tests/tests/content/src/android/content/cts/
DContextTestBase.java21 import static android.view.Display.DEFAULT_DISPLAY;
60 mDefaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in setUp()

1234