Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
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()
DPresentationTest.java45 launchPresentationActivity(display.getDisplayId()); in testPresentationFollowsDisplayFlag()
49 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.getDisplayId()); in testPresentationFollowsDisplayFlag()
108 if (ws.getDisplayId() == displayId) return true; in isPresentationOnDisplay()
126 assertThat(presentationWindowState.getDisplayId()).isEqualTo(displayId); in assertPresentationOnDisplayAndMatchesDisplayMetrics()
DMultiDisplayClientTests.java129 assertEquals("Activity#getDisplayId()" + suffix, displayId, activity.getDisplayId()); in testDisplayIdUpdateOnMove()
131 displayId, activity.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
135 displayId, wm.getDefaultDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
139 displayId, view.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
206 assertEquals("IMM#getDisplayId() must match.", newDisplay.mId, imm.getDisplayId()); in testInputMethodManagerDisplayId()
238 assertEquals("View#getDisplay() must match.", displayId, view.getDisplay().getDisplayId()); in testViewGetDisplay()
253 resultDisplayId[0] = view.getDisplay().getDisplayId(); in testViewGetDisplay()
DWindowFocusTests.java106 final int displayId = activity.getDisplayId(); in tapOn()
147 final int secondaryDisplayId = session.getDisplayId(); in testKeyReceiving()
196 final int secondaryDisplayId = session.getDisplayId(); in testMovingDisplayToTopByKeyEvent()
293 final int secondaryDisplayId = session.getDisplayId(); in testDisplayChanged()
371 mDisplayId = getWindow().getDecorView().getDisplay().getDisplayId(); in onAttachedToWindow()
541 int getDisplayId() { in getDisplayId() method in WindowFocusTests.InvisibleVirtualDisplaySession
542 return mDisplay.getDisplayId(); in getDisplayId()
546 return WindowFocusTests.startActivityAndFocus(getDisplayId(), false /* hasFocus */); in startActivityAndFocus()
573 int getDisplayId() { in getDisplayId() method in WindowFocusTests.SimulatedDisplaySession
578 return WindowFocusTests.startActivityAndFocus(getDisplayId(), true /* hasFocus */); in startActivityAndFocus()
DMinimalPostProcessingTests.java63 private int getDisplayId(ComponentName name) { in getDisplayId() method in MinimalPostProcessingTests
68 final int displayId = getDisplayId(name); in assertDisplayRequestedMinimalPostProcessing()
DAspectRatioTestsBase.java51 getDisplay(activity).getDisplayId(), in runAspectRatioTest()
DDisplaySizeTest.java114 final int targetDisplayId = targetDisplay.getDisplayId(); in testSizeRangesAfterSettingDisplaySize()
DToastWindowTest.java137 tapOnCenter(toastWindow.getContainingFrame(), toastWindow.getDisplayId()); in testToastWindowIsNotClickable()
DManifestLayoutTests.java191 mDisplay = mWmState.getDisplay(mWindowState.getDisplayId()); in getDisplayAndWindowState()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityGestureEventTest.java84 actualGesture.getDisplayId()); in testGetterMethods()
104 assertEquals("getDisplayId has incorrectValue", sentGestureEvent.getDisplayId(), in assertEqualsGestureEvent()
105 receivedGestureEvent.getDisplayId()); in assertEqualsGestureEvent()
DAccessibilityWindowInfoTest.java87 assertEquals(Display.INVALID_DISPLAY, w.getDisplayId()); in testDefaultValues()
132 equality &= w1.getDisplayId() == w2.getDisplayId(); in areWindowsEqual()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java123 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
125 … String.format("wait for virtual display %d adding", display.getDisplayId())); in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/hostsidetests/incident/src/com/android/server/cts/
DSystemPropertiesTest.java37 assertFalse(properties.getRo().getBuild().getDisplayId().isEmpty()); in verifySystemPropertiesProto()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLiveWallpaper.java38 final int displayId = displayContext.getDisplayId(); in onCreateEngine()
DHostActivity.java93 b.putInt(EXTRAS_DISPLAY_ID, getDisplay().getDisplayId()); in surfaceCreated()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java276 if (display.getDisplayId() == DEFAULT_DISPLAY) { in testGetDisplays()
293 assertEquals(DEFAULT_DISPLAY, mWindowManager.getDefaultDisplay().getDisplayId()); in testDefaultDisplay()
448 final int id = display.getDisplayId();
492 assertTrue(DEFAULT_DISPLAY != display.getDisplayId());
647 if (displayId != mDefaultDisplay.getDisplayId()) {
842 if (displayId == display.getDisplayId()) {
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTakeScreenshotTest.java167 false).getDisplayId(); in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult()
191 true).getDisplayId(); in testTakeScreenshotOnPrivateDisplay_GetErrorCode()
DAccessibilityOverlayTest.java105 final int displayId = newDisplay.getDisplayId(); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear()
DAccessibilityGestureDetectorTest.java173 sInstrumentation.getTargetContext(), false).getDisplayId(); in testRecognizeGesturePathOnVirtualDisplay()
424 false).getDisplayId(); in testVerifyGestureTouchEventOnVirtualDisplay()
496 true).getDisplayId(); in testDispatchGesture_privateDisplay_gestureCancelled()
DGestureDescriptionTest.java246 assertEquals(2, gesture.getDisplayId()); in testSetDisplayId_getCorrectDisplayId()
/cts/tests/tests/car/src/android/car/cts/
DCarOccupantZoneManagerTest.java111 assertThat(getDriverDisplay().getDisplayId()).isEqualTo(DEFAULT_DISPLAY); in testDriverDisplayIdIsDefaultDisplay()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java747 && w.getDisplayId() == displayId));
752 imeWinState.getDisplayId());
770 if (ws.getDisplayId() == displayId) return true;
DTouchHelper.java118 tapOnDisplay(x, y, view.getDisplay().getDisplayId(), true /* sync */, waitAnimations); in tapOnViewCenter()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java305 assertEquals(DEFAULT_DISPLAY, verified.getDisplayId()); in compareKeys()
325 assertEquals(DEFAULT_DISPLAY, verified.getDisplayId()); in compareMotions()
DChoreographerNativeTest.java107 .filter(display -> display.getDisplayId() == Display.DEFAULT_DISPLAY) in setup()

12