/cts/tests/tests/content/src/android/content/wm/cts/ |
D | ContextGetDisplayTest.java | 66 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 …]
|
D | ContextTestBase.java | 67 mDefaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in setUp() 82 return virtualDisplay.getDisplay(); in createSecondaryDisplay()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AspectRatioTestsBase.java | 54 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()
|
D | VirtualDisplayHelper.java | 77 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()
|
D | MultiDisplayClientTests.java | 131 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()
|
D | MultiDisplayActivityLaunchTests.java | 261 .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 …]
|
D | WindowContextTestBase.java | 27 final Display display = mDm.getDisplay(displayId); in createDisplayContext()
|
D | RoundedCornerTests.java | 112 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/ |
D | ProjectionService.java | 53 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/ |
D | DisplayUtils.java | 47 activity.getDisplay().getRealMetrics(displayMetrics); in isCloseToSquareDisplay() 57 activity.getDisplay().getRealMetrics(displayMetrics); in isDevicePortrait()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | TouchHelper.java | 52 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()
|
D | WindowManagerStateHelper.java | 278 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();
|
D | WindowManagerState.java | 418 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/ |
D | DisplayTest.java | 59 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/ |
D | RenderService.java | 68 new SurfaceControlViewHost(displayContext, displayContext.getDisplay(), hostToken); in getSurfaceControlViewHost() 75 displayContext.getDisplay().getMetrics(metrics); in getSurfaceControlViewHost() 82 final Display targetDisplay = displayManager.getDisplay(hostDisplayId); in getDisplayContext()
|
D | LandscapeOrientationActivity.java | 43 final Display display = getDisplay(); in onCreate() 54 .getDisplay(Display.DEFAULT_DISPLAY))); in onCreate()
|
D | PresentationActivity.java | 53 getSystemService(DisplayManager.class).getDisplay(displayId); in createPresentationWindow()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | DisplayUtils.java | 64 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/ |
D | VirtualDisplayTest.java | 165 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/ |
D | OrientationTestUtils.java | 63 activity.getDisplay().getDisplayInfo(displayInfo); in getOrientations() 85 activity.getDisplay().getDisplayInfo(displayInfo); in isCloseToSquareDisplay()
|
D | DisplayTestActivity.java | 44 public Display getDisplay() { in getDisplay() method in DisplayTestActivity
|
/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/ |
D | VirtualDisplayActivity.java | 35 new Presentation(getBaseContext(), virtualDisplay.getDisplay()).show(); in createVirtualDisplayAndShowPresentation()
|
/cts/tests/framework/base/windowmanager/alertwindowservice/src/android/server/wm/alertwindowservice/ |
D | AlertWindowService.java | 91 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/ |
D | FrameRateOverrideTestActivity.java | 94 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/ |
D | HotplugTestActivity.java | 167 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTestAsync() 188 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onDisplayChanged()
|