/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AspectRatioTests.java | 135 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 …]
|
D | FreeformWindowingModeTests.java | 56 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()
|
D | VirtualDisplayHelper.java | 148 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()
|
D | WindowFocusTests.java | 80 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() 372 public void onMovedToDisplay(int displayId, Configuration config) { in onMovedToDisplay() argument 374 mDisplayId = displayId; in onMovedToDisplay() 379 void waitAndAssertDisplayId(int displayId) throws InterruptedException { in waitAndAssertDisplayId() argument 381 if (mDisplayId != displayId) { in waitAndAssertDisplayId() [all …]
|
D | WindowManagerTestBase.java | 52 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()
|
D | DisplaySizeTest.java | 131 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()
|
D | MultiDisplayTestBase.java | 100 ActivityDisplay getDisplayState(int displayId) { in getDisplayState() argument 101 return getDisplayState(getDisplaysStates(), displayId); in getDisplayState() 104 ActivityDisplay getDisplayState(List<ActivityDisplay> displays, int displayId) { in getDisplayState() argument 106 if (display.mId == displayId) { in getDisplayState() 170 public static ReportedDisplayMetrics getDisplayMetrics(int displayId) { in getDisplayMetrics() argument 171 return new ReportedDisplayMetrics(executeShellCommand(WM_SIZE + " -d " + displayId) in getDisplayMetrics() 172 + executeShellCommand(WM_DENSITY + " -d " + displayId)); in getDisplayMetrics() 242 protected void tapOnDisplayCenter(int displayId) { in tapOnDisplayCenter() argument 243 final Rect bounds = mAmWmState.getWmState().getDisplay(displayId).getDisplayRect(); in tapOnDisplayCenter() 244 tapOnDisplay(bounds.centerX(), bounds.centerY(), displayId); in tapOnDisplayCenter() local [all …]
|
D | AnimationBackgroundTests.java | 83 final int displayId = mAmWmState.getAmState().getDisplayByActivity(activity); in assumeActivityNotInFreeformDisplay() local 84 final Display display = mAmWmState.getWmState().getDisplay(displayId); in assumeActivityNotInFreeformDisplay()
|
D | MultiDisplayKeyguardTests.java | 121 private boolean isKeyguardOnDisplay(WindowManagerState windowManagerState, int displayId) { in isKeyguardOnDisplay() argument 125 if (ws.getDisplayId() == displayId) return true; in isKeyguardOnDisplay()
|
D | AppConfigurationTests.java | 191 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() 578 final int displayId = mAmWmState.getAmState().getDisplayByActivity(RESIZEABLE_ACTIVITY); in testAppOrientationWhenRotating() local 584 supportsLockedUserRotation(rotationSession, displayId)); in testAppOrientationWhenRotating() 626 final int displayId = mAmWmState.getAmState() in testFixedOrientationWhenRotating() local 632 supportsLockedUserRotation(rotationSession, displayId)); in testFixedOrientationWhenRotating()
|
D | DisplayTests.java | 203 DisplayMetricsSession(int displayId) throws Exception { in DisplayMetricsSession() argument 204 mDisplayId = displayId; in DisplayMetricsSession()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityAndWindowManagersState.java | 342 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 …]
|
D | ActivityManagerState.java | 199 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 …]
|
D | ActivityLauncher.java | 171 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()
|
D | ActivityManagerTestBase.java | 263 protected static String getAmStartCmd(final ComponentName activityName, final int displayId, in getAmStartCmd() argument 265 return getAmStartCmdInternal(getActivityName(activityName), displayId, keyValuePair); in getAmStartCmd() 268 private static String getAmStartCmdInternal(final String activityName, final int displayId, in getAmStartCmdInternal() argument 276 .append(displayId), in getAmStartCmdInternal() 363 void launchTestActivityOnDisplaySync(Class<T> activityClass, int displayId) { in launchTestActivityOnDisplaySync() argument 364 launchTestActivityOnDisplaySync(new Intent(mContext, activityClass), displayId); in launchTestActivityOnDisplaySync() 367 void launchTestActivityOnDisplaySync(Intent intent, int displayId) { in launchTestActivityOnDisplaySync() argument 370 .setLaunchDisplayId(displayId).toBundle(); in launchTestActivityOnDisplaySync() 379 waitAndAssertTopResumedActivity(testActivityName, displayId, in launchTestActivityOnDisplaySync() 459 protected void startActivityOnDisplay(int displayId, ComponentName component) { in startActivityOnDisplay() argument [all …]
|
D | WindowManagerState.java | 346 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 …]
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | LiveWallpaper.java | 38 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()
|
D | LaunchBroadcastReceiver.java | 55 final int displayId = extras.getInt(EXTRA_TARGET_DISPLAY); in onReceive() local 56 ActivityLauncher.checkActivityStartOnDisplay(context, displayId, componentName); in onReceive()
|
D | VirtualDisplayActivity.java | 220 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()
|
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/ |
D | EmbeddingActivity.java | 65 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/ |
D | poc.cpp | 59 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/ |
D | ActivityManagerState.java | 275 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()
|
D | ActivityAndWindowManagersState.java | 546 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/framework/base/windowmanager/testsdk25/src/android/server/wm/ |
D | AspectRatioSdk25Tests.java | 50 runAspectRatioTest(mSdk25MaxAspectRatioActivity, (actual, displayId, size) -> { in testMaxAspectRatioPreOActivity()
|
/cts/tests/framework/base/windowmanager/testsdk28/src/android/server/wm/ |
D | AspectRatioSdk28Tests.java | 62 runAspectRatioTest(mSdk28MinAspectRatioActivity, (actual, displayId, size) -> { in testMaxAspectRatioPreQActivity()
|