/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | ActivityManagerSplitScreenTests.java | 37 import static android.server.am.Components.TEST_ACTIVITY; 96 launchActivity(TEST_ACTIVITY); in testStackList() 97 mAmWmState.computeState(TEST_ACTIVITY); in testStackList() 109 launchActivityInSplitScreenWithRecents(TEST_ACTIVITY); in testDockActivity() 134 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSide() 147 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSideMultiWindowCallbacks() 157 TEST_ACTIVITY, logSeparator); in testLaunchToSideMultiWindowCallbacks() 165 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FULLSCREEN); in testNoUserLeaveHintOnMultiWindowModeChanged() 169 setActivityTaskWindowingMode(TEST_ACTIVITY, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in testNoUserLeaveHintOnMultiWindowModeChanged() 171 TEST_ACTIVITY, logSeparator); in testNoUserLeaveHintOnMultiWindowModeChanged() [all …]
|
D | StartActivityTests.java | 19 import static android.server.am.Components.TEST_ACTIVITY; 54 .setTargetActivity(TEST_ACTIVITY) in testStartActivityContexts() 65 assertFalse(mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testStartActivityContexts() 79 .setTargetActivity(TEST_ACTIVITY) in testStartActivityNewTask() 85 mAmWmState.computeState(TEST_ACTIVITY); in testStartActivityNewTask() 87 TEST_ACTIVITY); in testStartActivityNewTask() 97 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY) in testLegacyStartActivityFromNonActivityContext() 102 mAmWmState.computeState(TEST_ACTIVITY); in testLegacyStartActivityFromNonActivityContext() 104 TEST_ACTIVITY); in testLegacyStartActivityFromNonActivityContext()
|
D | ActivityManagerFreeformStackTests.java | 24 import static android.server.am.Components.TEST_ACTIVITY; 55 mAmWmState.computeState(FREEFORM_ACTIVITY, TEST_ACTIVITY); in testFreeformWindowManagementSupport() 66 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testFreeformWindowManagementSupport() 68 TEST_ACTIVITY + " must be focused Activity", TEST_ACTIVITY); in testFreeformWindowManagementSupport() 70 mAmWmState.getAmState().getTaskByActivity(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport() 97 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FREEFORM); in testActivityLifeCycleOnResizeFreeformTask() 100 mAmWmState.computeState(TEST_ACTIVITY, NO_RELAUNCH_ACTIVITY); in testActivityLifeCycleOnResizeFreeformTask() 117 resizeActivityTask(TEST_ACTIVITY, in testActivityLifeCycleOnResizeFreeformTask() 122 mAmWmState.computeState(new WaitForValidActivityState.Builder(TEST_ACTIVITY).build(), in testActivityLifeCycleOnResizeFreeformTask() 126 resizeActivityTask(TEST_ACTIVITY, in testActivityLifeCycleOnResizeFreeformTask() [all …]
|
D | ActivityManagerRobustnessTests.java | 20 import static android.server.am.Components.TEST_ACTIVITY; 40 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityRecursively() 41 if (mAmWmState.getAmState().isActivityVisible(TEST_ACTIVITY)) { in testLaunchActivityRecursively() 45 mAmWmState.waitForValidState(TEST_ACTIVITY); in testLaunchActivityRecursively() 46 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testLaunchActivityRecursively()
|
D | ActivityManagerMultiDisplayTests.java | 40 import static android.server.am.Components.TEST_ACTIVITY; 113 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testLaunchActivityOnSecondaryDisplay() 114 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityOnSecondaryDisplay() 118 TEST_ACTIVITY); in testLaunchActivityOnSecondaryDisplay() 125 getActivityName(TEST_ACTIVITY), frontStack.mResumedActivity); in testLaunchActivityOnSecondaryDisplay() 129 final ReportedSizes reportedSizes = getLastReportedSizesForActivity(TEST_ACTIVITY, in testLaunchActivityOnSecondaryDisplay() 157 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY).setNewTask(true) in testLaunchActivityOnPrimaryDisplay() 159 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityOnPrimaryDisplay() 162 TEST_ACTIVITY); in testLaunchActivityOnPrimaryDisplay() 168 getActivityName(TEST_ACTIVITY), frontStack.mResumedActivity); in testLaunchActivityOnPrimaryDisplay() [all …]
|
D | ActivityManagerDisplayLockedKeyguardTests.java | 23 import static android.server.am.Components.TEST_ACTIVITY; 64 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked() 65 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked() 69 mAmWmState.waitForActivityState(TEST_ACTIVITY, STATE_STOPPED); in testVirtualDisplayHidesContentWhenLocked() 70 mAmWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testVirtualDisplayHidesContentWhenLocked() 76 mAmWmState.waitForActivityState(TEST_ACTIVITY, STATE_RESUMED); in testVirtualDisplayHidesContentWhenLocked() 77 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked()
|
D | ActivityManagerAssistantStackTests.java | 42 import static android.server.am.Components.TEST_ACTIVITY; 121 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testAssistantStackZOrder() 158 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testAssistantStackLaunchNewTaskWithDockedStack() 174 EXTRA_ASSISTANT_LAUNCH_NEW_TASK, getActivityName(TEST_ACTIVITY), in assertAssistantStackCanLaunchAndReturnFromNewTask() 178 TEST_ACTIVITY, ACTIVITY_TYPE_STANDARD, expectedWindowingMode); in assertAssistantStackCanLaunchAndReturnFromNewTask() 181 mAmWmState.assertFocusedActivity("TestActivity should be resumed", TEST_ACTIVITY); in assertAssistantStackCanLaunchAndReturnFromNewTask() 202 launchActivityOnDisplay(TEST_ACTIVITY, mAssistantDisplayId); in testAssistantStackFinishToPreviousApp() 212 TEST_ACTIVITY, ACTIVITY_TYPE_STANDARD, WINDOWING_MODE_FULLSCREEN); in testAssistantStackFinishToPreviousApp() 213 mAmWmState.waitForActivityState(TEST_ACTIVITY, STATE_RESUMED); in testAssistantStackFinishToPreviousApp() 214 mAmWmState.assertFocusedActivity("TestActivity should be resumed", TEST_ACTIVITY); in testAssistantStackFinishToPreviousApp() [all …]
|
D | DisplaySizeTest.java | 21 import static android.server.am.Components.TEST_ACTIVITY; 54 stopTestPackage(TEST_ACTIVITY); in tearDown() 60 launchActivity(TEST_ACTIVITY); in testCompatibilityDialog() 61 mAmWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialog() 93 EXTRA_LAUNCH_ANOTHER_ACTIVITY, getActivityName(TEST_ACTIVITY)); in testCompatibilityDialogAfterReturn() 95 mAmWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialogAfterReturn()
|
D | ActivityManagerConfigChangeTests.java | 24 import static android.server.am.Components.TEST_ACTIVITY; 53 testRotation(TEST_ACTIVITY, 1, 1, 0); in testRotation90Relaunch() 65 testRotation(TEST_ACTIVITY, 2, 0, 0); in testRotation180Relaunch() 167 launchActivity(TEST_ACTIVITY); in testUpdateApplicationInfo() 168 final int assetSeq = readAssetSeqNumber(TEST_ACTIVITY, firstLogSeparator); in testUpdateApplicationInfo() 172 executeShellCommand("am update-appinfo all " + TEST_ACTIVITY.getPackageName()); in testUpdateApplicationInfo() 176 return readAssetSeqNumber(TEST_ACTIVITY, logSeparator) == assetSeq + 1 in testUpdateApplicationInfo() 177 && amState.hasActivityState(TEST_ACTIVITY, STATE_RESUMED); in testUpdateApplicationInfo() 185 assertRelaunchOrConfigChanged(TEST_ACTIVITY, 1 /* numRelaunch */, in testUpdateApplicationInfo() 187 final int newAssetSeq = readAssetSeqNumber(TEST_ACTIVITY, logSeparator); in testUpdateApplicationInfo()
|
D | KeyguardTests.java | 36 import static android.server.am.Components.TEST_ACTIVITY; 84 launchActivity(TEST_ACTIVITY); in testKeyguardHidesActivity() 85 mAmWmState.computeState(TEST_ACTIVITY); in testKeyguardHidesActivity() 86 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testKeyguardHidesActivity() 91 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testKeyguardHidesActivity() 171 launchActivity(TEST_ACTIVITY); in testTranslucentDoesntRevealBehind() 173 mAmWmState.computeState(TEST_ACTIVITY, SHOW_WHEN_LOCKED_TRANSLUCENT_ACTIVITY); in testTranslucentDoesntRevealBehind() 174 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testTranslucentDoesntRevealBehind() 179 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testTranslucentDoesntRevealBehind() 264 launchActivity(TEST_ACTIVITY); in testDismissKeyguardActivity_method_notTop() [all …]
|
D | ActivityManagerDisplayTests.java | 20 import static android.server.am.Components.TEST_ACTIVITY; 82 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testMultiDisplayDisabled() 83 mAmWmState.computeState(TEST_ACTIVITY); in testMultiDisplayDisabled() 86 TEST_ACTIVITY); in testMultiDisplayDisabled() 93 getActivityName(TEST_ACTIVITY), frontStack.mResumedActivity); in testMultiDisplayDisabled()
|
D | ActivityManagerAmStartOptionsTests.java | 22 import static android.server.am.Components.TEST_ACTIVITY; 50 executeShellCommand("am start -n " + getActivityName(TEST_ACTIVITY) + " -D"); in testDashD() 52 mAmWmState.waitForDebuggerWindowVisible(TEST_ACTIVITY); in testDashD() 53 int procId = mAmWmState.getAmState().getActivityProcId(TEST_ACTIVITY); in testDashD()
|
D | ActivityManagerPinnedStackTests.java | 61 import static android.server.am.Components.TEST_ACTIVITY; 318 launchActivity(TEST_ACTIVITY, in testEnterPipToOtherOrientation() 460 launchActivity(TEST_ACTIVITY); in testAutoEnterPictureInPicture() 477 launchActivity(TEST_ACTIVITY); in testAutoEnterPictureInPictureLaunchActivity() 499 launchActivity(TEST_ACTIVITY); in testAutoEnterPictureInPictureFinish() 564 launchActivity(TEST_ACTIVITY); in testDisallowMultipleTasksInPinnedStack() 610 launchActivity(TEST_ACTIVITY); in testPipUnPipOverApp() 625 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testPipUnPipOverApp() 651 launchActivity(TEST_ACTIVITY); in testRemovePipWithVisibleFullscreenStack() 671 launchActivity(TEST_ACTIVITY); in testRemovePipWithHiddenFullscreenStack() [all …]
|
D | KeyguardTransitionTests.java | 23 import static android.server.am.Components.TEST_ACTIVITY; 56 launchActivity(TEST_ACTIVITY); in testUnlock() 59 mAmWmState.computeState(TEST_ACTIVITY); in testUnlock() 93 launchActivity(TEST_ACTIVITY); in testUnocclude()
|
D | ActivityManagerActivityVisibilityTests.java | 44 import static android.server.am.Components.TEST_ACTIVITY; 137 launchActivity(TEST_ACTIVITY); in testHomeVisibleOnActivityTaskPinned() 152 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testHomeVisibleOnActivityTaskPinned() 166 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testTranslucentActivityOverDockedStack() 169 new WaitForValidActivityState(TEST_ACTIVITY), in testTranslucentActivityOverDockedStack() 177 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testTranslucentActivityOverDockedStack() 209 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY); in testFinishActivityInNonFocusedStack() 210 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testFinishActivityInNonFocusedStack()
|
D | ActivityManagerAppConfigurationTests.java | 39 import static android.server.am.Components.TEST_ACTIVITY; 177 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testConfigurationUpdatesWhenRotatingWhileDocked() 244 moveActivityFullSplitFull(TEST_ACTIVITY); in testSameConfigurationFullSplitFullRelaunch() 307 moveActivitySplitFullSplit(TEST_ACTIVITY); in testSameConfigurationSplitFullSplitRelaunch() 448 launchActivity(TEST_ACTIVITY); in testAppOrientationRequestConfigClears() 449 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testAppOrientationRequestConfigClears() 451 getLastReportedSizesForActivity(TEST_ACTIVITY, logSeparator); in testAppOrientationRequestConfigClears() 599 launchActivity(TEST_ACTIVITY); in testAppOrientationWhenRotating() 630 assertRelaunchOrConfigChanged(TEST_ACTIVITY, 0 /* numRelaunch */, in testAppOrientationWhenRotating()
|
D | ActivityManagerManifestLayoutTests.java | 25 import static android.server.am.Components.TEST_ACTIVITY; 110 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testMinimalSize()
|
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
D | ActivityLauncher.java | 23 import static android.server.am.Components.TEST_ACTIVITY; 105 ? TEST_ACTIVITY : ComponentName.unflattenFromString(targetComponent)); in launchActivityFromExtras()
|
D | ActivityManagerTestBase.java | 52 import static android.server.am.Components.TEST_ACTIVITY; 1318 private ComponentName mTargetActivity = TEST_ACTIVITY;
|
/cts/tests/framework/base/activitymanager/app/src/android/server/am/ |
D | Components.java | 100 public static final ComponentName TEST_ACTIVITY = component("TestActivity"); field in Components
|