Home
last modified time | relevance | path

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

1234

/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()
82 return virtualDisplay.getDisplay(); in createSecondaryDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTestsBase.java54 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in runAspectRatioTest()
72 getDisplay(activity).getSize(displaySize); in runAspectRatioTest()
74 getDisplay(activity).getDisplayId(), in runAspectRatioTest()
101 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in getDisplayAspectRatio()
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()
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()
DMultiDisplayActivityLaunchTests.java261 .getDisplay(newDisplay.mId).mFullConfiguration; in testLaunchNonResizeableActivityOnSecondaryDisplay()
613 final int rootTaskNum = mWmState.getDisplay(DEFAULT_DISPLAY).mRootTasks.size(); in testMoveToDisplayOnLaunch()
615 .getDisplay(newDisplay.mId).mRootTasks.size(); in testMoveToDisplayOnLaunch()
633 final int rootTaskNumFinal = mWmState.getDisplay(DEFAULT_DISPLAY) in testMoveToDisplayOnLaunch()
638 .getDisplay(newDisplay.mId).mRootTasks.size(); in testMoveToDisplayOnLaunch()
658 final int rootTaskNum = mWmState.getDisplay(DEFAULT_DISPLAY).mRootTasks.size(); in testMoveToEmptyDisplayOnLaunch()
674 final int rootTaskNumFinal = mWmState.getDisplay(DEFAULT_DISPLAY) in testMoveToEmptyDisplayOnLaunch()
724 mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testLaunchSameAffinityLaunchesSameDisplay()
792 1, mWmState.getDisplay(newDisplay.mId).getRootTasks().size()); in testLaunchDisplayAffinityMatch()
826 mWmState.getDisplay(newDisplay.mId).mRootTasks.size()); in testNewTaskSameDisplay()
[all …]
DWindowContextTestBase.java27 final Display display = mDm.getDisplay(displayId); in createDisplayContext()
DRoundedCornerTests.java112 final Display display = activity.getDisplay(); in testRoundedCorner_fullscreen()
189 final Display display = getDisplay(); in hasRoundedCorners()
197 final Display display = getDisplay(); in calculateWindowBounds()
/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/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/util/src/android/server/wm/
DTouchHelper.java52 WindowManagerState.DisplayContent dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
56 dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
118 tapOnDisplay(x, y, view.getDisplay().getDisplayId(), true /* sync */, waitAnimations); in tapOnViewCenter()
126 final Rect bounds = mWmState.getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenter()
131 final Rect bounds = mWmState.getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenterAsync()
DWindowManagerStateHelper.java278 state.getDisplay(displayId).getAppTransitionState()), in waitForAppTransitionRunningOnDisplay()
285 state.getDisplay(displayId).getAppTransitionState()), in waitForAppTransitionIdleOnDisplay()
594 assertEquals(msg, activityComponentName, getDisplay(displayId).getFocusedApp());
675 final WindowManagerState.DisplayContent display = getDisplay(DEFAULT_DISPLAY);
689 final WindowManagerState.DisplayContent display = getDisplay(DEFAULT_DISPLAY);
782 final Rect displayRect = getDisplay(displayId).getDisplayRect();
DWindowManagerState.java418 final DisplayContent focusedDisplay = getDisplay(mFocusedDisplayId); in parseSysDumpProto()
475 DisplayContent getDisplay(int displayId) { in getDisplay() method in WindowManagerState
515 return getDisplay(displayId).mRootTasks.get(0).mRootTaskId; in getFrontRootTaskId()
519 return getDisplay(displayId).mRootTasks.get(0).getActivityType(); in getFrontRootTaskActivityType()
523 return getDisplay(displayId).mRootTasks.get(0).getWindowingMode(); in getFrontRootTaskWindowingMode()
527 if (!getDisplay(displayId).mRootTasks.isEmpty()) { in getTopActivityName()
528 final Task topRootTask = getDisplay(displayId).mRootTasks.get(0); in getTopActivityName()
575 return getDisplay(displayId).mResumedActivity; in getResumedActivityOnDisplay()
909 Rect size = mWmState.getDisplay(DEFAULT_DISPLAY).getDisplayRect(); in getLogicalDisplaySize()
914 return getDisplay(DEFAULT_DISPLAY).getLastTransition(); in getDefaultDisplayLastTransition()
[all …]
/cts/tests/app/src/android/app/cts/
DDisplayTest.java59 final Display origDisplay = mActivity.getDisplay(); in testRotation()
81 final Display updatedDisplay = mActivity.getDisplay(); in testRotation()
/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()
DPresentationActivity.java53 getSystemService(DisplayManager.class).getDisplay(displayId); in createPresentationWindow()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java64 return mVirtualDisplay.getDisplay(); in createDisplay()
117 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
123 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
/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/app/src/android/app/stubs/
DOrientationTestUtils.java63 activity.getDisplay().getDisplayInfo(displayInfo); in getOrientations()
85 activity.getDisplay().getDisplayInfo(displayInfo); in isCloseToSquareDisplay()
DDisplayTestActivity.java44 public Display getDisplay() { in getDisplay() method in DisplayTestActivity
/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/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/hostsidetests/graphics/framerateoverride/app/src/com/android/cts/graphics/framerateoverride/
DFrameRateOverrideTestActivity.java94 float refreshRate = getDisplay().getRefreshRate();
95 float displayModeRefreshRate = getDisplay().getMode().getRefreshRate();
140 mReportedDisplayRefreshRate = getDisplay().getRefreshRate(); in onCreate()
141 mReportedDisplayModeRefreshRate = getDisplay().getMode().getRefreshRate(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DHotplugTestActivity.java167 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTestAsync()
188 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onDisplayChanged()

1234