/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/ |
D | ActivityLifecycleLegacySplitScreenTests.java | 82 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask() local 88 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testResumedWhenRecreatedFromInNonFocusedTask() 106 state(firstActivity, ON_RESUME)); in testResumedWhenRecreatedFromInNonFocusedTask() 122 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testOccludingOnSplitSecondaryTask() local 125 moveTaskToPrimarySplitScreenAndVerify(firstActivity, sideActivity); in testOccludingOnSplitSecondaryTask() 142 final Activity firstActivity = new Launcher(FirstActivity.class) in testTranslucentOnSplitSecondaryTask() local 147 moveTaskToPrimarySplitScreenAndVerify(firstActivity, sideActivity); in testTranslucentOnSplitSecondaryTask() 209 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testResumedWhenRestartedFromInNonFocusedTask() local 212 moveTaskToPrimarySplitScreenAndVerify(firstActivity, sideActivity); in testResumedWhenRestartedFromInNonFocusedTask() 246 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testResumedTranslucentWhenRestartedFromInNonFocusedTask() local [all …]
|
D | ActivityTests.java | 73 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testReleaseActivityInstance_invisible() local 76 mWmState.waitForActivityState(firstActivity.getComponentName(), STATE_STOPPED); in testReleaseActivityInstance_invisible() 81 firstActivity.releaseInstance()); in testReleaseActivityInstance_invisible() 82 waitAndAssertActivityStates(state(firstActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible() 228 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testFinishAffinity() local 232 state(firstActivity, ON_STOP)); in testFinishAffinity() 247 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testFinishAffinity_differentAffinity() local 248 final int firstActivityTDAFeatureId = mWmState.getTaskDisplayAreaFeatureId(firstActivity in testFinishAffinity_differentAffinity() 256 state(firstActivity, ON_STOP)); in testFinishAffinity_differentAffinity() 271 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testFinishAffinity_multiTask() local [all …]
|
D | ActivityLifecycleKeyguardTests.java | 109 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testKeyguardShowHideOverSplitScreen() local 112 moveTaskToPrimarySplitScreenAndVerify(firstActivity, secondaryActivity); in testKeyguardShowHideOverSplitScreen() 119 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testKeyguardShowHideOverSplitScreen() 127 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testKeyguardShowHideOverSplitScreen() 142 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testKeyguardShowHideOverPip() local 154 waitAndAssertActivityStates(state(firstActivity, ON_RESUME)); in testKeyguardShowHideOverPip() 161 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testKeyguardShowHideOverPip() 171 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testKeyguardShowHideOverPip()
|
D | ActivityLifecyclePipTests.java | 67 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testGoToPip() local 72 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testGoToPip() 79 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testGoToPip() 88 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testPipOnLaunch() local 100 waitAndAssertActivityStates(state(firstActivity, ON_RESUME)); in testPipOnLaunch() 115 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testDestroyPip() local 127 waitAndAssertActivityStates(state(firstActivity, ON_RESUME)); in testDestroyPip() 232 final Activity firstActivity = new Launcher(FirstActivity.class) in testSplitScreenBelowPip() local 238 moveTaskToPrimarySplitScreenAndVerify(firstActivity, sideActivity); in testSplitScreenBelowPip() 264 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testPipAboveSplitScreen() local [all …]
|
D | ActivityLifecycleTopResumedStateTests.java | 138 final Activity firstActivity = in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() local 140 waitAndAssertActivityStates(state(firstActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 146 launchActivity(new ComponentName(firstActivity, secondActivityClass)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 150 state(firstActivity, ON_STOP)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 152 transition(firstActivity.getClass(), ON_TOP_POSITION_LOST), in testTopPositionSwitchToActivityOnTopSlowDifferentProcess() 164 final Activity firstActivity = in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() local 166 waitAndAssertActivityStates(state(firstActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() 167 final Class<? extends Activity> firstActivityClass = firstActivity.getClass(); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() 173 launchActivity(new ComponentName(firstActivity, secondActivityClass)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() 177 state(firstActivity, ON_STOP)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess() [all …]
|
D | ActivityLifecycleTests.java | 116 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testLaunchOnTop() local 120 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testLaunchOnTop() 129 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testLaunchTranslucentOnTop() local 134 waitAndAssertActivityStates(occludedActivityState(firstActivity, translucentActivity)); in testLaunchTranslucentOnTop() 142 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testLaunchDoubleTranslucentOnTop() local 147 waitAndAssertActivityStates(occludedActivityState(firstActivity, translucentActivity)); in testLaunchDoubleTranslucentOnTop() 187 final Activity firstActivity = new Launcher(FirstActivity.class) in testTranslucentMovedIntoStack() local 207 state(firstActivity, ON_PAUSE)); in testTranslucentMovedIntoStack() 216 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testDestroyTopTranslucent() local 218 waitAndAssertActivityStates(occludedActivityState(firstActivity, translucentActivity)); in testDestroyTopTranslucent() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | LaunchRunner.java | 102 Activity firstActivity = launchFromContext(initialContext, firstIntent.getActualIntent()); in verify() local 106 .getTaskDisplayAreaFeatureId(firstActivity.getComponentName()); in verify() 107 activityLog.add(firstActivity); in verify() 192 Activity firstActivity = this.launchFromContext(startContext, in run() local 195 activityLog.add(firstActivity); in run()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | LockTaskTest.kt | 668 val firstActivity: Activity<TestAppActivity> = in <lambda>() constant 675 firstActivity.startActivity(secondActivityIntent) in <lambda>() 710 val firstActivity: Activity<TestAppActivity> = in <lambda>() constant 712 firstActivity.startLockTask() in <lambda>() 716 firstActivity.activity().startActivity(secondActivityIntent) in <lambda>() 756 val firstActivity: Activity<TestAppActivity> = in <lambda>() constant 758 firstActivity.startLockTask() in <lambda>() 763 firstActivity.activity().startActivity(secondActivityIntent) in <lambda>() 798 val firstActivity = testApp.activities().any().start() in <lambda>() constant 799 firstActivity.startLockTask() in <lambda>() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1158 Activity firstActivity = getInstrumentation().waitForMonitorWithTimeout(firstMonitor, 5000); in testStartActivities() local 1159 assertNotNull(firstActivity); in testStartActivities()
|