Home
last modified time | relevance | path

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

12345

/cts/tests/tests/content/src/android/content/wm/cts/
DContextGetDisplayTest.java66 mApplicationContext.getDisplay(); in testGetDisplayFromApplication()
71 createTestService().getDisplay(); in testGetDisplayFromService()
76 final Display d = getTestActivity().getDisplay(); in testGetDisplayFromActivity()
86 assertEquals(display, displayContext.getDisplay()); in testGetDisplayFromDisplayContext()
103 assertEquals(display, context.getDisplay()); in verifyGetDisplayFromDisplayContextDerivedContext()
110 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContext()
118 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContextWithDefaultDisplay()
126 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContextWithSecondaryDisplay()
132 final Display d = new ContextWrapper(activity).getDisplay(); in testGetDisplayFromVisualWrapper()
135 activity.getDisplay(), d); in testGetDisplayFromVisualWrapper()
[all …]
DContextTestBase.java67 mDefaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in setUp()
90 return mSecondaryDisplay.getDisplay(); in getSecondaryDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTestsBase.java55 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in runAspectRatioTest()
73 getDisplay(activity).getSize(displaySize); in runAspectRatioTest()
75 getDisplay(activity).getDisplayId(), in runAspectRatioTest()
110 final WindowManagerState.DisplayContent displayContent = mWmState.getDisplay(displayId); in getMinimalTaskSize()
120 return getAspectRatio(getDisplay(activity)); in getActivityAspectRatio()
125 getDisplay(activity).getSize(size); in getActivitySize()
129 private static Display getDisplay(Activity activity) { in getDisplay() method in AspectRatioTestsBase
130 return activity.getWindow().peekDecorView().getDisplay(); in getDisplay()
DVirtualDisplayHelper.java77 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), true /* wantOn */); in createAndWaitForDisplay()
80 return mVirtualDisplay.getDisplay().getDisplayId(); in createAndWaitForDisplay()
85 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), false /* wantOn */); in turnDisplayOff()
90 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), true /* wantOn */); in turnDisplayOn()
97 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), false /* wantOn */); in releaseDisplay()
DMultiDisplayActivityLaunchTests.java264 .getDisplay(newDisplay.mId).mFullConfiguration; in testLaunchNonResizeableActivityOnSecondaryDisplay()
616 final int rootTaskNum = mWmState.getDisplay(DEFAULT_DISPLAY).mRootTasks.size(); in testMoveToDisplayOnLaunch()
618 .getDisplay(newDisplay.mId).mRootTasks.size(); in testMoveToDisplayOnLaunch()
636 final int rootTaskNumFinal = mWmState.getDisplay(DEFAULT_DISPLAY) in testMoveToDisplayOnLaunch()
641 .getDisplay(newDisplay.mId).mRootTasks.size(); in testMoveToDisplayOnLaunch()
661 final int rootTaskNum = mWmState.getDisplay(DEFAULT_DISPLAY).mRootTasks.size(); in testMoveToEmptyDisplayOnLaunch()
677 final int rootTaskNumFinal = mWmState.getDisplay(DEFAULT_DISPLAY) in testMoveToEmptyDisplayOnLaunch()
727 mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testLaunchSameAffinityLaunchesSameDisplay()
795 1, mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testLaunchDisplayAffinityMatch()
829 mWmState.getDisplay(newDisplay.mId).mRootTasks.size()); in testNewTaskSameDisplay()
[all …]
DMultiDisplayClientTests.java131 displayId, activity.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
139 displayId, view.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
202 final Display display = mDm.getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId()
238 assertEquals("View#getDisplay() must match.", displayId, view.getDisplay().getDisplayId()); in testViewGetDisplay()
253 resultDisplayId[0] = view.getDisplay().getDisplayId(); in testViewGetDisplay()
DWindowContextTestBase.java27 final Display display = mDm.getDisplay(displayId); in createDisplayContext()
/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_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/src/android/virtualdevice/cts/
DActivityManagementTest.java170 eq(virtualDisplay.getDisplay().getDisplayId()), in activityListener_shouldCallOnExecutor()
178 eq(virtualDisplay.getDisplay().getDisplayId()), in activityListener_shouldCallOnExecutor()
207 eq(virtualDisplay.getDisplay().getDisplayId()), in removeActivityListener_shouldStopCallbacks()
242 eq(virtualDisplay.getDisplay().getDisplayId()), in activityListener_shouldCallOnTopActivityChange()
248 .onDisplayEmpty(eq(virtualDisplay.getDisplay().getDisplayId())); in activityListener_shouldCallOnTopActivityChange()
268 mVirtualDevice.launchPendingIntent(virtualDisplay.getDisplay().getDisplayId(), in launchPendingIntent_activityIntent_shouldLaunchActivity()
298 launchStreamedAppActivityOnDisplay(virtualDisplay.getDisplay().getDisplayId()); in launchPendingIntent_serviceIntent_shouldLaunchTrampolineActivity()
301 virtualDisplay.getDisplay().getDisplayId(), in launchPendingIntent_serviceIntent_shouldLaunchTrampolineActivity()
330 virtualDisplay.getDisplay().getDisplayId(), in launchPendingIntent_serviceIntentNoTrampoline_shouldBeNoOp()
DActivityBlockingTest.java183 == virtualDisplay.getDisplay().getDisplayId())); in trustedDisplay_startNonEmbeddableActivity_shouldSucceed()
263 eq(virtualDisplay.getDisplay().getDisplayId()), in setAllowedCrossTaskNavigations_shouldBlockNonAllowedNavigations()
302 == virtualDisplay.getDisplay().getDisplayId())); in setAllowedCrossTaskNavigations_shouldAllowNavigations()
305 eq(virtualDisplay.getDisplay().getDisplayId()), in setAllowedCrossTaskNavigations_shouldAllowNavigations()
344 == virtualDisplay.getDisplay().getDisplayId())); in setBlockedCrossTaskNavigations_shouldAllowNavigations()
347 eq(virtualDisplay.getDisplay().getDisplayId()), in setBlockedCrossTaskNavigations_shouldAllowNavigations()
384 eq(virtualDisplay.getDisplay().getDisplayId()), in setBlockedCrossTaskNavigations_shouldBlockNonAllowedNavigations()
DCreateVirtualDisplayTest.java116 int displayFlags = virtualDisplay.getDisplay().getFlags(); in createVirtualDisplay_shouldNotBeNull()
142 int displayFlags = virtualDisplay.getDisplay().getFlags(); in createVirtualDisplay_alwaysUnlocked_shouldSpecifyFlagInVirtualDisplays()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java61 return mVirtualDisplay.getDisplay(); in createDisplay()
114 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
120 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
/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/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/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java52 WindowManagerState.DisplayContent dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
56 dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
122 tapOnDisplay(x, y, view.getDisplay().getDisplayId(), true /* sync */, waitAnimations); in tapOnViewCenter()
130 final Rect bounds = mWmState.getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenter()
135 final Rect bounds = mWmState.getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenterAsync()
DWindowManagerState.java430 final DisplayContent focusedDisplay = getDisplay(mFocusedDisplayId); in parseSysDumpProto()
489 DisplayContent getDisplay(int displayId) { in getDisplay() method in WindowManagerState
539 final DisplayContent displayContent = getDisplay(displayId); in getImeContainer()
547 return getDisplay(displayId).mRootTasks.get(0).mRootTaskId; in getFrontRootTaskId()
551 return getDisplay(displayId).mRootTasks.get(0).getActivityType(); in getFrontRootTaskActivityType()
555 return getDisplay(displayId).mRootTasks.get(0).getWindowingMode(); in getFrontRootTaskWindowingMode()
559 if (!getDisplay(displayId).mRootTasks.isEmpty()) { in getTopActivityName()
560 final Task topRootTask = getDisplay(displayId).mRootTasks.get(0); in getTopActivityName()
607 return getDisplay(displayId).mResumedActivity; in getResumedActivityOnDisplay()
945 Rect size = mWmState.getDisplay(DEFAULT_DISPLAY).getDisplayRect(); in getLogicalDisplaySize()
[all …]
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java165 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay()
191 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay()
216 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplayWithDynamicSurface()
250 Display display = virtualDisplay.getDisplay(); in testUntrustedSysDecorVirtualDisplay()
288 assertFalse(virtualDisplay.getDisplay().isHdr()); in testHdrApiMethods()
289 assertNull(virtualDisplay.getDisplay().getHdrCapabilities()); in testHdrApiMethods()
306 assertFalse(virtualDisplay.getDisplay().isHdr()); in testGetHdrCapabilitiesWithUserDisabledFormats()
307 assertNull(virtualDisplay.getDisplay().getHdrCapabilities()); in testGetHdrCapabilitiesWithUserDisabledFormats()
/cts/tests/app/src/android/app/cts/
DDisplayTest.java68 final Display origDisplay = activity.getDisplay(); in testRotation()
91 final Display updatedDisplay = activity.getDisplay(); in testRotation()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/activity/
DTaskInfoTestActivity.java27 return getDisplay().getDisplayId(); in getDisplayId()
/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/
DVirtualDisplayActivity.java35 new Presentation(getBaseContext(), virtualDisplay.getDisplay()).show(); in createVirtualDisplayAndShowPresentation()
/cts/tests/app/app/src/android/app/stubs/
DDisplayTestActivity.java44 public Display getDisplay() { in getDisplay() method in DisplayTestActivity
/cts/tests/framework/base/windowmanager/alertwindowservice/src/android/server/wm/alertwindowservice/
DAlertWindowService.java91 mWindowContext.getDisplay().getSize(size); in addAlertWindow()
142 final Display display = getSystemService(DisplayManager.class).getDisplay(DEFAULT_DISPLAY); in onCreate()
/cts/tests/tests/virtualdevice/src/android/virtualdevice/cts/util/
DVirtualDeviceTestUtils.java58 .setLaunchDisplayId(virtualDisplay.getDisplay().getDisplayId()) in createActivityOptions()

12345