Home
last modified time | relevance | path

Searched refs:getDisplay (Results 1 – 25 of 181) sorted by relevance

12345678

/cts/tests/tests/content/src/android/content/wm/cts/
DContextGetDisplayTest.java68 mApplicationContext.getDisplay(); in testGetDisplayFromApplication()
73 createTestService().getDisplay(); in testGetDisplayFromService()
78 final Display d = getTestActivity().getDisplay(); in testGetDisplayFromActivity()
88 assertEquals(display, displayContext.getDisplay()); in testGetDisplayFromDisplayContext()
105 assertEquals(display, context.getDisplay()); in verifyGetDisplayFromDisplayContextDerivedContext()
112 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContext()
120 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContextWithDefaultDisplay()
128 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContextWithSecondaryDisplay()
134 final Display d = new ContextWrapper(activity).getDisplay(); in testGetDisplayFromVisualWrapper()
137 activity.getDisplay(), d); in testGetDisplayFromVisualWrapper()
[all …]
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDisplayTest.java100 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in createVirtualDisplay_deprecatedOverload_shouldSucceed()
108 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_defaultVirtualDisplayFlags()
122 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_public_createsMirrorDisplay()
134 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_autoMirror_createsMirrorDisplay()
147 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_publicAutoMirror_createsMirrorDisplay()
159 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_ownContentOnly_doesNotCreateMirrorDisplay()
172 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_autoMirrorAndOwnContentOnly_doesNotCreateMirrorDisplay()
188 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_autoMirror_flagAlwaysUnlockedNotSet()
202 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_public_flagAlwaysUnlockedNotSet()
213 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_autoMirror_flagPresentationNotSet()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionService.java53 return new CubePresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
56 return new WidgetPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
59 return new ListPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
62 return new VideoPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
65 return new TouchPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
68 return new OffscreenPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
/cts/tests/tests/car/src/android/car/cts/utils/
DDisplayUtils.java69 return mVirtualDisplay.getDisplay(); in createDisplay()
97 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
130 int theNewDisplayId = mVirtualDisplay.getDisplay().getDisplayId(); in createDisplayWithDefaultDisplayMetricsAndWait()
132 () -> displayManager.getDisplay(theNewDisplayId) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
139 return mVirtualDisplay.getDisplay(); in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DVirtualDisplayHelper.java78 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), true /* wantOn */); in createAndWaitForDisplay()
81 return mVirtualDisplay.getDisplay().getDisplayId(); in createAndWaitForDisplay()
86 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), false /* wantOn */); in turnDisplayOff()
91 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), true /* wantOn */); in turnDisplayOn()
98 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), false /* wantOn */); in releaseDisplay()
DTouchHelper.java53 WindowManagerState.DisplayContent dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
57 dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
123 tapOnDisplay(x, y, view.getDisplay().getDisplayId(), true /* sync */, waitAnimations); in tapOnViewCenter()
131 final Rect bounds = mWmState.getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenter()
192 final Rect bounds = mWmState.getDisplay(displayId).getDisplayRect(); in triggerBackEventByGesture()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DDisplayUtils.java70 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
103 int theNewDisplayId = mVirtualDisplay.getDisplay().getDisplayId(); in createDisplayWithDefaultDisplayMetricsAndWait()
105 () -> displayManager.getDisplay(theNewDisplayId) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
112 return mVirtualDisplay.getDisplay(); in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DRecentTasksTest.java73 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents()
93 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
115 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in activityLaunchedOnUntrustedDisplayWithCustomRecentPolicy_includedInRecents()
126 customPolicyDisplay.getDisplay().getDisplayId()); in testOverrideRecentsPolicyPerDisplay()
139 defaultPolicyDisplay.getDisplay().getDisplayId()); in testOverrideRecentsPolicyPerDisplay()
141 customPolicyDisplay.getDisplay().getDisplayId()); in testOverrideRecentsPolicyPerDisplay()
DActivityBlockingTest.java111 mRule.assumeActivityLaunchSupported(mVirtualDisplay.getDisplay().getDisplayId()); in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException()
113 mContext, mVirtualDisplay.getDisplay().getDisplayId(), mMonitoredIntent)) in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException()
396 final int customPolicyDisplayId = customPolicyDisplay.getDisplay().getDisplayId(); in testPerDisplayActivityPolicy()
446 final int customPolicyDisplayId = customPolicyDisplay.getDisplay().getDisplayId(); in testPerDisplayActivityPolicy_packageExemption()
623 eq(mVirtualDisplay.getDisplay().getDisplayId()), in blockedActivity_customBlockedActivityLaunchPolicy()
639 eq(mVirtualDisplay.getDisplay().getDisplayId()), in blockedActivity_intentSenderPassedToListener()
673 eq(mVirtualDisplay.getDisplay().getDisplayId()), in blockedActivity_resultExpected_intentSenderNotPassedToListener()
718 mContext, display.getDisplay().getDisplayId(), intent)).isFalse(); in assertActivityLaunchBlocked()
722 eq(display.getDisplay().getDisplayId()), in assertActivityLaunchBlocked()
734 mContext, mVirtualDisplay.getDisplay().getDisplayId(), intent)).isFalse(); in assertNoActivityLaunched()
[all …]
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/
DVirtualDisplayActivity.java45 new Presentation(getBaseContext(), virtualDisplay.getDisplay()).show(); in createPublicVirtualDisplayAndShowPresentation()
51 new Presentation(getBaseContext(), virtualDisplay.getDisplay()).show(); in createVirtualDisplayAndShowPresentation()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java208 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay()
234 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay()
259 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplayWithDynamicSurface()
293 Display display = virtualDisplay.getDisplay(); in testUntrustedSysDecorVirtualDisplay()
337 Display display = virtualDisplay.getDisplay(); in testSetSurface_togglesDisplayState()
371 Display display = virtualDisplay.getDisplay(); in testSetSurface_powerGroupOff_doesNotTurnOnDisplay()
424 display = virtualDisplay.getDisplay(); in testCreateDisplay_nonNullSurface_powerGroupOff_displayStateIsOff()
450 Display display = virtualDisplay.getDisplay(); in testVirtualDisplayWithRequestedRefreshRate()
472 assertNull(virtualDisplay.getDisplay().getCutout()); in testVirtualDisplayWithoutCutout()
476 assertDisplayUnregistered(virtualDisplay.getDisplay()); in testVirtualDisplayWithoutCutout()
[all …]
/cts/tests/app/src/android/app/cts/
DDisplayTest.java77 final Display origDisplay = activity.getDisplay(); in testRotation()
100 PollingCheck.waitFor(() -> activity.getDisplay().getRotation() == nextRotation, in testRotation()
108 final Display updatedDisplay = activity.getDisplay(); in testRotation()
/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java47 activity.getDisplay().getRealMetrics(displayMetrics); in isCloseToSquareDisplay()
57 activity.getDisplay().getRealMetrics(displayMetrics); in isDevicePortrait()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayPresentationKeyguardTest.java211 assertNotEquals(DEFAULT_DISPLAY, presentationView.getDisplay().getDisplayId()); in testStartRearDisplayPresentation_afterKeyguardLocked()
212 waitAndAssert(() -> (presentationView.getDisplay().getState() != Display.STATE_OFF)); in testStartRearDisplayPresentation_afterKeyguardLocked()
259 final int presentationDisplayId = presentationView.getDisplay().getDisplayId(); in testStartRearDisplayPresentation_thenKeyguardLocked()
261 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartRearDisplayPresentation_thenKeyguardLocked()
310 final Display presentationDisplay = presentationView.getDisplay(); in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
313 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
367 final int presentationDisplayId = presentationView.getDisplay().getDisplayId(); in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
369 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
425 final Display presentationDisplay = presentationView.getDisplay(); in testStartRearDisplayPresentation_afterKeyguardLocked_thenScreenOff()
DExtensionRearDisplayPresentationTest.java280 assertNotEquals(presentationView.getDisplay().getDisplayId(), DEFAULT_DISPLAY); in testStartAndEndRearDisplayPresentationSession()
281 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession()
349 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession_backgroundApp()
350 assertNotEquals(presentationView.getDisplay().getDisplayId(), DEFAULT_DISPLAY); in testStartAndEndRearDisplayPresentationSession_backgroundApp()
402 assertNotEquals(presentationView.getDisplay().getDisplayId(), DEFAULT_DISPLAY); in testStartAndEndRearDisplayPresentationSession_lockDevice()
403 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession_lockDevice()
512 != presentation.getPresentationContext().getDisplay().getState()); in testStartRearDisplayPresentation_applicationFinishes()
569 assertNotEquals(presentationView.getDisplay().getDisplayId(), DEFAULT_DISPLAY); in testStartAndEndRearDisplayPresentationSession_endsSessionInPip()
570 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession_endsSessionInPip()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DRenderService.java68 new SurfaceControlViewHost(displayContext, displayContext.getDisplay(), hostToken); in getSurfaceControlViewHost()
75 displayContext.getDisplay().getMetrics(metrics); in getSurfaceControlViewHost()
82 final Display targetDisplay = displayManager.getDisplay(hostDisplayId); in getDisplayContext()
DLandscapeOrientationActivity.java43 final Display display = getDisplay(); in onCreate()
54 .getDisplay(Display.DEFAULT_DISPLAY))); in onCreate()
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DVirtualDeviceRule.java246 assertDisplayExists(virtualDisplay.getDisplay().getDisplayId()); in createManagedVirtualDisplay()
285 assertDisplayExists(virtualDisplay.getDisplay().getDisplayId()); in createManagedUnownedVirtualDisplay()
331 () -> mWmState.getDisplay(displayId) != null); in assertDisplayExists()
339 () -> mWmState.getDisplay(displayId) == null); in assertDisplayDoesNotExist()
422 sendIntentToDisplay(intent, virtualDisplay.getDisplay().getDisplayId()); in sendIntentToDisplay()
439 final int displayId = virtualDisplay.getDisplay().getDisplayId(); in startActivityOnDisplaySync()
458 return startActivityOnDisplaySync(virtualDisplay.getDisplay().getDisplayId(), intent); in startActivityOnDisplaySync()
477 return createActivityOptions(virtualDisplay.getDisplay().getDisplayId()); in createActivityOptions()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayClientTests.java133 displayId, activity.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
141 displayId, view.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
204 final Display display = mDm.getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId()
240 assertEquals("View#getDisplay() must match.", displayId, view.getDisplay().getDisplayId()); in testViewGetDisplay()
255 resultDisplayId[0] = view.getDisplay().getDisplayId(); in testViewGetDisplay()
DMultiDisplayActivityLaunchTests.java275 .getDisplay(newDisplay.mId).getFullConfiguration(); in testLaunchNonResizeableActivityOnSecondaryDisplay()
629 final int rootTaskNum = mWmState.getDisplay(getMainDisplayId()).getRootTasks().size(); in testMoveToDisplayOnLaunch()
631 mWmState.getDisplay(newDisplay.mId).getRootTasks().size(); in testMoveToDisplayOnLaunch()
649 final int rootTaskNumFinal = mWmState.getDisplay(getMainDisplayId()).getRootTasks().size(); in testMoveToDisplayOnLaunch()
655 mWmState.getDisplay(newDisplay.mId).getRootTasks().size(); in testMoveToDisplayOnLaunch()
675 final int rootTaskNum = mWmState.getDisplay(getMainDisplayId()).getRootTasks().size(); in testMoveToEmptyDisplayOnLaunch()
691 final int rootTaskNumFinal = mWmState.getDisplay(getMainDisplayId()).getRootTasks().size(); in testMoveToEmptyDisplayOnLaunch()
743 mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testLaunchSameAffinityLaunchesSameDisplay()
816 1, mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testLaunchDisplayAffinityMatch()
854 mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testNewTaskSameDisplay()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/activity/
DTaskInfoTestActivity.java27 return getDisplay().getDisplayId(); in getDisplayId()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java104 return mVirtualDisplay.getDisplay(); in createDisplay()
157 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
163 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DNotTouchableWindowTestActivity.java45 … params = createDefaultWindowParams(NotTouchableWindowTestActivity.this.getDisplay()); in onReceive()
54 … params = createDefaultWindowParams(NotTouchableWindowTestActivity.this.getDisplay()); in onReceive()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTestBase.java28 final Display display = mDm.getDisplay(displayId); in createDisplayContext()
/cts/tests/app/app/src/android/app/stubs/
DDisplayTestActivity.java44 public Display getDisplay() { in getDisplay() method in DisplayTestActivity

12345678