Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayPolicyTests.java41 import static android.view.Display.DEFAULT_DISPLAY;
143 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testActivityLaunchOnContentDestroyDisplayRemoved()
263 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY, in testExternalDisplayActivityTurnPrimaryOff()
278 RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY); in testExternalDisplayActivityTurnPrimaryOff()
395 put(DEFAULT_DISPLAY, RESIZEABLE_ACTIVITY); in testLaunchActivitiesAffectsVisibility()
417 DEFAULT_DISPLAY, frontStack.mDisplayId); in testMoveTaskBetweenDisplays()
426 put(DEFAULT_DISPLAY, VIRTUAL_DISPLAY_ACTIVITY); in testMoveTaskBetweenDisplays()
433 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testMoveTaskBetweenDisplays()
486 DEFAULT_DISPLAY); in testStackFocusSwitchOnDisplayRemoved3()
572 final int focusedStackId = mAmWmState.getAmState().getFrontStackId(DEFAULT_DISPLAY); in validateStackFocusSwitchOnStackEmptied()
[all …]
DMultiDisplayActivityLaunchTests.java43 import static android.view.Display.DEFAULT_DISPLAY;
137 launchActivityOnDisplay(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY); in testLaunchActivityOnPrimaryDisplay()
139 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityOnPrimaryDisplay()
144 .setMultipleTask(true).setDisplayId(DEFAULT_DISPLAY).execute(); in testLaunchActivityOnPrimaryDisplay()
147 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityOnPrimaryDisplay()
158 .setDisplayId(DEFAULT_DISPLAY).execute(); in testLaunchActivityFromSecondaryDisplay()
172 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityFromSecondaryDisplay()
191 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY, in testLaunchExternalDisplayActivityWhilePrimaryOff()
214 RESIZEABLE_ACTIVITY, DEFAULT_DISPLAY); in testLaunchExternalDisplayActivityWhilePrimaryOff()
359 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY, in testConsequentLaunchActivity()
[all …]
DAmStartOptionsTests.java28 import static android.view.Display.DEFAULT_DISPLAY;
91 + " --display " + DEFAULT_DISPLAY); in testDashW_FinishingTop()
92 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY, in testDashW_FinishingTop()
111 mAmWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in startActivityAndVerifyResult()
118 + DEFAULT_DISPLAY + (shouldStart ? " -d about:blank" : "")); in startActivityAndVerifyResult()
120 waitAndAssertTopResumedActivity(actualActivity, DEFAULT_DISPLAY, in startActivityAndVerifyResult()
DWindowFocusTests.java22 import static android.view.Display.DEFAULT_DISPLAY;
146 DEFAULT_DISPLAY); in testKeyReceiving()
148 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_1, DEFAULT_DISPLAY); in testKeyReceiving()
171 tapOnCenterOfDisplay(DEFAULT_DISPLAY); in testKeyReceiving()
197 DEFAULT_DISPLAY); in testMovingDisplayToTopByKeyEvent()
205 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_0, DEFAULT_DISPLAY); in testMovingDisplayToTopByKeyEvent()
219 DEFAULT_DISPLAY); in testDelayLosingFocus()
237 DEFAULT_DISPLAY); in testPointerCapture()
258 tapOnCenterOfDisplay(DEFAULT_DISPLAY); in testPointerCapture()
273 DEFAULT_DISPLAY); in testDisplayChanged()
[all …]
DActivityVisibilityTests.java54 import static android.view.Display.DEFAULT_DISPLAY;
189 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnActivity()
400 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrNoLockScreen()
416 assertFalse("Display keeps off", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrWithLockScreen()
431 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnShowOnLockAttr()
446 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrRemove()
457 assertFalse("Display keeps off", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnAttrRemove()
471 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnSingleTask()
485 assertTrue("Display turns on", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnSingleTask()
502 assertFalse("Display keeps off", isDisplayOn(DEFAULT_DISPLAY)); in testTurnScreenOnActivity_withRelayout()
[all …]
DAnimationBackgroundTests.java23 import static android.view.Display.DEFAULT_DISPLAY;
44 launchActivityOnDisplay(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY); in testAnimationBackground_duringAnimation()
67 launchActivityOnDisplay(LAUNCHING_ACTIVITY, DEFAULT_DISPLAY); in testAnimationBackground_gone()
70 mAmWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testAnimationBackground_gone()
DMultiDisplaySystemDecorationTests.java27 import static android.view.Display.DEFAULT_DISPLAY;
226 mAmWmState.waitAndAssertNavBarShownOnDisplay(DEFAULT_DISPLAY); in testNavBarNotShowingOnDisplayWithoutDecor()
245 mAmWmState.waitAndAssertNavBarShownOnDisplay(DEFAULT_DISPLAY); in testNavBarNotShowingOnPrivateDisplay()
423 ImeTestActivity2.class, DEFAULT_DISPLAY); in testImeWindowCanSwitchToDifferentDisplays()
428 waitOrderedImeEventsThenAssertImeShown(stream, DEFAULT_DISPLAY, in testImeWindowCanSwitchToDifferentDisplays()
436 mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY)); in testImeWindowCanSwitchToDifferentDisplays()
500 DEFAULT_DISPLAY); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
504 final Display defDisplay = mAmWmState.getWmState().getDisplay(DEFAULT_DISPLAY); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
571 waitOrderedImeEventsThenAssertImeShown(stream, DEFAULT_DISPLAY, in testCrossDisplayBasicImeOperations()
606 DEFAULT_DISPLAY); in testImeWindowCanShownWhenActivityMovedToDisplay()
[all …]
DDisplayTests.java21 import static android.view.Display.DEFAULT_DISPLAY;
55 final ActivityDisplay primaryDisplay = getDisplayState(reportedDisplays, DEFAULT_DISPLAY); in testDefaultDisplayOverrideConfiguration()
116 final int frontStackId = mAmWmState.getAmState().getFrontStackId(DEFAULT_DISPLAY); in testMultiDisplayDisabled()
122 DEFAULT_DISPLAY, frontStack.mDisplayId); in testMultiDisplayDisabled()
149 new DisplayMetricsSession(DEFAULT_DISPLAY); in testForceDisplayMetrics()
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()
DWindowManagerTestBase.java23 import static android.view.Display.DEFAULT_DISPLAY;
49 return startActivity(cls, DEFAULT_DISPLAY); in startActivity()
54 final Bundle options = (displayId == DEFAULT_DISPLAY in startActivity()
DVirtualDisplayHelper.java24 import static android.view.Display.DEFAULT_DISPLAY;
145 waitForDisplayState(DEFAULT_DISPLAY /* default */, wantOn); in waitForDefaultDisplayState()
150 "Waiting for " + ((displayId == DEFAULT_DISPLAY) ? "default" : "virtual") in waitForDisplayState()
DKeyguardLockedTests.java32 import static android.view.Display.DEFAULT_DISPLAY;
204 assertTrue(isDisplayOn(DEFAULT_DISPLAY)); in testDismissKeyguardAttrActivity_method_turnScreenOn_withSecureKeyguard()
330 mAmWmState.waitAndAssertImeWindowShownOnDisplay(DEFAULT_DISPLAY); in testShowWhenLockedAttrImeActivityAndShowSoftInput()
345 DEFAULT_DISPLAY); in testShowWhenLockedImeActivityAndShowSoftInput()
352 mAmWmState.waitAndAssertImeWindowShownOnDisplay(DEFAULT_DISPLAY); in testShowWhenLockedImeActivityAndShowSoftInput()
DSplashscreenTests.java20 import static android.view.Display.DEFAULT_DISPLAY;
43 mAmWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testSplashscreenContent()
DVrDisplayTests.java24 import static android.view.Display.DEFAULT_DISPLAY;
272 final int frontStackId = mAmWmState.getAmState().getFrontStackId(DEFAULT_DISPLAY); in testActivityLaunchPostVr()
278 DEFAULT_DISPLAY, frontStack.mDisplayId); in testActivityLaunchPostVr()
DMultiDisplaySecurityTests.java40 import static android.view.Display.DEFAULT_DISPLAY;
524 DEFAULT_DISPLAY, frontStack.mDisplayId); in testPermissionLaunchFromShell()
533 put(DEFAULT_DISPLAY, VIRTUAL_DISPLAY_ACTIVITY); in testPermissionLaunchFromShell()
548 put(DEFAULT_DISPLAY, VIRTUAL_DISPLAY_ACTIVITY); in testPermissionLaunchFromShell()
631 DEFAULT_DISPLAY, frontStack.mDisplayId); in testPermissionLaunchFromOwner()
670 DEFAULT_DISPLAY, frontStack.mDisplayId); in testPermissionLaunchFromDifferentApp()
DKeyguardTests.java45 import static android.view.Display.DEFAULT_DISPLAY;
499 assertTrue(isDisplayOn(DEFAULT_DISPLAY)); in testDismissKeyguardActivity_method_turnScreenOn()
549 mAmWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY); in testUnoccludeRotationChange()
582 assertTrue(isDisplayOn(DEFAULT_DISPLAY)); in testDismissKeyguardAttrActivity_method_turnScreenOn()
613 waitAndAssertTopResumedActivity(SHOW_WHEN_LOCKED_ATTR_ACTIVITY, DEFAULT_DISPLAY, in testScreenOffWhileOccludedStopsActivity()
DCrossAppDragAndDropTests.java24 import static android.view.Display.DEFAULT_DISPLAY;
148 waitAndAssertTopResumedActivity(componentName, DEFAULT_DISPLAY, in launchFreeformActivity()
158 mDm.getDisplay(Display.DEFAULT_DISPLAY).getRealSize(displaySize); in getDisplaySize()
DAssistantStackTests.java45 import static android.view.Display.DEFAULT_DISPLAY;
70 private int mAssistantDisplayId = DEFAULT_DISPLAY;
396 return mAssistantDisplayId == DEFAULT_DISPLAY; in assistantRunsOnPrimaryDisplay()
DMultiDisplayClientTests.java22 import static android.view.Display.DEFAULT_DISPLAY;
172 activityClass, mockImeSession, DEFAULT_DISPLAY); in testDisplayIdUpdateWhenImeMove()
/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/framework/base/windowmanager/util/src/android/server/wm/
DActivityAndWindowManagersState.java32 import static android.view.Display.DEFAULT_DISPLAY;
256 && !state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY), in waitForKeyguardShowingAndNotOccluded()
262 && state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY), in waitForKeyguardShowingAndOccluded()
579 assertFrontStackOnDisplay(msg, windowingMode, activityType, DEFAULT_DISPLAY); in assertFrontStack()
593 assertEquals(msg, activityType, mAmState.getFrontStackActivityType(DEFAULT_DISPLAY)); in assertFrontStackActivityType()
594 assertEquals(msg, activityType, mWmState.getFrontStackActivityType(DEFAULT_DISPLAY)); in assertFrontStackActivityType()
689 final int minTaskSizePx = defaultMinimalTaskSize(DEFAULT_DISPLAY); in assertDeviceDefaultDisplaySize()
690 final Display display = getWmState().getDisplay(DEFAULT_DISPLAY); in assertDeviceDefaultDisplaySize()
701 getAmState().getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY)); in assertKeyguardShowingAndOccluded()
708 getAmState().getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY)); in assertKeyguardShowingAndNotOccluded()
DWindowManagerState.java25 import static android.view.Display.DEFAULT_DISPLAY;
212 if (display.getDisplayId() == DEFAULT_DISPLAY) { in parseSysDumpProto()
425 return getDisplay(DEFAULT_DISPLAY).getLastTransition(); in getDefaultDisplayLastTransition()
429 return getDisplay(DEFAULT_DISPLAY).getAppTransitionState(); in getDefaultDisplayAppTransitionState()
552 return getDisplay(DEFAULT_DISPLAY).mStableBounds; in getStableBounds()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleTopResumedStateTests.java38 import static android.view.Display.DEFAULT_DISPLAY;
749 launchOptions.setLaunchDisplayId(DEFAULT_DISPLAY); in testTopPositionSwitchAcrossDisplays()
755 DEFAULT_DISPLAY, "Activity launched on default display must be focused"); in testTopPositionSwitchAcrossDisplays() local
799 launchOptions.setLaunchDisplayId(DEFAULT_DISPLAY); in testTopPositionSwitchAcrossDisplaysOnTap()
805 DEFAULT_DISPLAY, "Activity launched on default display must be focused"); in testTopPositionSwitchAcrossDisplaysOnTap() local
824 tapOnDisplayCenter(DEFAULT_DISPLAY); in testTopPositionSwitchAcrossDisplaysOnTap()
878 launchOptions.setLaunchDisplayId(DEFAULT_DISPLAY); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
887 DEFAULT_DISPLAY, "Activity launched on default display must be focused"); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess() local
911 tapOnDisplayCenter(DEFAULT_DISPLAY); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
948 launchOptions.setLaunchDisplayId(DEFAULT_DISPLAY); in testTopPositionSwitchAcrossDisplaysOnTapTimeoutDifferentProcess()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DDisplayModesTestActivity.java128 mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTestAsync()
164 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTest()
225 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTest()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java167 if (display.getDisplayId() == Display.DEFAULT_DISPLAY) { in testGetDisplays()
184 assertEquals(Display.DEFAULT_DISPLAY, mWindowManager.getDefaultDisplay().getDisplayId()); in testDefaultDisplay()
192 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testDefaultDisplayHdrCapability()
215 assertTrue(Display.DEFAULT_DISPLAY != display.getDisplayId());

12