/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ |
D | ActivityManagerReplaceWindowTests.java | 57 final String activityName = in testReplaceWindow_Dock() local 59 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock() 60 final String amStartCmd = getAmStartCmd(activityName); in testReplaceWindow_Dock() 69 if (SLOW_CREATE_ACTIVITY_NAME.equals(activityName)) { in testReplaceWindow_Dock() 74 final String oldToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 77 final int taskId = getActivityTaskId(activityName); in testReplaceWindow_Dock() 85 final String newToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 91 private String getWindowToken(String windowName, String activityName) in getWindowToken() argument 93 mAmWmState.computeState(mDevice, new String[] {activityName}); in getWindowToken() 95 mAmWmState.assertVisibility(activityName, true); in getWindowToken()
|
D | ActivityManagerConfigChangeTests.java | 77 String activityName, int rotationStep, int numRelaunch, int numConfigChange) in testRotation() argument 79 launchActivity(activityName); in testRotation() 81 final String[] waitForActivitiesVisible = new String[] {activityName}; in testRotation() 88 activityName).mStackId; in testRotation() 104 assertRelaunchOrConfigChanged(activityName, numRelaunch, numConfigChange, logSeparator); in testRotation() 109 String activityName, boolean relaunch) throws Exception { in testChangeFontScale() argument 110 launchActivity(activityName); in testChangeFontScale() 111 final String[] waitForActivitiesVisible = new String[] {activityName}; in testChangeFontScale() 123 assertRelaunchOrConfigChanged(activityName, relaunch ? 1 : 0, relaunch ? 0 : 1, in testChangeFontScale() 128 assertExpectedFontPixelSize(activityName, in testChangeFontScale() [all …]
|
D | ActivityManagerManifestLayoutTests.java | 93 final String activityName = "BottomRightLayoutActivity"; in testMinimalSize() local 98 launchActivityInStack(activityName, stackId); in testMinimalSize() 99 resizeActivityTask(activityName, 0, 0, 1, 1); in testMinimalSize() 101 launchActivityInDockStack(activityName); in testMinimalSize() 104 getDisplayAndWindowState(activityName, false); in testMinimalSize() 121 final String activityName = (vGravity == GRAVITY_VER_TOP ? "Top" : "Bottom") in testLayout() local 125 launchActivityInStack(activityName, FREEFORM_WORKSPACE_STACK_ID); in testLayout() 127 getDisplayAndWindowState(activityName, true); in testLayout() 148 private void getDisplayAndWindowState(String activityName, boolean checkFocus) in getDisplayAndWindowState() argument 150 final String windowName = getWindowName(activityName); in getDisplayAndWindowState() [all …]
|
D | ActivityManagerAppConfigurationTests.java | 212 private void moveActivityFullSplitFull(String activityName) throws Exception { in moveActivityFullSplitFull() argument 220 launchActivityInStack(activityName, FULLSCREEN_WORKSPACE_STACK_ID); in moveActivityFullSplitFull() 221 final ReportedSizes initialFullscreenSizes = getActivityDisplaySize(activityName, in moveActivityFullSplitFull() 223 final Rectangle displayRect = getDisplayRect(activityName); in moveActivityFullSplitFull() 227 moveActivityToStack(activityName, DOCKED_STACK_ID); in moveActivityFullSplitFull() 228 final ReportedSizes dockedSizes = getActivityDisplaySize(activityName, logSeparator); in moveActivityFullSplitFull() 232 launchActivityInStack(activityName, DOCKED_STACK_ID); in moveActivityFullSplitFull() 233 mAmWmState.computeState(mDevice, new String[] { activityName }, in moveActivityFullSplitFull() 242 moveActivityToStack(activityName, FULLSCREEN_WORKSPACE_STACK_ID); in moveActivityFullSplitFull() 243 final ReportedSizes finalFullscreenSizes = getActivityDisplaySize(activityName, in moveActivityFullSplitFull() [all …]
|
D | DisplaySizeTest.java | 145 private void startActivity(String packageName, String activityName) in startActivity() argument 147 mDevice.executeShellCommand(getStartCommand(packageName, activityName)); in startActivity() 150 private void startOtherActivityOnTop(String packageName, String activityName) in startOtherActivityOnTop() argument 152 final String startCmd = getStartCommand(packageName, activityName) in startOtherActivityOnTop() 157 private String getStartCommand(String packageName, String activityName) { in getStartCommand() argument 158 return String.format(AM_START_COMMAND, packageName, packageName, activityName); in getStartCommand()
|
D | ActivityManagerAmStartOptionsTests.java | 156 String activityName = null; in verifyLogcat() local 163 activityName = matcher.group(2); in verifyLogcat() 166 if (!activityName.startsWith("android.server.cts")) { in verifyLogcat() 170 fail("Shouldn't display anything but displayed " + activityName); in verifyLogcat() 179 } else if (!expectedActivityName.equals(activityName)) { in verifyLogcat() 181 " but displayed " + activityName); in verifyLogcat()
|
D | KeyguardTestBase.java | 52 private void assertInLogcat(String activityName, String entry, String logSeparator) in assertInLogcat() argument 57 final String[] lines = getDeviceLogsForComponent(activityName, logSeparator); in assertInLogcat()
|
D | ActivityManagerPinnedStackTests.java | 1055 private Rectangle readAppBounds(String activityName, String logSeparator) throws Exception { in readAppBounds() argument 1056 final String[] lines = getDeviceLogsForComponent(activityName, logSeparator); in readAppBounds() 1077 private void assertPinnedStackStateOnMoveToFullscreen(String activityName, int focusedStackId, in assertPinnedStackStateOnMoveToFullscreen() argument 1082 mAmWmState.waitForActivityState(mDevice, activityName, STATE_STOPPED); in assertPinnedStackStateOnMoveToFullscreen() 1083 assertTrue(mAmWmState.getAmState().hasActivityState(activityName, STATE_STOPPED)); in assertPinnedStackStateOnMoveToFullscreen() 1090 activityName))); in assertPinnedStackStateOnMoveToFullscreen() 1096 activityName))); in assertPinnedStackStateOnMoveToFullscreen() 1161 private void assertValidPictureInPictureCallbackOrder(String activityName, String logSeparator) in assertValidPictureInPictureCallbackOrder() argument 1163 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(activityName, in assertValidPictureInPictureCallbackOrder() 1167 fail(activityName + " has received " + lifecycleCounts.mConfigurationChangedCount in assertValidPictureInPictureCallbackOrder() [all …]
|
D | ActivityAndWindowManagerOverrideConfigTests.java | 43 private boolean findConfigurationChange(String activityName, String logSeparator) in findConfigurationChange() argument 48 final String[] lines = getDeviceLogsForComponent(activityName, logSeparator); in findConfigurationChange()
|
D | ActivityManagerDisplayTests.java | 1100 private int readConfigChangeNumber(String activityName, String logSeparator) throws Exception { in readConfigChangeNumber() argument 1101 return (new ActivityLifecycleCounts(activityName, logSeparator)).mConfigurationChangedCount; in readConfigChangeNumber() 1200 private void rotateAndCheckSameSizes(String activityName) throws Exception { in rotateAndCheckSameSizes() argument 1204 final ReportedSizes rotatedSizes = getLastReportedSizesForActivity(activityName, in rotateAndCheckSameSizes()
|
D | ActivityManagerDockedStackTests.java | 552 private void launchActivityInDockStackAndMinimize(String activityName) throws Exception { in launchActivityInDockStackAndMinimize() argument 553 launchActivityInDockStack(activityName); in launchActivityInDockStackAndMinimize()
|
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/ |
D | ActivityManagerTestBase.java | 147 protected static String getAmStartCmd(final String activityName) { in getAmStartCmd() argument 148 return "am start -n " + getActivityComponentName(activityName); in getAmStartCmd() 155 protected static String getAmStartCmd(final String activityName, in getAmStartCmd() argument 157 String base = getAmStartCmd(activityName); in getAmStartCmd() 167 protected static String getAmStartCmd(final String activityName, final int displayId) { in getAmStartCmd() argument 168 return "am start -n " + getActivityComponentName(activityName) + " -f 0x18000000" in getAmStartCmd() 172 protected static String getAmStartCmdInNewTask(final String activityName) { in getAmStartCmdInNewTask() argument 173 return "am start -n " + getActivityComponentName(activityName) + " -f 0x18000000"; in getAmStartCmdInNewTask() 176 protected static String getAmStartCmdOverHome(final String activityName) { in getAmStartCmdOverHome() argument 177 return "am start --activity-task-on-home -n " + getActivityComponentName(activityName); in getAmStartCmdOverHome() [all …]
|
D | ActivityAndWindowManagersState.java | 251 void waitForActivityState(ITestDevice device, String activityName, String activityState) in waitForActivityState() argument 253 waitForWithAmState(device, state -> state.hasActivityState(activityName, activityState), in waitForActivityState() 482 void assertFocusedActivity(String msg, String activityName) throws Exception { in assertFocusedActivity() argument 483 assertFocusedActivity(msg, componentName, activityName); in assertFocusedActivity() 486 void assertFocusedActivity(String msg, String packageName, String activityName) in assertFocusedActivity() argument 489 activityName); in assertFocusedActivity() 494 void assertNotFocusedActivity(String msg, String activityName) throws Exception { in assertNotFocusedActivity() argument 495 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertNotFocusedActivity() 504 void assertResumedActivity(String msg, String activityName) throws Exception { in assertResumedActivity() argument 505 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertResumedActivity() [all …]
|
D | ActivityManagerState.java | 255 boolean containsActivity(String activityName) { in containsActivity() argument 259 if (activity.name.equals(activityName)) { in containsActivity() 268 boolean isActivityVisible(String activityName) { in isActivityVisible() argument 272 if (activity.name.equals(activityName)) { in isActivityVisible() 281 boolean hasActivityState(String activityName, String activityState) { in hasActivityState() argument 282 String fullName = ActivityManagerTestBase.getActivityComponentName(activityName); in hasActivityState() 295 int getActivityProcId(String activityName) { in getActivityProcId() argument 299 if (activity.name.equals(activityName)) { in getActivityProcId() 363 ActivityTask getTaskByActivityName(String activityName) { in getTaskByActivityName() argument 364 return getTaskByActivityName(activityName, -1); in getTaskByActivityName() [all …]
|
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/ |
D | ParentChildTestBase.java | 35 String cmd = getAmStartCmd(activityName(), intentKey(), testCase); in startTestCase() 42 String cmd = getAmStartCmd(activityName(), intentKey(), testCase); in startTestCaseDocked() 45 moveActivityToDockStack(activityName()); in startTestCaseDocked() 49 abstract String activityName(); in activityName() method in ParentChildTestBase
|
D | CrossAppDragAndDropTests.java | 164 private String getComponentName(String packageName, String activityName) { in getComponentName() argument 165 return packageName + "/" + packageName + "." + activityName; in getComponentName() 197 private void launchDockedActivity(String packageName, String activityName, String mode) in launchDockedActivity() argument 200 final String componentName = getComponentName(packageName, activityName); in launchDockedActivity() 202 waitForResume(packageName, activityName); in launchDockedActivity() 205 private void launchFullscreenActivity(String packageName, String activityName, String mode) in launchFullscreenActivity() argument 208 final String componentName = getComponentName(packageName, activityName); in launchFullscreenActivity() 211 waitForResume(packageName, activityName); in launchFullscreenActivity() 219 private void launchFreeformActivity(String packageName, String activityName, String mode, in launchFreeformActivity() argument 222 final String componentName = getComponentName(packageName, activityName); in launchFreeformActivity() [all …]
|
D | AlertWindowsTests.java | 97 private void runAlertWindowTest(String packageName, String activityName, in runAlertWindowTest() argument 102 executeShellCommand(getAmStartCmd(activityName)); in runAlertWindowTest() 103 mAmWmState.computeState(mDevice, new String[] { activityName }); in runAlertWindowTest() 104 mAmWmState.assertVisibility(activityName, true); in runAlertWindowTest()
|
D | ChildMovementTests.java | 44 String activityName() { in activityName() method in ChildMovementTests 75 WindowState parent = getSingleWindow(getBaseWindowName() + activityName()); in doSingleTest()
|
D | DialogFrameTests.java | 37 String activityName() { in activityName() method in DialogFrameTests
|
/cts/hostsidetests/ui/control/src/android/taskswitching/control/cts/ |
D | TaskSwitchingDeviceTest.java | 97 private void startActivity(String packageName, String activityName) { in startActivity() argument 102 intent.setComponent(new ComponentName(packageName, packageName + "." + activityName)); in startActivity()
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/ |
D | VirtualDisplayActivity.java | 219 private void launchActivity(String activityName, int displayId) { in launchActivity() argument 222 extras.putString("target_activity", activityName); in launchActivity()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerCtsTestsBase.java | 513 int flags, String packageName, String activityName, in getShortcutsAsLauncher() argument 519 if (activityName != null) { in getShortcutsAsLauncher() 521 "android.content.pm.cts.shortcutmanager.packages." + activityName)); in getShortcutsAsLauncher()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 195 ComponentName activityName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetInfo() local 227 assertEquals(ACTIVITY_NAME, mPackageManager.getActivityInfo(activityName, 0).name); in testGetInfo()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ManagedProfileTest.java | 898 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser() argument 902 + " --es extra-class-name " + MANAGED_PROFILE_PKG + "." + activityName in disableActivityForUser()
|