/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecyclePipTests.java | 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 83 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testGoToPip() 86 Arrays.asList(ON_PAUSE), "enterPip"); in testGoToPip() 103 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testPipOnLaunch() 106 Arrays.asList(ON_PAUSE, ON_RESUME); in testPipOnLaunch() 108 Arrays.asList(ON_PAUSE, ON_STOP, ON_RESTART, ON_START, ON_RESUME); in testPipOnLaunch() 113 Arrays.asList(PRE_ON_CREATE, ON_CREATE, ON_START, ON_RESUME, ON_PAUSE), in testPipOnLaunch() 131 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testDestroyPip() 149 waitAndAssertActivityStates(state(pipActivity, ON_PAUSE)); in testLaunchBelowPip() 169 waitAndAssertActivityStates(state(pipActivity, ON_PAUSE)); in testIntoPipSameTask() [all …]
|
D | ActivityLifecycleTests.java | 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 103 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE), in testLaunchTranslucentOnTop() 119 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE), in testLaunchDoubleTranslucentOnTop() 129 waitAndAssertActivityStates(state(translucentActivity, ON_PAUSE), in testLaunchDoubleTranslucentOnTop() 132 Arrays.asList(ON_PAUSE), "launch"); in testLaunchDoubleTranslucentOnTop() 168 state(firstActivity, ON_PAUSE)); in testTranslucentMovedIntoStack() 170 Arrays.asList(ON_PAUSE), "launchOnTop"); in testTranslucentMovedIntoStack() 181 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE), in testDestroyTopTranslucent() 249 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE), in testDestroyDoubleTranslucentOnTop() 250 state(translucentActivity, ON_PAUSE), state(secondTranslucentActivity, ON_RESUME)); in testDestroyDoubleTranslucentOnTop() [all …]
|
D | LifecycleVerifier.java | 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 102 expectedTransitions.add(transition(existingActivity, ON_PAUSE)); in assertLaunchSequence() 144 expectedTransitions.addAll(Arrays.asList(ON_PAUSE, ON_STOP)); in assertLaunchAndStopSequence() 156 Arrays.asList(PRE_ON_CREATE, ON_CREATE, ON_START, ON_RESUME, ON_PAUSE); in assertLaunchAndPauseSequence() 204 PRE_ON_CREATE, ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY); in assertLaunchAndDestroySequence() 223 ? Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY) in getResumeToDestroySequence() 224 : Arrays.asList(ON_PAUSE, ON_STOP, ON_DESTROY); in getResumeToDestroySequence() 239 expectedTransitions.add(ON_PAUSE); in assertResumeToStopSequence() 271 if (startState == ON_PAUSE) { in getRelaunchSequence() 273 ON_STOP, ON_DESTROY, PRE_ON_CREATE, ON_CREATE, ON_START, ON_RESUME, ON_PAUSE); in getRelaunchSequence() [all …]
|
D | ActivityLifecycleSplitScreenTests.java | 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 150 Arrays.asList(ON_PAUSE, ON_STOP), "moveToSide"); in testOccludingMovedBetweenStacks() 184 state(secondActivity, ON_PAUSE)); in testTranslucentMovedBetweenStacks() 190 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE), in testTranslucentMovedBetweenStacks() 193 Arrays.asList(ON_PAUSE), "moveToSide"); in testTranslucentMovedBetweenStacks() 310 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE)); in testResumedTranslucentWhenRestartedFromInNonFocusedStack() 350 Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY, PRE_ON_CREATE, in testLifecycleOnMoveToFromSplitScreenRelaunch() 352 ON_MULTI_WINDOW_MODE_CHANGED, ON_TOP_POSITION_LOST, ON_PAUSE); in testLifecycleOnMoveToFromSplitScreenRelaunch() 355 Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY, ON_CREATE, in testLifecycleOnMoveToFromSplitScreenRelaunch() 369 ON_POST_CREATE, ON_RESUME, ON_PAUSE, ON_MULTI_WINDOW_MODE_CHANGED, in testLifecycleOnMoveToFromSplitScreenRelaunch()
|
D | ActivityLifecycleTopResumedStateTests.java | 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 183 state(activity, ON_PAUSE)); in testTopPositionSwitchToTranslucentActivityOnTop() 213 transition(CallbackTrackingActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunch() 221 transition(LaunchForResultActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunch() 248 ON_TOP_POSITION_GAINED, ON_TOP_POSITION_LOST, ON_PAUSE, in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 260 transition(CallbackTrackingActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 268 transition(LaunchForResultActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 276 transition(ResultActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 371 Arrays.asList(ON_PAUSE, ON_NEW_INTENT, ON_RESUME, ON_TOP_POSITION_GAINED), in testTopPositionSwitchBetweenVisibleActivities() 389 ON_TOP_POSITION_LOST, ON_PAUSE, ON_NEW_INTENT, ON_RESUME, in testTopPositionNewIntent() [all …]
|
D | ActivityLifecycleKeyguardTests.java | 22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 147 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testKeyguardShowHideOverPip() 163 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testKeyguardShowHideOverPip() 166 Arrays.asList(ON_RESTART, ON_START, ON_RESUME, ON_PAUSE), "keyguardGone"); in testKeyguardShowHideOverPip()
|
D | ActivityLifecycleClientTestBase.java | 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 212 return occludingActivityIsTranslucent ? ON_PAUSE : ON_STOP; in occludedActivityState() 247 mLifecycleLogClient.onActivityCallback(ON_PAUSE); in onPause()
|
D | LifecycleLog.java | 45 ON_PAUSE, enumConstant
|
/cts/tests/tests/os/src/android/os/cts/ |
D | LaunchpadActivity.java | 123 public static final String ON_PAUSE = "onPause"; field in LaunchpadActivity 181 ON_START, ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 185 ON_START, ON_RESUME, DO_LOCAL_SCREEN, ON_PAUSE, in onCreate() 186 ON_RESTART, ON_START, ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 189 ON_START, ON_RESUME, DO_LOCAL_SCREEN, ON_PAUSE, in onCreate() 190 ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 194 ON_START, ON_RESUME, DO_LOCAL_DIALOG, ON_PAUSE, in onCreate() 195 ON_RESTART, ON_START, ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 198 ON_START, ON_RESUME, DO_LOCAL_DIALOG, ON_PAUSE, in onCreate() 199 ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() [all …]
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LaunchpadActivity.java | 129 public static final String ON_PAUSE = "onPause"; field in LaunchpadActivity 187 ON_START, ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 191 ON_START, ON_RESUME, DO_LOCAL_SCREEN, ON_PAUSE, in onCreate() 192 ON_RESTART, ON_START, ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 195 ON_START, ON_RESUME, DO_LOCAL_SCREEN, ON_PAUSE, in onCreate() 196 ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 200 ON_START, ON_RESUME, DO_LOCAL_DIALOG, ON_PAUSE, in onCreate() 201 ON_RESTART, ON_START, ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() 204 ON_START, ON_RESUME, DO_LOCAL_DIALOG, ON_PAUSE, in onCreate() 205 ON_RESUME, DO_FINISH, ON_PAUSE in onCreate() [all …]
|
D | ActivityCallbacksTestActivity.java | 43 ON_PAUSE, enumConstant 122 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_PAUSE); in ActivityCallbacksTestActivity() 217 collectEvent(Source.ACTIVITY_CALLBACK_CREATE_ONLY, Event.ON_PAUSE); in ActivityCallbacksTestActivity()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityCallbacksTest.java | 21 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_PAUSE; 157 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_PAUSE); in testActivityCallbackOrder() 222 addNestedEvents(expectedEvents, ON_PRE_PAUSE, ON_PAUSE, ON_POST_PAUSE); in testActivityCallbackOrder()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CommandSession.java | 830 onCallback(ActivityCallback.ON_PAUSE); 927 ON_PAUSE,
|
D | ActivityManagerTestBase.java | 1540 countSpec(ActivityCallback.ON_PAUSE, CountSpec.EQUALS, pauseCount),
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | PinnedStackTests.java | 1038 assertEquals("onPause", 0, lifecycleCounts.getCount(ActivityCallback.ON_PAUSE)); in testNoResumeAfterTaskOverlayFinishes()
|