Home
last modified time | relevance | path

Searched refs:activityName (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerConfigChangeTests.java90 private void testRotation(ComponentName activityName, int rotationStep, int numRelaunch, in testRotation() argument
92 launchActivity(activityName); in testRotation()
94 mAmWmState.computeState(activityName); in testRotation()
99 mAmWmState.computeState(activityName); in testRotation()
101 mAmWmState.getAmState().getTaskByActivity(activityName).mStackId; in testRotation()
116 mAmWmState.computeState(activityName); in testRotation()
117 assertRelaunchOrConfigChanged(activityName, numRelaunch, numConfigChange, in testRotation()
133 ComponentName activityName, boolean relaunch) throws Exception { in testChangeFontScale() argument
137 launchActivity(activityName); in testChangeFontScale()
138 mAmWmState.computeState(activityName); in testChangeFontScale()
[all …]
DActivityManagerReplaceWindowTests.java62 final ComponentName activityName = relaunch ? SLOW_CREATE_ACTIVITY : NO_RELAUNCH_ACTIVITY; in testReplaceWindow_Dock() local
63 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock()
64 final String amStartCmd = getAmStartCmd(activityName); in testReplaceWindow_Dock()
77 final String oldToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock()
80 setActivityTaskWindowingMode(activityName, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in testReplaceWindow_Dock()
86 final String newToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock()
92 private String getWindowToken(String windowName, ComponentName activityName) throws Exception { in getWindowToken() argument
93 mAmWmState.computeState(activityName); in getWindowToken()
95 mAmWmState.assertVisibility(activityName, true); in getWindowToken()
DActivityManagerManifestLayoutTests.java127 final ComponentName activityName; in testLayout() local
129 activityName = (hGravity == GRAVITY_HOR_LEFT) ? TOP_LEFT_LAYOUT_ACTIVITY in testLayout()
132 activityName = (hGravity == GRAVITY_HOR_LEFT) ? BOTTOM_LEFT_LAYOUT_ACTIVITY in testLayout()
137 launchActivity(activityName, WINDOWING_MODE_FREEFORM); in testLayout()
139 getDisplayAndWindowState(activityName, true); in testLayout()
160 private void getDisplayAndWindowState(ComponentName activityName, boolean checkFocus) in getDisplayAndWindowState() argument
162 final String windowName = getWindowName(activityName); in getDisplayAndWindowState()
164 mAmWmState.computeState(activityName); in getDisplayAndWindowState()
169 mAmWmState.assertVisibility(activityName, true); in getDisplayAndWindowState()
DActivityManagerAppConfigurationTests.java263 private void moveActivityFullSplitFull(ComponentName activityName) { in moveActivityFullSplitFull() argument
268 launchActivity(activityName, WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY); in moveActivityFullSplitFull()
269 final ReportedSizes initialFullscreenSizes = getActivityDisplaySize(activityName, in moveActivityFullSplitFull()
271 final Rect displayRect = getDisplayRect(activityName); in moveActivityFullSplitFull()
275 setActivityTaskWindowingMode(activityName, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in moveActivityFullSplitFull()
276 final ReportedSizes dockedSizes = getActivityDisplaySize(activityName, logSeparator); in moveActivityFullSplitFull()
280 launchActivity(activityName, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in moveActivityFullSplitFull()
282 new WaitForValidActivityState.Builder(activityName).build()); in moveActivityFullSplitFull()
292 setActivityTaskWindowingMode(activityName, in moveActivityFullSplitFull()
294 final ReportedSizes finalFullscreenSizes = getActivityDisplaySize(activityName, in moveActivityFullSplitFull()
[all …]
DActivityManagerAmProfileTests.java135 private static String getStartCmd(final ComponentName activityName, in getStartCmd() argument
142 getActivityName(activityName), OUTPUT_FILE_PATH)); in getStartCmd()
152 " %s %s", activityName.getPackageName(), OUTPUT_FILE_PATH)); in getStartCmd()
157 private static String getStopProfileCmd(final ComponentName activityName) { in getStopProfileCmd() argument
158 return "am profile stop " + activityName.getPackageName(); in getStopProfileCmd()
DActivityAndWindowManagerOverrideConfigTests.java53 ComponentName activityName, LogSeparator logSeparator) { in findConfigurationChange() argument
56 getDeviceLogsForComponents(logSeparator, getLogTag(activityName)); in findConfigurationChange()
66 logAlways("***Waiting configuration change of " + getLogTag(activityName) in findConfigurationChange()
DActivityManagerPinnedStackTests.java1340 private Rect readAppBounds(ComponentName activityName, LogSeparator logSeparator) { in readAppBounds() argument
1341 final String[] lines = getDeviceLogsForComponents(logSeparator, getLogTag(activityName)); in readAppBounds()
1363 private void assertPinnedStackStateOnMoveToFullscreen(ComponentName activityName, in assertPinnedStackStateOnMoveToFullscreen() argument
1367 mAmWmState.waitForActivityState(activityName, STATE_STOPPED); in assertPinnedStackStateOnMoveToFullscreen()
1368 assertTrue(mAmWmState.getAmState().hasActivityState(activityName, STATE_STOPPED)); in assertPinnedStackStateOnMoveToFullscreen()
1370 activityName, WINDOWING_MODE_FULLSCREEN)); in assertPinnedStackStateOnMoveToFullscreen()
1400 private void assertPinnedStackActivityIsInDisplayBounds(ComponentName activityName) { in assertPinnedStackActivityIsInDisplayBounds() argument
1401 final WindowManagerState.WindowState windowState = getWindowState(activityName); in assertPinnedStackActivityIsInDisplayBounds()
1438 ComponentName activityName, LogSeparator logSeparator) { in assertValidPictureInPictureCallbackOrder() argument
1439 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(activityName, in assertValidPictureInPictureCallbackOrder()
[all …]
DActivityManagerAssistantStackTests.java378 private void waitForValidStateWithActivityType(ComponentName activityName, int activityType) in waitForValidStateWithActivityType() argument
380 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForValidStateWithActivityType()
385 private void waitForValidStateWithActivityTypeAndWindowingMode(ComponentName activityName, in waitForValidStateWithActivityTypeAndWindowingMode() argument
387 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForValidStateWithActivityTypeAndWindowingMode()
DActivityManagerMultiDisplayTests.java1211 private int readConfigChangeNumber(ComponentName activityName, LogSeparator logSeparator) in readConfigChangeNumber() argument
1213 return (new ActivityLifecycleCounts(activityName, logSeparator)).mConfigurationChangedCount; in readConfigChangeNumber()
1369 RotationSession rotationSession, ComponentName activityName) throws Exception { in rotateAndCheckSameSizes() argument
1373 final ReportedSizes rotatedSizes = getLastReportedSizesForActivity(activityName, in rotateAndCheckSameSizes()
1706 ComponentName activityName, int displayId, String message) throws Exception { in waitAndAssertActivityResumed() argument
1707 mAmWmState.waitForActivityState(activityName, STATE_RESUMED); in waitAndAssertActivityResumed()
1710 getActivityName(activityName), mAmWmState.getAmState().getResumedActivity()); in waitAndAssertActivityResumed()
1715 getActivityName(activityName), firstFrontStack.mResumedActivity); in waitAndAssertActivityResumed()
1717 mAmWmState.getAmState().hasActivityState(activityName, STATE_RESUMED)); in waitAndAssertActivityResumed()
1719 mAmWmState.assertVisibility(activityName, true /* visible */); in waitAndAssertActivityResumed()
[all …]
DKeyguardLockedTests.java270 private void waitForEnterPip(ComponentName activityName) { in waitForEnterPip() argument
271 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForEnterPip()
DActivityManagerSplitScreenTests.java657 private void launchActivityInDockStackAndMinimize(ComponentName activityName) throws Exception { in launchActivityInDockStackAndMinimize() argument
658 launchActivityInDockStackAndMinimize(activityName, SPLIT_SCREEN_CREATE_MODE_TOP_OR_LEFT); in launchActivityInDockStackAndMinimize()
661 private void launchActivityInDockStackAndMinimize(ComponentName activityName, int createMode) in launchActivityInDockStackAndMinimize() argument
663 launchActivityInSplitScreenWithRecents(activityName, createMode); in launchActivityInDockStackAndMinimize()
/cts/tests/tests/keystore/src/android/server/am/
DWaitForValidActivityState.java39 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()
DActivityManagerTestBase.java85 protected static String getAmStartCmd(final ComponentName activityName, in getAmStartCmd() argument
87 return getAmStartCmdInternal(getActivityName(activityName), keyValuePairs); in getAmStartCmd()
90 private static String getAmStartCmdInternal(final String activityName, in getAmStartCmdInternal() argument
93 new StringBuilder("am start -n ").append(activityName), in getAmStartCmdInternal()
155 protected void launchActivity(final ComponentName activityName, final String... keyValuePairs) { in launchActivity() argument
156 executeShellCommand(getAmStartCmd(activityName, keyValuePairs)); in launchActivity()
157 mAmWmState.waitForValidState(new WaitForValidActivityState(activityName)); in launchActivity()
169 protected void launchActivity(ComponentName activityName, int windowingMode, in launchActivity() argument
171 executeShellCommand(getAmStartCmd(activityName, keyValuePairs) in launchActivity()
173 mAmWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in launchActivity()
[all …]
DActivityAndWindowManagersState.java235 final ComponentName activityName = state.activityName; in shouldWaitForActivities() local
246 } else if (activityName != null in shouldWaitForActivities()
247 && !mAmState.isActivityVisible(activityName)) { in shouldWaitForActivities()
248 logAlways("Activity not visible: " + getActivityName(activityName)); in shouldWaitForActivities()
338 public void assertVisibility(final ComponentName activityName, final boolean visible) { in assertVisibility() argument
339 final String windowName = getWindowName(activityName); in assertVisibility()
340 final boolean activityVisible = mAmState.isActivityVisible(activityName); in assertVisibility()
343 assertEquals("Activity=" + getActivityName(activityName) + " must" + (visible ? "" : " NOT") in assertVisibility()
DActivityManagerState.java203 boolean isActivityVisible(ComponentName activityName) { in isActivityVisible() argument
204 final String fullName = getActivityName(activityName); in isActivityVisible()
/cts/tests/framework/base/activitymanager/util/src/android/server/am/
DWaitForValidActivityState.java39 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()
DActivityManagerTestBase.java167 protected static String getAmStartCmd(final ComponentName activityName, in getAmStartCmd() argument
169 return getAmStartCmdInternal(getActivityName(activityName), keyValuePairs); in getAmStartCmd()
172 private static String getAmStartCmdInternal(final String activityName, in getAmStartCmdInternal() argument
175 new StringBuilder("am start -n ").append(activityName), in getAmStartCmdInternal()
195 protected static String getAmStartCmd(final ComponentName activityName, final int displayId, in getAmStartCmd() argument
197 return getAmStartCmdInternal(getActivityName(activityName), displayId, keyValuePair); in getAmStartCmd()
200 private static String getAmStartCmdInternal(final String activityName, final int displayId, in getAmStartCmdInternal() argument
204 .append(activityName) in getAmStartCmdInternal()
212 protected static String getAmStartCmdInNewTask(final ComponentName activityName) { in getAmStartCmdInNewTask() argument
213 return "am start -n " + getActivityName(activityName) + " -f 0x18000000"; in getAmStartCmdInNewTask()
[all …]
DActivityAndWindowManagersState.java199 void waitForDebuggerWindowVisible(ComponentName activityName) { in waitForDebuggerWindowVisible() argument
203 if (shouldWaitForDebuggerWindow(activityName) in waitForDebuggerWindowVisible()
204 || shouldWaitForActivityRecords(activityName)) { in waitForDebuggerWindowVisible()
277 public void waitForActivityState(ComponentName activityName, String activityState) { in waitForActivityState() argument
278 waitForWithAmState(state -> state.hasActivityState(activityName, activityState), in waitForActivityState()
385 final ComponentName activityName = state.activityName; in shouldWaitForActivities() local
397 } else if (activityName != null in shouldWaitForActivities()
398 && !mAmState.isActivityVisible(activityName)) { in shouldWaitForActivities()
399 logAlways("Activity not visible: " + getActivityName(activityName)); in shouldWaitForActivities()
449 private boolean shouldWaitForDebuggerWindow(ComponentName activityName) { in shouldWaitForDebuggerWindow() argument
[all …]
DActivityManagerState.java312 int getStackIndexByActivity(ComponentName activityName) { in getStackIndexByActivity() argument
313 final String fullName = getActivityName(activityName); in getStackIndexByActivity()
351 boolean containsActivity(ComponentName activityName) { in containsActivity() argument
352 final String fullName = getActivityName(activityName); in containsActivity()
365 boolean containsActivityInWindowingMode(ComponentName activityName, int windowingMode) { in containsActivityInWindowingMode() argument
366 final String fullName = getActivityName(activityName); in containsActivityInWindowingMode()
380 boolean isActivityVisible(ComponentName activityName) { in isActivityVisible() argument
381 final String fullName = getActivityName(activityName); in isActivityVisible()
394 boolean isActivityTranslucent(ComponentName activityName) { in isActivityTranslucent() argument
395 final String fullName = getActivityName(activityName); in isActivityTranslucent()
[all …]
/cts/tests/framework/base/activitymanager/src/android/server/am/lifecycle/
DLifecycleLog.java55 final String activityName = activity.getClass().getCanonicalName(); in onActivityLifecycleChanged() local
56 log("Activity " + activityName + " moved to stage " + stage); in onActivityLifecycleChanged()
57 mLog.add(new Pair<>(activityName, stageToCallback(stage))); in onActivityLifecycleChanged()
62 final String activityName = activity.getClass().getCanonicalName(); in onActivityCallback() local
63 log("Activity " + activityName + " got a callback " + callback); in onActivityCallback()
64 mLog.add(new Pair<>(activityName, callback)); in onActivityCallback()
75 final String activityName = activityClass.getCanonicalName(); in getActivityLog() local
76 log("Looking up log for activity: " + activityName); in getActivityLog()
79 if (transition.first.equals(activityName)) { in getActivityLog()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsTests.java122 private void runAlertWindowTest(final ComponentName activityName, in runAlertWindowTest() argument
124 setAlertWindowPermission(activityName, hasAlertWindowPermission); in runAlertWindowTest()
126 executeShellCommand(getAmStartCmd(activityName)); in runAlertWindowTest()
127 mAmWmState.computeState(new WaitForValidActivityState(activityName)); in runAlertWindowTest()
128 mAmWmState.assertVisibility(activityName, true); in runAlertWindowTest()
130 assertAlertWindows(activityName, hasAlertWindowPermission, atLeastO); in runAlertWindowTest()
142 private void assertAlertWindows(final ComponentName activityName, in assertAlertWindows() argument
144 final String packageName = activityName.getPackageName(); in assertAlertWindows()
214 private void resetPermissionState(ComponentName activityName) throws Exception { in resetPermissionState() argument
215 AppOpsUtils.reset(activityName.getPackageName()); in resetPermissionState()
[all …]
DCrossAppDragAndDropTests.java179 private String getComponentName(String packageName, String activityName) { in getComponentName() argument
180 return packageName + "/" + packageName + "." + activityName; in getComponentName()
202 private void launchDockedActivity(String packageName, String activityName, String mode, in launchDockedActivity() argument
205 final String componentName = getComponentName(packageName, activityName); in launchDockedActivity()
208 waitForResume(packageName, activityName); in launchDockedActivity()
211 private void launchFullscreenActivity(String packageName, String activityName, String mode, in launchFullscreenActivity() argument
214 final String componentName = getComponentName(packageName, activityName); in launchFullscreenActivity()
217 waitForResume(packageName, activityName); in launchFullscreenActivity()
225 private void launchFreeformActivity(String packageName, String activityName, String mode, in launchFreeformActivity() argument
228 final String componentName = getComponentName(packageName, activityName); in launchFreeformActivity()
[all …]
DParentChildTestBase.java44 setActivityTaskWindowingMode(activityName(), WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in startTestCaseDocked()
47 abstract ComponentName activityName(); in activityName() method in ParentChildTestBase
DDialogFrameTests.java70 ComponentName activityName() { in activityName() method in DialogFrameTests
90 WindowState parent = getSingleWindow(getWindowName(activityName())); in doSingleTest()
/cts/tests/framework/base/activitymanager/app/src/android/server/am/
DVirtualDisplayActivity.java234 private void launchActivity(ComponentName activityName, int displayId) { in launchActivity() argument
237 extras.putString(KEY_TARGET_COMPONENT, getActivityName(activityName)); in launchActivity()

12