Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DConfigChangeTests.java121 private void testRotation180WithCutout(ComponentName activityName, in testRotation180WithCutout() argument
123 launchActivity(activityName); in testRotation180WithCutout()
124 mWmState.computeState(activityName); in testRotation180WithCutout()
127 final ActivityLifecycleCounts count1 = getLifecycleCountsForRotation(activityName, in testRotation180WithCutout()
133 final ActivityLifecycleCounts count2 = getLifecycleCountsForRotation(activityName, in testRotation180WithCutout()
162 private void prepareRotation(ComponentName activityName, RotationSession session, in prepareRotation() argument
175 Condition.waitFor(new ActivityLifecycleCounts(activityName) in prepareRotation()
181 private ActivityLifecycleCounts getLifecycleCountsForRotation(ComponentName activityName, in getLifecycleCountsForRotation() argument
187 prepareRotation(activityName, session, currentRotation, before, canHandleConfigChange); in getLifecycleCountsForRotation()
190 mWmState.computeState(activityName); in getLifecycleCountsForRotation()
[all …]
DReplaceWindowTests.java63 final ComponentName activityName = relaunch ? SLOW_CREATE_ACTIVITY : NO_RELAUNCH_ACTIVITY; in testReplaceWindow_Dock() local
64 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock()
65 final String amStartCmd = getAmStartCmd(activityName); in testReplaceWindow_Dock()
78 final String oldToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock()
81 putActivityInPrimarySplit(activityName); in testReplaceWindow_Dock()
87 final String newToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock()
93 private String getWindowToken(String windowName, ComponentName activityName) throws Exception { in getWindowToken() argument
94 mWmState.computeState(activityName); in getWindowToken()
96 mWmState.assertVisibility(activityName, true); in getWindowToken()
DAlertWindowsTests.java123 private void runAlertWindowTest(final ComponentName activityName, in runAlertWindowTest() argument
125 setAlertWindowPermission(activityName, hasAlertWindowPermission); in runAlertWindowTest()
127 executeShellCommand(getAmStartCmd(activityName)); in runAlertWindowTest()
128 mWmState.computeState(new WaitForValidActivityState(activityName)); in runAlertWindowTest()
129 mWmState.assertVisibility(activityName, true); in runAlertWindowTest()
131 assertAlertWindows(activityName, hasAlertWindowPermission, atLeastO); in runAlertWindowTest()
143 private void assertAlertWindows(final ComponentName activityName, in assertAlertWindows() argument
145 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 …]
DMultiDisplayClientTests.java99 final ComponentName activityName = activity.getComponentName(); in testDisplayIdUpdateOnMove() local
100 waitAndAssertResume(activityName); in testDisplayIdUpdateOnMove()
116 waitAndAssertTopResumedActivity(activityName, displayId, in testDisplayIdUpdateOnMove()
121 waitAndAssertConfigurationChange(activityName); in testDisplayIdUpdateOnMove()
124 waitAndAssertResume(activityName); in testDisplayIdUpdateOnMove()
231 final ComponentName activityName = activity.getComponentName(); in testViewGetDisplay() local
233 waitAndAssertTopResumedActivity(activityName, displayId, in testViewGetDisplay()
267 private void waitAndAssertConfigurationChange(ComponentName activityName) { in waitAndAssertConfigurationChange() argument
270 state -> getCallbackCount(activityName, ON_CONFIGURATION_CHANGED) == 1, in waitAndAssertConfigurationChange()
271 activityName + " receives configuration change")); in waitAndAssertConfigurationChange()
[all …]
DManifestLayoutTests.java134 final ComponentName activityName; in testLayout() local
136 activityName = (hGravity == GRAVITY_HOR_LEFT) ? TOP_LEFT_LAYOUT_ACTIVITY in testLayout()
139 activityName = (hGravity == GRAVITY_HOR_LEFT) ? BOTTOM_LEFT_LAYOUT_ACTIVITY in testLayout()
144 launchActivity(activityName, WINDOWING_MODE_FREEFORM); in testLayout()
146 getDisplayAndWindowState(activityName, true); in testLayout()
170 private void getDisplayAndWindowState(ComponentName activityName, boolean checkFocus) in getDisplayAndWindowState() argument
172 final String windowName = getWindowName(activityName); in getDisplayAndWindowState()
174 mWmState.computeState(activityName); in getDisplayAndWindowState()
179 mWmState.assertVisibility(activityName, true); in getDisplayAndWindowState()
DParentChildTestBase.java45 mWmState.computeState(activityName()); in startTestCaseDocked()
46 putActivityInPrimarySplit(activityName()); in startTestCaseDocked()
49 abstract ComponentName activityName(); in activityName() method in ParentChildTestBase
71 mWmState.waitFor(wmState -> !wmState.containsActivity(activityName()), in doDockedTest()
DWindowMetricsActivityTests.java128 private void waitForEnterPipAnimationComplete(ComponentName activityName) { in waitForEnterPipAnimationComplete() argument
129 waitForEnterPip(activityName); in waitForEnterPipAnimationComplete()
131 WindowManagerState.Task task = wmState.getTaskByActivity(activityName); in waitForEnterPipAnimationComplete()
135 WindowManagerState.Activity activity = task.getActivity(activityName); in waitForEnterPipAnimationComplete()
145 private void waitForEnterPip(ComponentName activityName) { in waitForEnterPip() argument
147 WindowManagerState.Task task = wmState.getTaskByActivity(activityName); in waitForEnterPip()
310 ComponentName activityName = activity.getComponentName(); in assertMetricsValidityForNonresizableActivity() local
311 mWmState.computeState(activityName); in assertMetricsValidityForNonresizableActivity()
312 WindowManagerState.Activity activityContainer = mWmState.getActivity(activityName); in assertMetricsValidityForNonresizableActivity()
328 final Rect displayAreaBounds = getTaskDisplayAreaBounds(activityName); in assertMetricsValidityForNonresizableActivity()
[all …]
DCompatChangeTests.java573 private void runLetterboxSandboxTest(ComponentName activityName, boolean isSandboxed) { in runLetterboxSandboxTest() argument
588 launchActivity(activityName, WINDOWING_MODE_FULLSCREEN); in runLetterboxSandboxTest()
591 changeDisplayAspectRatioAndWait(activityName, /* aspectRatio= */ 2); in runLetterboxSandboxTest()
592 assertSandboxedByProvidesMaxBounds(activityName, isSandboxed); in runLetterboxSandboxTest()
595 private void assertSandboxedByBounds(ComponentName activityName, boolean isSandboxed) { in assertSandboxedByBounds() argument
596 mWmState.computeState(new WaitForValidActivityState(activityName)); in assertSandboxedByBounds()
597 final WindowManagerState.Activity activity = mWmState.getActivity(activityName); in assertSandboxedByBounds()
601 WindowManagerState.DisplayArea tda = mWmState.getTaskDisplayArea(activityName); in assertSandboxedByBounds()
614 … private void assertSandboxedByProvidesMaxBounds(ComponentName activityName, boolean isSandboxed) { in assertSandboxedByProvidesMaxBounds() argument
615 mWmState.computeState(new WaitForValidActivityState(activityName)); in assertSandboxedByProvidesMaxBounds()
[all …]
DPinnedStackTests.java1407 private void enterPipAndAssertPinnedTaskExists(ComponentName activityName) { in enterPipAndAssertPinnedTaskExists() argument
1409 waitForEnterPip(activityName); in enterPipAndAssertPinnedTaskExists()
1414 private Rect getAppBounds(ComponentName activityName) { in getAppBounds() argument
1415 final Configuration config = TestJournalContainer.get(activityName).extras in getAppBounds()
1429 private void assertPinnedStackStateOnMoveToBackStack(ComponentName activityName, in assertPinnedStackStateOnMoveToBackStack() argument
1433 waitAndAssertActivityState(activityName, STATE_STOPPED, in assertPinnedStackStateOnMoveToBackStack()
1436 activityName, previousWindowingMode)); in assertPinnedStackStateOnMoveToBackStack()
1443 private void assertPinnedStackActivityIsInDisplayBounds(ComponentName activityName) { in assertPinnedStackActivityIsInDisplayBounds() argument
1444 final WindowManagerState.WindowState windowState = getWindowState(activityName); in assertPinnedStackActivityIsInDisplayBounds()
1452 private int getDefaultDisplayWindowingMode(ComponentName activityName) { in getDefaultDisplayWindowingMode() argument
[all …]
DAmProfileTests.java144 private ActivitySession startActivityProfiling(ComponentName activityName, boolean sampling, in startActivityProfiling() argument
158 getActivityName(activityName), OUTPUT_FILE_PATH)); in startActivityProfiling()
176 private static String getStopProfileCmd(final ComponentName activityName) {
177 return "am profile stop " + activityName.getPackageName();
DBlurTests.java322 private void startTestActivity(ComponentName activityName, final CliIntentExtra... extras) { in startTestActivity() argument
323 launchActivity(activityName, extras); in startTestActivity()
324 assertNotEquals(mWmState.getRootTaskIdByActivity(activityName), INVALID_STACK_ID); in startTestActivity()
325 waitAndAssertResumedActivity(activityName, activityName + " must be resumed"); in startTestActivity()
330 private Rect getWindowFrame(ComponentName activityName) { in getWindowFrame() argument
331 String windowName = getWindowName(activityName); in getWindowFrame()
332 mWmState.computeState(activityName); in getWindowFrame()
DAppConfigurationTests.java209 final ComponentName activityName = activitySession.getName(); in rotateAndCheckSizes() local
210 final WindowManagerState.Task task = mWmState.getTaskByActivity(activityName); in rotateAndCheckSizes()
228 assertActivityLifecycle(activityName, false /* relaunch */); in rotateAndCheckSizes()
264 final ComponentName activityName = relaunch ? TEST_ACTIVITY : RESIZEABLE_ACTIVITY; in moveActivityFullSplitFull() local
267 launchActivity(activityName, WINDOWING_MODE_FULLSCREEN); in moveActivityFullSplitFull()
268 final SizeInfo initialFullscreenSizes = getLastReportedSizesForActivity(activityName); in moveActivityFullSplitFull()
272 putActivityInPrimarySplit(activityName); in moveActivityFullSplitFull()
276 assertActivityLifecycle(activityName, true /* relaunch */); in moveActivityFullSplitFull()
280 waitForOnMultiWindowModeChanged(activityName); in moveActivityFullSplitFull()
282 final SizeInfo dockedSizes = getLastReportedSizesForActivity(activityName); in moveActivityFullSplitFull()
[all …]
DWindowContextTests.java201 final ComponentName activityName = activity.getComponentName(); in testWindowProviderServiceLifecycle() local
206 mWmState.computeState(activityName); in testWindowProviderServiceLifecycle()
208 putActivityInPrimarySplit(activityName); in testWindowProviderServiceLifecycle()
216 mWmState.computeState(activityName); in testWindowProviderServiceLifecycle()
217 final WindowManagerState.DisplayArea da = mWmState.getTaskDisplayArea(activityName); in testWindowProviderServiceLifecycle()
DAssistantStackTests.java382 private void waitForValidStateWithActivityType(ComponentName activityName, int activityType) in waitForValidStateWithActivityType() argument
384 mWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForValidStateWithActivityType()
389 private void waitForValidStateWithActivityTypeAndWindowingMode(ComponentName activityName, in waitForValidStateWithActivityTypeAndWindowingMode() argument
391 mWmState.waitForValidState(new WaitForValidActivityState.Builder(activityName) in waitForValidStateWithActivityTypeAndWindowingMode()
DDialogFrameTests.java75 ComponentName activityName() { in activityName() method in DialogFrameTests
95 WindowState parent = getSingleWindow(getWindowName(activityName())); in doSingleTest()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java139 public void waitForDebuggerWindowVisible(ComponentName activityName) { in waitForDebuggerWindowVisible() argument
142 return !shouldWaitForDebuggerWindow(activityName) in waitForDebuggerWindowVisible()
143 && !shouldWaitForActivityRecords(activityName); in waitForDebuggerWindowVisible()
231 public void waitForActivityOrientation(ComponentName activityName, int orientation) { in waitForActivityOrientation() argument
233 final Task task = amState.getTaskByActivity(activityName); in waitForActivityOrientation()
238 }, "orientation of " + getActivityName(activityName) + " to be " + orientation); in waitForActivityOrientation()
245 public void waitForActivityState(ComponentName activityName, String activityState) { in waitForActivityState() argument
246 waitForWithAmState(state -> state.hasActivityState(activityName, activityState), in waitForActivityState()
247 "state of " + getActivityName(activityName) + " to be " + activityState); in waitForActivityState()
250 public void waitForActivityRemoved(ComponentName activityName) { in waitForActivityRemoved() argument
[all …]
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()
122 public Builder(final ComponentName activityName) { in Builder() argument
123 mActivityName = activityName; in Builder()
124 mWindowName = getWindowName(activityName); in Builder()
DActivityManagerTestBase.java277 protected static String getAmStartCmd(final ComponentName activityName, in getAmStartCmd() argument
279 return getAmStartCmdInternal(getActivityName(activityName), extras); in getAmStartCmd()
282 private static String getAmStartCmdInternal(final String activityName, in getAmStartCmdInternal() argument
285 new StringBuilder("am start -n ").append(activityName), in getAmStartCmdInternal()
297 protected static String getAmStartCmd(final ComponentName activityName, final int displayId, in getAmStartCmd() argument
299 return getAmStartCmdInternal(getActivityName(activityName), displayId, extras); in getAmStartCmd()
302 private static String getAmStartCmdInternal(final String activityName, final int displayId, in getAmStartCmdInternal() argument
306 .append(activityName) in getAmStartCmdInternal()
314 protected static String getAmStartCmdInNewTask(final ComponentName activityName) { in getAmStartCmdInNewTask() argument
315 return "am start -n " + getActivityName(activityName) + " -f 0x18000000"; in getAmStartCmdInNewTask()
[all …]
DWindowManagerState.java485 DisplayArea getTaskDisplayArea(ComponentName activityName) { in getTaskDisplayArea() argument
488 final DisplayArea tda = display.getTaskDisplayArea(activityName); in getTaskDisplayArea()
647 Task getRootTaskByActivity(ComponentName activityName) { in getRootTaskByActivity() argument
651 if (rootTask.containsActivity(activityName)) return rootTask; in getRootTaskByActivity()
682 public boolean containsActivity(ComponentName activityName) { in containsActivity() argument
684 if (rootTask.containsActivity(activityName)) return true; in containsActivity()
690 for (ComponentName activityName : activityNames) { in containsNoneOf()
692 if (rootTask.containsActivity(activityName)) return false; in containsNoneOf()
698 public boolean containsActivityInWindowingMode(ComponentName activityName, int windowingMode) { in containsActivityInWindowingMode() argument
700 final Activity activity = rootTask.getActivity(activityName); in containsActivityInWindowingMode()
[all …]
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java75 String permission, int expected, String packageName, String activityName) in launchActivityAndCheckPermission() argument
78 packageName, activityName); in launchActivityAndCheckPermission()
92 String permission, int expected, String packageName, String activityName) in launchActivityAndRequestPermission() argument
95 packageName, activityName); in launchActivityAndRequestPermission()
101 String packageName, String activityName) throws Exception { in launchActivityAndRequestPermission() argument
122 packageName, activityName); in launchActivityAndRequestPermission()
128 String packageName, String activityName) { in launchActivityWithAction() argument
130 launchIntent.setComponent(new ComponentName(packageName, activityName)); in launchActivityWithAction()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleLog.java113 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/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseManagedProfileTest.java91 protected void disableActivityForUser(String activityName, int userId) in disableActivityForUser() argument
95 + " --es extra-class-name " + MANAGED_PROFILE_PKG + "." + activityName in disableActivityForUser()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceActivityLegacyFlowTest.java113 public void waitForActivityState(ComponentName activityName, String activityState) { in waitForActivityState() argument
114 new WindowManagerStateHelper().waitForActivityState(activityName, activityState); in waitForActivityState()
/cts/tests/tests/systemui/common/src/android/systemui/tv/cts/
DTestEntities.kt26 fun ComponentName.activityName(): String = flattenToShortString() in activityName() method
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java244 private void launchActivity(ComponentName activityName, int displayId) { in launchActivity() argument
247 extras.putString(KEY_TARGET_COMPONENT, getActivityName(activityName)); in launchActivity()

12