Home
last modified time | relevance | path

Searched refs:displayId (Results 1 – 25 of 49) sorted by relevance

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDetectorTest.java181 final int displayId = displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in testRecognizeGesturePathOnVirtualDisplay() local
186 displayId); in testRecognizeGesturePathOnVirtualDisplay()
189 runGestureDetectionTestOnDisplay(displayId); in testRecognizeGesturePathOnVirtualDisplay()
190 runMultiFingerGestureDetectionTestOnDisplay(displayId); in testRecognizeGesturePathOnVirtualDisplay()
200 private void runGestureDetectionTestOnDisplay(int displayId) { in runGestureDetectionTestOnDisplay() argument
207 doubleTap(displayId), in runGestureDetectionTestOnDisplay()
209 displayId); in runGestureDetectionTestOnDisplay() local
211 doubleTapAndHold(displayId), in runGestureDetectionTestOnDisplay()
213 displayId); in runGestureDetectionTestOnDisplay() local
214 testPath(p(-dx, +0), AccessibilityService.GESTURE_SWIPE_LEFT, displayId); in runGestureDetectionTestOnDisplay()
[all …]
DAccessibilityOverlayTest.java105 final int displayId = newDisplay.getDisplayId(); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear() local
114 return allWindows.get(displayId) != null; in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear()
121 }), (event) -> findOverlayWindow(displayId) != null, AsyncUtils.DEFAULT_TIMEOUT_MS); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear()
123 assertTrue(TextUtils.equals(findOverlayWindow(displayId).getTitle(), overlayTitle)); in testA11yServiceShowsOverlayOnVirtualDisplay_shouldAppear()
140 private AccessibilityWindowInfo findOverlayWindow(int displayId) { in findOverlayWindow() argument
143 final List<AccessibilityWindowInfo> windows = allWindows.get(displayId); in findOverlayWindow()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java51 public void touchAndCancelOnDisplayCenterSync(int displayId) { in touchAndCancelOnDisplayCenterSync() argument
52 WindowManagerState.DisplayContent dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
56 dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
59 log("Cannot tap on display: " + displayId); in touchAndCancelOnDisplayCenterSync()
66 injectMotion(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, displayId, true /* sync */); in touchAndCancelOnDisplayCenterSync()
72 injectMotion(downTime, eventTime, MotionEvent.ACTION_CANCEL, tapX, tapY, displayId, in touchAndCancelOnDisplayCenterSync()
76 public void tapOnDisplaySync(int x, int y, int displayId) { in tapOnDisplaySync() argument
77 tapOnDisplay(x, y, displayId, true /* sync*/); in tapOnDisplaySync()
80 public void tapOnDisplay(int x, int y, int displayId, boolean sync) { in tapOnDisplay() argument
81 tapOnDisplay(x, y, displayId, sync, /* waitAnimations */ true); in tapOnDisplay()
[all …]
DWindowManagerStateHelper.java275 public boolean waitForAppTransitionRunningOnDisplay(int displayId) { in waitForAppTransitionRunningOnDisplay() argument
278 state.getDisplay(displayId).getAppTransitionState()), in waitForAppTransitionRunningOnDisplay()
279 "app transition running on Display " + displayId); in waitForAppTransitionRunningOnDisplay()
282 public boolean waitForAppTransitionIdleOnDisplay(int displayId) { in waitForAppTransitionIdleOnDisplay() argument
285 state.getDisplay(displayId).getAppTransitionState()), in waitForAppTransitionIdleOnDisplay()
286 "app transition idle on Display " + displayId); in waitForAppTransitionIdleOnDisplay()
289 void waitAndAssertNavBarShownOnDisplay(int displayId) { in waitAndAssertNavBarShownOnDisplay() argument
290 waitAndAssertNavBarShownOnDisplay(displayId, 1 /* expectedNavBarCount */); in waitAndAssertNavBarShownOnDisplay()
293 void waitAndAssertNavBarShownOnDisplay(int displayId, int expectedNavBarCount) { in waitAndAssertNavBarShownOnDisplay() argument
296 .getAndAssertNavBarWindowsOnDisplay(displayId, expectedNavBarCount); in waitAndAssertNavBarShownOnDisplay()
[all …]
DActivityManagerTestBase.java297 protected static String getAmStartCmd(final ComponentName activityName, final int displayId, in getAmStartCmd() argument
299 return getAmStartCmdInternal(getActivityName(activityName), displayId, extras); in getAmStartCmd()
302 private static String getAmStartCmdInternal(final String activityName, final int displayId, in getAmStartCmdInternal() argument
310 .append(displayId), in getAmStartCmdInternal()
441 public void launchTestActivityOnDisplaySync(Class<T> activityClass, int displayId) { in launchTestActivityOnDisplaySync() argument
442 launchTestActivityOnDisplaySync(activityClass, displayId, WINDOWING_MODE_UNDEFINED); in launchTestActivityOnDisplaySync()
453 Class<T> activityClass, int displayId, int windowingMode) { in launchTestActivityOnDisplaySync() argument
457 launchTestActivityOnDisplaySync(className, intent, displayId, windowingMode); in launchTestActivityOnDisplaySync()
469 int displayId) { in launchTestActivityOnDisplaySync() argument
470 launchTestActivityOnDisplaySync(className, intent, displayId, WINDOWING_MODE_UNDEFINED); in launchTestActivityOnDisplaySync()
[all …]
DActivityLauncher.java206 final int displayId = extras.getInt(KEY_DISPLAY_ID, -1); in launchActivityFromExtras() local
207 if (displayId != -1) { in launchActivityFromExtras()
211 options.setLaunchDisplayId(displayId); in launchActivityFromExtras()
263 public static void checkActivityStartOnDisplay(Context context, int displayId, in checkActivityStartOnDisplay() argument
268 .isActivityStartAllowedOnDisplay(context, displayId, launchIntent); in checkActivityStartOnDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowContextTestBase.java26 Context createDisplayContext(int displayId) { in createDisplayContext() argument
27 final Display display = mDm.getDisplay(displayId); in createDisplayContext()
31 Context createWindowContext(int displayId) { in createWindowContext() argument
32 return createWindowContext(displayId, TYPE_APPLICATION_OVERLAY); in createWindowContext()
35 Context createWindowContext(int displayId, int type) { in createWindowContext() argument
36 return createDisplayContext(displayId).createWindowContext( in createWindowContext()
DAspectRatioTests.java56 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatio()
65 (actual, displayId, activitySize, displaySize) -> { in testMetaDataMaxAspectRatio()
74 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioResizeableActivity()
76 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMaxAspectRatioResizeableActivity()
89 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioUnsetActivity()
91 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMaxAspectRatioUnsetActivity()
102 (actual, displayId, activitySize, displaySize) -> { in testMinAspectRatio()
112 (actual, displayId, activitySize, displaySize) -> { in testMinAspectRatioUnsetActivity()
114 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMinAspectRatioUnsetActivity()
125 (actual, displayId, activitySize, displaySize) -> { in testMinAspectLandscapeActivity()
[all …]
DMultiDisplayPrivateDisplayTests.java73 int displayId = displayContent.mId; in findPrivateDisplays() local
74 DisplayContent display = mWmState.getDisplay(displayId); in findPrivateDisplays()
76 mPrivateDisplayIds.add(displayId); in findPrivateDisplays()
88 for (int displayId: mPrivateDisplayIds) { in testCantLaunchOnPrivateDisplay()
92 .setDisplayId(displayId) in testCantLaunchOnPrivateDisplay()
115 for (int displayId: mPrivateDisplayIds) { in testCantAccessPrivateDisplay()
117 displayId, intent)); in testCantAccessPrivateDisplay()
133 for (int displayId: mPrivateDisplayIds) { in testCanAccessPrivateDisplayWithInternalPermission()
136 displayId, intent)), INTERNAL_SYSTEM_WINDOW); in testCanAccessPrivateDisplayWithInternalPermission()
DWindowManagerTestBase.java46 static <T extends FocusableActivity> T startActivity(Class<T> cls, int displayId) { in startActivity() argument
47 return startActivity(cls, displayId, true /* hasFocus */); in startActivity()
51 Class<T> cls, int displayId, boolean hasFocus) { in startActivity() argument
52 return startActivity(cls, displayId, hasFocus, WINDOWING_MODE_UNDEFINED); in startActivity()
65 static <T extends FocusableActivity> T startActivity(Class<T> cls, int displayId, in startActivity() argument
68 if (displayId == DEFAULT_DISPLAY && windowingMode == WINDOWING_MODE_UNDEFINED) { in startActivity()
72 if (displayId != DEFAULT_DISPLAY) ap.setLaunchDisplayId(displayId); in startActivity()
DMultiDisplayClientTests.java110 final int displayId = newDisplay.mId; in testDisplayIdUpdateOnMove() local
111 launchOptions.setLaunchDisplayId(displayId); in testDisplayIdUpdateOnMove()
116 waitAndAssertTopResumedActivity(activityName, displayId, in testDisplayIdUpdateOnMove()
129 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()
225 final int displayId = isPrimary ? DEFAULT_DISPLAY : newDisplay.mId; in testViewGetDisplay() local
228 activitySession.launchTestActivityOnDisplaySync(ClientTestActivity.class, displayId); in testViewGetDisplay()
233 waitAndAssertTopResumedActivity(activityName, displayId, in testViewGetDisplay()
[all …]
DPresentationTest.java104 private boolean isPresentationOnDisplay(WindowManagerState windowManagerState, int displayId) { in isPresentationOnDisplay() argument
108 if (ws.getDisplayId() == displayId) return true; in isPresentationOnDisplay()
120 private void assertPresentationOnDisplayAndMatchesDisplayMetrics(int displayId) { in assertPresentationOnDisplayAndMatchesDisplayMetrics() argument
126 assertThat(presentationWindowState.getDisplayId()).isEqualTo(displayId); in assertPresentationOnDisplayAndMatchesDisplayMetrics()
128 WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in assertPresentationOnDisplayAndMatchesDisplayMetrics()
133 private void launchPresentationActivity(int displayId) { in launchPresentationActivity() argument
137 intent.putExtra(Components.PresentationActivity.KEY_DISPLAY_ID, displayId); in launchPresentationActivity()
DMinimalPostProcessingTests.java57 private boolean isMinimalPostProcessingSupported(int displayId) { in isMinimalPostProcessingSupported() argument
58 return mDm.getDisplay(displayId).isMinimalPostProcessingSupported(); in isMinimalPostProcessingSupported()
61 private boolean isMinimalPostProcessingRequested(int displayId) { in isMinimalPostProcessingRequested() argument
62 return mDm.isMinimalPostProcessingRequested(displayId); in isMinimalPostProcessingRequested()
70 final int displayId = getDisplayId(name); in assertDisplayRequestedMinimalPostProcessing() local
71 boolean requested = isMinimalPostProcessingRequested(displayId); in assertDisplayRequestedMinimalPostProcessing()
84 boolean supported = isMinimalPostProcessingSupported(displayId); in assertDisplayRequestedMinimalPostProcessing()
DAspectRatioTestsBase.java44 void assertAspectRatio(float actual, int displayId, Point activitySize, Point displaySize); in assertAspectRatio() argument
52 final int displayId = mWmState.getDisplayByActivity(componentName); in runAspectRatioTest() local
54 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in runAspectRatioTest()
100 final int displayId = mWmState.getDisplayByActivity(componentName); in getDisplayAspectRatio() local
101 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in getDisplayAspectRatio()
110 final int displayId = mWmState.getDisplayByActivity(componentName); in getMinimalTaskSize() local
111 return mWmState.defaultMinimalTaskSize(displayId); in getMinimalTaskSize()
DFreeformWindowingModeTests.java57 int displayId = Display.DEFAULT_DISPLAY; in testFreeformWindowManagementSupport() local
59 displayId = createManagedVirtualDisplaySession() in testFreeformWindowManagementSupport()
64 launchActivityOnDisplay(FREEFORM_ACTIVITY, WINDOWING_MODE_FREEFORM, displayId); in testFreeformWindowManagementSupport()
75 WINDOWING_MODE_FREEFORM, ACTIVITY_TYPE_STANDARD, displayId); in testFreeformWindowManagementSupport()
128 final int displayId = mWmState.getStandardRootTaskByWindowingMode(WINDOWING_MODE_FREEFORM) in testActivityLifeCycleOnResizeFreeformTask() local
131 mWmState.getDisplay(displayId).getDpi(); in testActivityLifeCycleOnResizeFreeformTask()
DMultiDisplayTestBase.java130 DisplayContent getDisplayState(int displayId) { in getDisplayState() argument
131 return getDisplayState(getDisplaysStates(), displayId); in getDisplayState()
134 DisplayContent getDisplayState(List<DisplayContent> displays, int displayId) { in getDisplayState() argument
136 if (display.mId == displayId) { in getDisplayState()
206 public static ReportedDisplayMetrics getDisplayMetrics(int displayId) { in getDisplayMetrics() argument
207 return new ReportedDisplayMetrics(executeShellCommand(WM_SIZE + " -d " + displayId) in getDisplayMetrics()
208 + executeShellCommand(WM_DENSITY + " -d " + displayId), displayId); in getDisplayMetrics()
248 private ReportedDisplayMetrics(final String lines, int displayId) { in ReportedDisplayMetrics() argument
249 mDisplayId = displayId; in ReportedDisplayMetrics()
284 DisplayMetricsSession(int displayId) { in DisplayMetricsSession() argument
[all …]
DWindowFocusTests.java81 private static void sendKey(int action, int keyCode, int displayId) { in sendKey() argument
83 keyEvent.setDisplayId(displayId); in sendKey()
106 final int displayId = activity.getDisplayId(); in tapOn() local
111 downEvent.setDisplayId(displayId); in tapOn()
115 upEvent.setDisplayId(displayId); in tapOn()
376 public void onMovedToDisplay(int displayId, Configuration config) { in onMovedToDisplay() argument
378 mDisplayId = displayId; in onMovedToDisplay()
383 void waitAndAssertDisplayId(int displayId) { in waitAndAssertDisplayId() argument
385 if (mDisplayId != displayId) { in waitAndAssertDisplayId()
392 displayId, mDisplayId); in waitAndAssertDisplayId() local
[all …]
DDisplaySizeTest.java118 public void onDisplayAdded(int displayId) {} in testSizeRangesAfterSettingDisplaySize()
121 public void onDisplayRemoved(int displayId) {} in testSizeRangesAfterSettingDisplaySize()
124 public void onDisplayChanged(int displayId) { in testSizeRangesAfterSettingDisplaySize()
125 if (displayId == targetDisplayId) { in testSizeRangesAfterSettingDisplaySize()
DVirtualDisplayHelper.java133 private static void waitForDisplayState(int displayId, boolean wantOn) { in waitForDisplayState() argument
134 final String message = (displayId == DEFAULT_DISPLAY ? "default" : "virtual") in waitForDisplayState()
136 waitForOrFail(message, () -> isDisplayOn(displayId) == wantOn); in waitForDisplayState()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLiveWallpaper.java38 final int displayId = displayContext.getDisplayId(); in onCreateEngine() local
41 if (displayId != DEFAULT_DISPLAY) { in onCreateEngine()
42 final String CURRENT_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + displayId; in onCreateEngine()
DLaunchBroadcastReceiver.java55 final int displayId = extras.getInt(EXTRA_TARGET_DISPLAY); in onReceive() local
56 ActivityLauncher.checkActivityStartOnDisplay(context, displayId, componentName); in onReceive()
DPresentationActivity.java49 int displayId = intent.getExtras().getInt( in createPresentationWindow() local
53 getSystemService(DisplayManager.class).getDisplay(displayId); in createPresentationWindow()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java91 int displayId) throws Exception { in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() argument
93 options.setLaunchDisplayId(displayId); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
110 uiAutomation, activityLauncher, displayId); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
127 UiAutomation uiAutomation, CharSequence title, int displayId) { in findWindowByTitleAndDisplay() argument
130 final List<AccessibilityWindowInfo> windowsOfDisplay = allWindows.get(displayId); in findWindowByTitleAndDisplay()
255 ActivityLauncher activityLauncher, int displayId) throws Exception { in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() argument
267 if (displayId == Display.DEFAULT_DISPLAY) { in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
284 findWindowByTitleAndDisplay(uiAutomation, activityTitle, displayId); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/
DEmbeddingActivity.java65 final int displayId = extras.getInt(EXTRA_EMBEDDING_TARGET_DISPLAY); in onReceive() local
67 ActivityLauncher.checkActivityStartOnDisplay(EmbeddingActivity.this, displayId, in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DHotplugTestActivity.java173 public void onDisplayAdded(int displayId) { in onDisplayAdded() argument
178 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
183 public void onDisplayChanged(int displayId) { in onDisplayChanged() argument
184 getAsserter().that(displayId).isEqualTo(Display.DEFAULT_DISPLAY); in onDisplayChanged()

12