Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTests.java135 runAspectRatioTest(mMaxAspectRatioActivity, (actual, displayId, size) -> { in testMaxAspectRatio()
143 runAspectRatioTest(mMetaDataMaxAspectRatioActivity, (actual, displayId, size) -> { in testMetaDataMaxAspectRatio()
151 runAspectRatioTest(mMaxAspectRatioResizeableActivity, (actual, displayId, size) -> { in testMaxAspectRatioResizeableActivity()
153 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMaxAspectRatioResizeableActivity()
164 runAspectRatioTest(mMaxAspectRatioUnsetActivity, (actual, displayId, size) -> { in testMaxAspectRatioUnsetActivity()
166 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMaxAspectRatioUnsetActivity()
175 runAspectRatioTest(mMinAspectRatioActivity, (actual, displayId, size) -> { in testMinAspectRatio()
183 runAspectRatioTest(mMinAspectRatioResizeableActivity, (actual, displayId, size) -> { in testMinAspectRatioResizeableActivity()
185 assumeThat(displayId, is(Display.DEFAULT_DISPLAY)); in testMinAspectRatioResizeableActivity()
195 runAspectRatioTest(mMinAspectRatioUnsetActivity, (actual, displayId, size) -> { in testMinAspectRatioUnsetActivity()
[all …]
DFreeformWindowingModeTests.java56 int displayId = Display.DEFAULT_DISPLAY; in testFreeformWindowManagementSupport() local
62 displayId = display.mId; in testFreeformWindowManagementSupport()
64 launchActivityOnDisplay(FREEFORM_ACTIVITY, WINDOWING_MODE_FREEFORM, displayId); in testFreeformWindowManagementSupport()
75 WINDOWING_MODE_FREEFORM, ACTIVITY_TYPE_STANDARD, displayId); in testFreeformWindowManagementSupport()
120 final int displayId = mAmWmState.getAmState().getStandardStackByWindowingMode( in testActivityLifeCycleOnResizeFreeformTask() local
123 mAmWmState.getWmState().getDisplay(displayId).getDpi(); in testActivityLifeCycleOnResizeFreeformTask()
DVirtualDisplayHelper.java148 private static void waitForDisplayState(int displayId, boolean wantOn) { in waitForDisplayState() argument
149 waitForDisplayCondition(displayId, state -> state != null && state == wantOn, in waitForDisplayState()
150 "Waiting for " + ((displayId == DEFAULT_DISPLAY) ? "default" : "virtual") in waitForDisplayState()
155 private static void waitForDisplayCondition(int displayId, in waitForDisplayCondition() argument
158 if (condition.test(isDisplayOn(displayId))) { in waitForDisplayCondition()
DWindowFocusTests.java80 private static void sendKey(int action, int keyCode, int displayId) { in sendKey() argument
82 keyEvent.setDisplayId(displayId); in sendKey()
103 private static void tapOnCenterOfDisplay(int displayId) { in tapOnCenterOfDisplay() argument
107 .getDisplay(displayId) in tapOnCenterOfDisplay()
114 downEvent.setDisplayId(displayId); in tapOnCenterOfDisplay()
118 upEvent.setDisplayId(displayId); in tapOnCenterOfDisplay()
373 public void onMovedToDisplay(int displayId, Configuration config) { in onMovedToDisplay() argument
375 mDisplayId = displayId; in onMovedToDisplay()
380 void waitAndAssertDisplayId(int displayId) throws InterruptedException { in waitAndAssertDisplayId() argument
382 if (mDisplayId != displayId) { in waitAndAssertDisplayId()
[all …]
DMultiDisplayTestBase.java101 ActivityDisplay getDisplayState(int displayId) { in getDisplayState() argument
102 return getDisplayState(getDisplaysStates(), displayId); in getDisplayState()
105 ActivityDisplay getDisplayState(List<ActivityDisplay> displays, int displayId) { in getDisplayState() argument
107 if (display.mId == displayId) { in getDisplayState()
171 public static ReportedDisplayMetrics getDisplayMetrics(int displayId) { in getDisplayMetrics() argument
172 return new ReportedDisplayMetrics(executeShellCommand(WM_SIZE + " -d " + displayId) in getDisplayMetrics()
173 + executeShellCommand(WM_DENSITY + " -d " + displayId)); in getDisplayMetrics()
243 protected void tapOnDisplayCenter(int displayId) { in tapOnDisplayCenter() argument
244 final Rect bounds = mAmWmState.getWmState().getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenter()
245 tapOnDisplay(bounds.centerX(), bounds.centerY(), displayId); in tapOnDisplayCenter() local
[all …]
DWindowManagerTestBase.java52 static <T extends FocusableActivity> T startActivity(Class<T> cls, int displayId) in startActivity() argument
54 final Bundle options = (displayId == DEFAULT_DISPLAY in startActivity()
55 ? null : ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle()); in startActivity()
DDisplaySizeTest.java131 public void onDisplayAdded(int displayId) {} in testSizeRangesAfterSettingDisplaySize()
134 public void onDisplayRemoved(int displayId) {} in testSizeRangesAfterSettingDisplaySize()
137 public void onDisplayChanged(int displayId) { in testSizeRangesAfterSettingDisplaySize()
138 if (displayId == targetDisplayId) { in testSizeRangesAfterSettingDisplaySize()
DAnimationBackgroundTests.java83 final int displayId = mAmWmState.getAmState().getDisplayByActivity(activity); in assumeActivityNotInFreeformDisplay() local
84 final Display display = mAmWmState.getWmState().getDisplay(displayId); in assumeActivityNotInFreeformDisplay()
DMultiDisplayKeyguardTests.java121 private boolean isKeyguardOnDisplay(WindowManagerState windowManagerState, int displayId) { in isKeyguardOnDisplay() argument
125 if (ws.getDisplayId() == displayId) return true; in isKeyguardOnDisplay()
DAppConfigurationTests.java191 final int displayId = mAmWmState.getAmState().getStackById(task.mStackId).mDisplayId; in rotateAndCheckSizes() local
193 assumeTrue(supportsLockedUserRotation(rotationSession, displayId)); in rotateAndCheckSizes()
199 final int newDeviceRotation = getDeviceRotation(displayId); in rotateAndCheckSizes()
584 final int displayId = mAmWmState.getAmState().getDisplayByActivity(RESIZEABLE_ACTIVITY); in testAppOrientationWhenRotating() local
590 supportsLockedUserRotation(rotationSession, displayId)); in testAppOrientationWhenRotating()
632 final int displayId = mAmWmState.getAmState() in testFixedOrientationWhenRotating() local
638 supportsLockedUserRotation(rotationSession, displayId)); in testFixedOrientationWhenRotating()
DDisplayTests.java204 DisplayMetricsSession(int displayId) throws Exception { in DisplayMetricsSession() argument
205 mDisplayId = displayId; in DisplayMetricsSession()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityAndWindowManagersState.java342 void waitForAppTransitionIdleOnDisplay(int displayId) { in waitForAppTransitionIdleOnDisplay() argument
345 state.getDisplay(displayId).getAppTransitionState()), in waitForAppTransitionIdleOnDisplay()
346 "***Waiting for app transition idle on Display " + displayId + " ..."); in waitForAppTransitionIdleOnDisplay()
350 void waitAndAssertNavBarShownOnDisplay(int displayId) { in waitAndAssertNavBarShownOnDisplay() argument
352 state -> state.getAndAssertSingleNavBarWindowOnDisplay(displayId) != null, in waitAndAssertNavBarShownOnDisplay()
353 "***Waiting for navigation bar #" + displayId + " show..."); in waitAndAssertNavBarShownOnDisplay()
354 final WindowState ws = getWmState().getAndAssertSingleNavBarWindowOnDisplay(displayId); in waitAndAssertNavBarShownOnDisplay()
582 void assertFrontStackOnDisplay(String msg, int windowingMode, int activityType, int displayId) { in assertFrontStackOnDisplay() argument
585 mAmState.getFrontStackWindowingMode(displayId)); in assertFrontStackOnDisplay()
588 assertEquals(msg, activityType, mAmState.getFrontStackActivityType(displayId)); in assertFrontStackOnDisplay()
[all …]
DActivityManagerState.java199 ActivityDisplay getDisplay(int displayId) { in getDisplay() argument
201 if (display.mId == displayId) { in getDisplay()
208 int getFrontStackId(int displayId) { in getFrontStackId() argument
209 return getDisplay(displayId).mStacks.get(0).mStackId; in getFrontStackId()
212 int getFrontStackActivityType(int displayId) { in getFrontStackActivityType() argument
213 return getDisplay(displayId).mStacks.get(0).getActivityType(); in getFrontStackActivityType()
216 int getFrontStackWindowingMode(int displayId) { in getFrontStackWindowingMode() argument
217 return getDisplay(displayId).mStacks.get(0).getWindowingMode(); in getFrontStackWindowingMode()
220 public String getTopActivityName(int displayId) { in getTopActivityName() argument
221 if (!getDisplay(displayId).mStacks.isEmpty()) { in getTopActivityName()
[all …]
DActivityManagerTestBase.java264 protected static String getAmStartCmd(final ComponentName activityName, final int displayId, in getAmStartCmd() argument
266 return getAmStartCmdInternal(getActivityName(activityName), displayId, keyValuePair); in getAmStartCmd()
269 private static String getAmStartCmdInternal(final String activityName, final int displayId, in getAmStartCmdInternal() argument
277 .append(displayId), in getAmStartCmdInternal()
364 void launchTestActivityOnDisplaySync(Class<T> activityClass, int displayId) { in launchTestActivityOnDisplaySync() argument
365 launchTestActivityOnDisplaySync(new Intent(mContext, activityClass), displayId); in launchTestActivityOnDisplaySync()
368 void launchTestActivityOnDisplaySync(Intent intent, int displayId) { in launchTestActivityOnDisplaySync() argument
371 .setLaunchDisplayId(displayId).toBundle(); in launchTestActivityOnDisplaySync()
380 waitAndAssertTopResumedActivity(testActivityName, displayId, in launchTestActivityOnDisplaySync()
460 protected void startActivityOnDisplay(int displayId, ComponentName component) { in startActivityOnDisplay() argument
[all …]
DActivityLauncher.java171 final int displayId = extras.getInt(KEY_DISPLAY_ID, -1); in launchActivityFromExtras() local
172 if (displayId != -1) { in launchActivityFromExtras()
174 options.setLaunchDisplayId(displayId); in launchActivityFromExtras()
232 public static void checkActivityStartOnDisplay(Context context, int displayId, in checkActivityStartOnDisplay() argument
237 .isActivityStartAllowedOnDisplay(context, displayId, launchIntent); in checkActivityStartOnDisplay()
DWindowManagerState.java346 WindowState getAndAssertSingleNavBarWindowOnDisplay(int displayId) { in getAndAssertSingleNavBarWindowOnDisplay() argument
348 isValidNavBarType(ws) && ws.getDisplayId() == displayId) in getAndAssertSingleNavBarWindowOnDisplay()
396 Display getDisplay(int displayId) { in getDisplay() argument
398 if (displayId == display.getDisplayId()) { in getDisplay()
432 int getFrontStackId(int displayId) { in getFrontStackId() argument
433 return mDisplayStacks.get(displayId).get(0).mStackId; in getFrontStackId()
436 int getFrontStackActivityType(int displayId) { in getFrontStackActivityType() argument
437 return mDisplayStacks.get(displayId).get(0).getActivityType(); in getFrontStackActivityType()
536 for (Integer displayId : mDisplayStacks.keySet()) { in getStackIndexByActivityType()
537 List<WindowStack> stacks = mDisplayStacks.get(displayId); in getStackIndexByActivityType()
[all …]
DCommandSession.java884 public void onMovedToDisplay(int displayId, Configuration config) {
885 super.onMovedToDisplay(displayId, config);
966 public int displayId = Display.INVALID_DISPLAY;
980 displayId = display.getDisplayId();
988 return "ConfigInfo: {displayId=" + displayId + " rotation=" + rotation
999 dest.writeInt(displayId);
1005 displayId = in.readInt();
/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()
DVirtualDisplayActivity.java220 final int displayId = virtualDisplay.getDisplay().getDisplayId(); in surfaceCreated() local
222 + getActivityName(targetActivity) + ", displayId=" + displayId); in surfaceCreated()
223 launchActivity(targetActivity, displayId); in surfaceCreated()
253 private void launchActivity(ComponentName activityName, int displayId) { in launchActivity() argument
257 extras.putInt(KEY_DISPLAY_ID, displayId); in launchActivity()
DLaunchBroadcastReceiver.java55 final int displayId = extras.getInt(EXTRA_TARGET_DISPLAY); in onReceive() local
56 ActivityLauncher.checkActivityStartOnDisplay(context, displayId, componentName); in onReceive()
/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/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp59 outMsg->body.key.displayId = msg.body.key.displayId; in sanitizeMessage()
86 outMsg->body.motion.displayId = msg.body.motion.displayId; in sanitizeMessage()
/cts/tests/tests/keystore/src/android/server/am/
DActivityManagerState.java275 mDisplayId = proto.displayId; in ActivityStack()
391 mKeyguardOccludedStates.append(proto.keyguardOccludedStates[i].displayId, in KeyguardControllerState()
397 boolean isKeyguardOccluded(int displayId) { in isKeyguardOccluded() argument
398 if (mKeyguardOccludedStates.get(displayId) != null) { in isKeyguardOccluded()
399 return mKeyguardOccludedStates.get(displayId); in isKeyguardOccluded()
DActivityAndWindowManagersState.java546 boolean isScreenPortrait(int displayId) { in isScreenPortrait() argument
547 final Rect displayRect = mWmState.getDisplay(displayId).getDisplayRect(); in isScreenPortrait()
555 private int defaultMinimalTaskSize(int displayId) { in defaultMinimalTaskSize() argument
556 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
559 private int defaultMinimalPinnedTaskSize(int displayId) { in defaultMinimalPinnedTaskSize() argument
560 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java336 public void onDisplayAdded(int displayId) {}
339 public void onDisplayChanged(int displayId) {
340 if (displayId == display.getDisplayId()) {
346 public void onDisplayRemoved(int displayId) {}

12