/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ConfigChangeTests.java | 152 private void testRotation180WithCutout(ComponentName activityName, @TestMode int testMode) in testRotation180WithCutout() argument 154 launchActivity(activityName); in testRotation180WithCutout() 155 mAmWmState.computeState(activityName); in testRotation180WithCutout() 158 final StateCount count1 = getStateCountForRotation(activityName, rotationSession, in testRotation180WithCutout() 160 final StateCount count2 = getStateCountForRotation(activityName, rotationSession, in testRotation180WithCutout() 195 private StateCount getStateCountForRotation(ComponentName activityName, RotationSession session, in getStateCountForRotation() argument 200 mAmWmState.computeState(activityName); in getStateCountForRotation() 201 final ActivityLifecycleCounts counter = new ActivityLifecycleCounts(activityName); in getStateCountForRotation() 205 boolean resize = getLastReportedSizesForActivity(activityName) != null; in getStateCountForRotation() 234 private void testRotation(ComponentName activityName, int rotationStep, int numRelaunch, in testRotation() argument [all …]
|
D | ReplaceWindowTests.java | 64 final ComponentName activityName = relaunch ? SLOW_CREATE_ACTIVITY : NO_RELAUNCH_ACTIVITY; in testReplaceWindow_Dock() local 65 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock() 66 final String amStartCmd = getAmStartCmd(activityName); in testReplaceWindow_Dock() 79 final String oldToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 82 setActivityTaskWindowingMode(activityName, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in testReplaceWindow_Dock() 88 final String newToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 94 private String getWindowToken(String windowName, ComponentName activityName) throws Exception { in getWindowToken() argument 95 mAmWmState.computeState(activityName); in getWindowToken() 97 mAmWmState.assertVisibility(activityName, true); in getWindowToken()
|
D | AlertWindowsTests.java | 125 private void runAlertWindowTest(final ComponentName activityName, in runAlertWindowTest() argument 127 setAlertWindowPermission(activityName, hasAlertWindowPermission); in runAlertWindowTest() 129 executeShellCommand(getAmStartCmd(activityName)); in runAlertWindowTest() 130 mAmWmState.computeState(new WaitForValidActivityState(activityName)); in runAlertWindowTest() 131 mAmWmState.assertVisibility(activityName, true); in runAlertWindowTest() 133 assertAlertWindows(activityName, hasAlertWindowPermission, atLeastO); in runAlertWindowTest() 145 private void assertAlertWindows(final ComponentName activityName, in assertAlertWindows() argument 147 final String packageName = activityName.getPackageName(); in assertAlertWindows() 216 private void resetPermissionState(ComponentName activityName) throws Exception { in resetPermissionState() argument 217 AppOpsUtils.reset(activityName.getPackageName()); in resetPermissionState() [all …]
|
D | MultiDisplayClientTests.java | 95 final ComponentName activityName = activity.getComponentName(); in testDisplayIdUpdateOnMove() local 96 waitAndAssertResume(activityName); in testDisplayIdUpdateOnMove() 111 waitAndAssertTopResumedActivity(activityName, newDisplay.mId, in testDisplayIdUpdateOnMove() 116 waitAndAssertConfigurationChange(activityName); in testDisplayIdUpdateOnMove() 119 waitAndAssertResume(activityName); in testDisplayIdUpdateOnMove() 130 private void waitAndAssertConfigurationChange(ComponentName activityName) { in waitAndAssertConfigurationChange() argument 132 getCallbackCount(activityName, ON_CONFIGURATION_CHANGED) == 1, in waitAndAssertConfigurationChange() 135 getCallbackCount(activityName, ON_CONFIGURATION_CHANGED)); in waitAndAssertConfigurationChange() 138 private void waitAndAssertResume(ComponentName activityName) { in waitAndAssertResume() argument 140 getCallbackCount(activityName, ON_RESUME) == 1, "waitForResume"); in waitAndAssertResume() [all …]
|
D | ManifestLayoutTests.java | 129 final ComponentName activityName; in testLayout() local 131 activityName = (hGravity == GRAVITY_HOR_LEFT) ? TOP_LEFT_LAYOUT_ACTIVITY in testLayout() 134 activityName = (hGravity == GRAVITY_HOR_LEFT) ? BOTTOM_LEFT_LAYOUT_ACTIVITY in testLayout() 139 launchActivity(activityName, WINDOWING_MODE_FREEFORM); in testLayout() 141 getDisplayAndWindowState(activityName, true); in testLayout() 162 private void getDisplayAndWindowState(ComponentName activityName, boolean checkFocus) in getDisplayAndWindowState() argument 164 final String windowName = getWindowName(activityName); in getDisplayAndWindowState() 166 mAmWmState.computeState(activityName); in getDisplayAndWindowState() 171 mAmWmState.assertVisibility(activityName, true); in getDisplayAndWindowState()
|
D | AppConfigurationTests.java | 237 private void moveActivityFullSplitFull(ComponentName activityName) { in moveActivityFullSplitFull() argument 242 launchActivity(activityName, WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY); in moveActivityFullSplitFull() 243 final SizeInfo initialFullscreenSizes = getActivityDisplaySize(activityName); in moveActivityFullSplitFull() 244 final Rect displayRect = getDisplayRect(activityName); in moveActivityFullSplitFull() 248 setActivityTaskWindowingMode(activityName, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in moveActivityFullSplitFull() 249 final SizeInfo dockedSizes = getActivityDisplaySize(activityName); in moveActivityFullSplitFull() 253 launchActivity(activityName, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in moveActivityFullSplitFull() 255 new WaitForValidActivityState.Builder(activityName).build()); in moveActivityFullSplitFull() 266 setActivityTaskWindowingMode(activityName, in moveActivityFullSplitFull() 268 final SizeInfo finalFullscreenSizes = getActivityDisplaySize(activityName); in moveActivityFullSplitFull() [all …]
|
D | AmProfileTests.java | 125 private static String getStartCmd(final ComponentName activityName, in getStartCmd() argument 132 getActivityName(activityName), OUTPUT_FILE_PATH)); in getStartCmd() 142 " %s %s", activityName.getPackageName(), OUTPUT_FILE_PATH)); in getStartCmd() 147 private static String getStopProfileCmd(final ComponentName activityName) { in getStopProfileCmd() argument 148 return "am profile stop " + activityName.getPackageName(); in getStopProfileCmd()
|
D | PinnedStackTests.java | 1260 private Rect getAppBounds(ComponentName activityName) { in getAppBounds() argument 1261 final Configuration config = TestJournalContainer.get(activityName).extras in getAppBounds() 1276 private void assertPinnedStackStateOnMoveToFullscreen(ComponentName activityName, in assertPinnedStackStateOnMoveToFullscreen() argument 1280 waitAndAssertActivityState(activityName, STATE_STOPPED, in assertPinnedStackStateOnMoveToFullscreen() 1283 activityName, WINDOWING_MODE_FULLSCREEN)); in assertPinnedStackStateOnMoveToFullscreen() 1313 private void assertPinnedStackActivityIsInDisplayBounds(ComponentName activityName) { in assertPinnedStackActivityIsInDisplayBounds() argument 1314 final WindowManagerState.WindowState windowState = getWindowState(activityName); in assertPinnedStackActivityIsInDisplayBounds() 1350 private void assertValidPictureInPictureCallbackOrder(ComponentName activityName) { in assertValidPictureInPictureCallbackOrder() argument 1351 final ActivityLifecycleCounts lifecycles = new ActivityLifecycleCounts(activityName); in assertValidPictureInPictureCallbackOrder() 1353 assertEquals(getActivityName(activityName) + " onConfigurationChanged()", in assertValidPictureInPictureCallbackOrder() [all …]
|
D | ParentChildTestBase.java | 44 setActivityTaskWindowingMode(activityName(), WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in startTestCaseDocked() 47 abstract ComponentName activityName(); in activityName() method in ParentChildTestBase
|
D | AssistantStackTests.java | 370 private void waitForValidStateWithActivityType(ComponentName activityName, int activityType) in waitForValidStateWithActivityType() argument 372 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForValidStateWithActivityType() 377 private void waitForValidStateWithActivityTypeAndWindowingMode(ComponentName activityName, in waitForValidStateWithActivityTypeAndWindowingMode() argument 379 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForValidStateWithActivityTypeAndWindowingMode()
|
D | DialogFrameTests.java | 72 ComponentName activityName() { in activityName() method in DialogFrameTests 92 WindowState parent = getSingleWindow(getWindowName(activityName())); in doSingleTest()
|
D | SplitScreenTests.java | 678 private void launchActivityInDockStackAndMinimize(ComponentName activityName) throws Exception { in launchActivityInDockStackAndMinimize() argument 679 launchActivityInDockStackAndMinimize(activityName, SPLIT_SCREEN_CREATE_MODE_TOP_OR_LEFT); in launchActivityInDockStackAndMinimize() 682 private void launchActivityInDockStackAndMinimize(ComponentName activityName, int createMode) in launchActivityInDockStackAndMinimize() argument 684 launchActivityInSplitScreenWithRecents(activityName, createMode); in launchActivityInDockStackAndMinimize()
|
D | MultiDisplayTestBase.java | 506 ActivitySession launchActivityOnDisplay(ComponentName activityName, in launchActivityOnDisplay() argument 508 return launchActivityOnDisplay(activityName, display, null /* extrasConsumer */, in launchActivityOnDisplay() 512 ActivitySession launchActivityOnDisplay(ComponentName activityName, in launchActivityOnDisplay() argument 522 .setTargetActivity(activityName) in launchActivityOnDisplay()
|
D | KeyguardLockedTests.java | 382 private void waitForEnterPip(ComponentName activityName) { in waitForEnterPip() argument 383 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForEnterPip()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WaitForValidActivityState.java | 39 public final ComponentName activityName; field in WaitForValidActivityState 50 public WaitForValidActivityState(final ComponentName activityName) { in WaitForValidActivityState() argument 51 this.activityName = activityName; in WaitForValidActivityState() 52 this.windowName = getWindowName(activityName); in WaitForValidActivityState() 59 this.activityName = builder.mActivityName; in WaitForValidActivityState() 69 if (activityName != null) { in toString() 70 sb.append(" activity=").append(getActivityName(activityName)); in toString() 123 public Builder(final ComponentName activityName) { in Builder() argument 124 mActivityName = activityName; in Builder() 125 mWindowName = getWindowName(activityName); in Builder()
|
D | ActivityAndWindowManagersState.java | 203 void waitForDebuggerWindowVisible(ComponentName activityName) { in waitForDebuggerWindowVisible() argument 207 if (shouldWaitForDebuggerWindow(activityName) in waitForDebuggerWindowVisible() 208 || shouldWaitForActivityRecords(activityName)) { in waitForDebuggerWindowVisible() 295 void waitForActivityOrientation(ComponentName activityName, int orientation) { in waitForActivityOrientation() argument 297 final ActivityTask task = amState.getTaskByActivity(activityName); in waitForActivityOrientation() 310 public void waitForActivityState(ComponentName activityName, String activityState) { in waitForActivityState() argument 311 waitForWithAmState(state -> state.hasActivityState(activityName, activityState), in waitForActivityState() 315 public void waitForActivityRemoved(ComponentName activityName) { in waitForActivityRemoved() argument 316 waitForWithAmState((state) -> !state.containsActivity(activityName), in waitForActivityRemoved() 318 waitForWithWmState((state) -> !state.containsWindow(getWindowName(activityName)), in waitForActivityRemoved() [all …]
|
D | ActivityManagerTestBase.java | 235 protected static String getAmStartCmd(final ComponentName activityName, in getAmStartCmd() argument 237 return getAmStartCmdInternal(getActivityName(activityName), keyValuePairs); in getAmStartCmd() 240 private static String getAmStartCmdInternal(final String activityName, in getAmStartCmdInternal() argument 243 new StringBuilder("am start -n ").append(activityName), in getAmStartCmdInternal() 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 272 .append(activityName) in getAmStartCmdInternal() 280 protected static String getAmStartCmdInNewTask(final ComponentName activityName) { in getAmStartCmdInNewTask() argument 281 return "am start -n " + getActivityName(activityName) + " -f 0x18000000"; in getAmStartCmdInNewTask() [all …]
|
D | ActivityManagerState.java | 353 int getStackIndexByActivity(ComponentName activityName) { in getStackIndexByActivity() argument 354 final String fullName = getActivityName(activityName); in getStackIndexByActivity() 396 public boolean containsActivity(ComponentName activityName) { in containsActivity() argument 397 final String fullName = getActivityName(activityName); in containsActivity() 411 for (ComponentName activityName : activityNames) { in containsNoneOf() 412 String fullName = getActivityName(activityName); in containsNoneOf() 428 boolean containsActivityInWindowingMode(ComponentName activityName, int windowingMode) { in containsActivityInWindowingMode() argument 429 final String fullName = getActivityName(activityName); in containsActivityInWindowingMode() 443 boolean isActivityVisible(ComponentName activityName) { in isActivityVisible() argument 444 final String fullName = getActivityName(activityName); in isActivityVisible() [all …]
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | WaitForValidActivityState.java | 39 public final ComponentName activityName; field in WaitForValidActivityState 50 public WaitForValidActivityState(final ComponentName activityName) { in WaitForValidActivityState() argument 51 this.activityName = activityName; in WaitForValidActivityState() 52 this.windowName = getWindowName(activityName); in WaitForValidActivityState() 59 this.activityName = builder.mActivityName; in WaitForValidActivityState() 69 if (activityName != null) { in toString() 70 sb.append(" activity=").append(getActivityName(activityName)); in toString() 123 public Builder(final ComponentName activityName) { in Builder() argument 124 mActivityName = activityName; in Builder() 125 mWindowName = getWindowName(activityName); in Builder()
|
D | ActivityManagerTestBase.java | 89 protected static String getAmStartCmd(final ComponentName activityName, in getAmStartCmd() argument 91 return getAmStartCmdInternal(getActivityName(activityName), keyValuePairs); in getAmStartCmd() 94 private static String getAmStartCmdInternal(final String activityName, in getAmStartCmdInternal() argument 97 new StringBuilder("am start -n ").append(activityName), in getAmStartCmdInternal() 153 protected void launchActivity(final ComponentName activityName, final String... keyValuePairs) { in launchActivity() argument 154 executeShellCommand(getAmStartCmd(activityName, keyValuePairs)); in launchActivity() 155 mAmWmState.waitForValidState(new WaitForValidActivityState(activityName)); in launchActivity() 167 protected void launchActivity(ComponentName activityName, int windowingMode, in launchActivity() argument 169 executeShellCommand(getAmStartCmd(activityName, keyValuePairs) in launchActivity() 171 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in launchActivity() [all …]
|
D | ActivityAndWindowManagersState.java | 236 final ComponentName activityName = state.activityName; in shouldWaitForActivities() local 247 } else if (activityName != null in shouldWaitForActivities() 248 && !mAmState.isActivityVisible(activityName)) { in shouldWaitForActivities() 249 logAlways("Activity not visible: " + getActivityName(activityName)); in shouldWaitForActivities() 339 public void assertVisibility(final ComponentName activityName, final boolean visible) { in assertVisibility() argument 340 final String windowName = getWindowName(activityName); in assertVisibility() 341 final boolean activityVisible = mAmState.isActivityVisible(activityName); in assertVisibility() 344 assertEquals("Activity=" + getActivityName(activityName) + " must" + (visible ? "" : " NOT") in assertVisibility()
|
D | ActivityManagerState.java | 205 boolean isActivityVisible(ComponentName activityName) { in isActivityVisible() argument 206 final String fullName = getActivityName(activityName); in isActivityVisible()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | LifecycleLog.java | 113 final String activityName = activityClass.getCanonicalName(); in getActivityLog() local 114 log("Looking up log for activity: " + activityName); in getActivityLog() 118 if (transition.first.equals(activityName)) { in getActivityLog()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | VirtualDisplayActivity.java | 253 private void launchActivity(ComponentName activityName, int displayId) { in launchActivity() argument 256 extras.putString(KEY_TARGET_COMPONENT, getActivityName(activityName)); in launchActivity()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerCtsTestsBase.java | 557 int flags, String packageName, String activityName, in getShortcutsAsLauncher() argument 563 if (activityName != null) { in getShortcutsAsLauncher() 565 "android.content.pm.cts.shortcutmanager.packages." + activityName)); in getShortcutsAsLauncher()
|