/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecyclePipTests.java | 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 73 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), state(pipActivity, ON_PAUSE)); in testGoToPip() 76 Arrays.asList(ON_PAUSE), "enterPip"); in testGoToPip() 89 .setExpectedState(ON_PAUSE) in testPipOnLaunch() 97 Arrays.asList(ON_PAUSE, ON_RESUME); in testPipOnLaunch() 99 Arrays.asList(ON_PAUSE, ON_STOP, ON_RESTART, ON_START, ON_RESUME); in testPipOnLaunch() 104 Arrays.asList(ON_CREATE, ON_START, ON_RESUME, ON_PAUSE), "launchAndEnterPip"); in testPipOnLaunch() 117 .setExpectedState(ON_PAUSE) in testDestroyPip() 138 .setExpectedState(ON_PAUSE) in testLaunchBelowPip() 158 .setExpectedState(ON_PAUSE) in testIntoPipSameTask() [all …]
|
D | LifecycleVerifier.java | 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 114 expectedTransitions.add(transition(existingActivity, ON_PAUSE)); in assertLaunchSequence() 155 expectedTransitions.addAll(Arrays.asList(ON_PAUSE, ON_STOP)); in assertLaunchAndStopSequence() 167 Arrays.asList(ON_CREATE, ON_START, ON_RESUME, ON_PAUSE); in assertLaunchAndPauseSequence() 233 ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY); in assertLaunchAndDestroySequence() 252 ? Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY) in getResumeToDestroySequence() 253 : Arrays.asList(ON_PAUSE, ON_STOP, ON_DESTROY); in getResumeToDestroySequence() 268 expectedTransitions.add(ON_PAUSE); in assertResumeToStopSequence() 322 if (startState == ON_PAUSE) { in getRelaunchSequence() 324 ON_STOP, ON_DESTROY, ON_CREATE, ON_START, ON_RESUME, ON_PAUSE); in getRelaunchSequence() [all …]
|
D | ActivityLifecycleTests.java | 36 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 132 Arrays.asList(ON_PAUSE), "launch"); in testLaunchDoubleTranslucentOnTop() 170 state(firstActivity, ON_PAUSE)); in testTranslucentMovedIntoStack() 172 Arrays.asList(ON_PAUSE), "launchOnTop"); in testTranslucentMovedIntoStack() 320 transition(LaunchForResultActivity.class, ON_PAUSE), in testLaunchForResultAndLaunchAfterResultSequence() 329 transition(LaunchForResultActivity.class, ON_PAUSE), in testLaunchForResultAndLaunchAfterResultSequence() 452 waitAndAssertActivityStates(state(pausedActivity, ON_PAUSE)); in testRelaunchPaused() 454 LifecycleVerifier.assertRelaunchSequence(FirstActivity.class, getLifecycleLog(), ON_PAUSE); in testRelaunchPaused() 527 waitAndAssertActivityStates(state(becomingVisibleActivity, ON_PAUSE), in testRelaunchConfigurationChangedWhileBecomingVisible() 532 ON_PAUSE), "becomingVisiblePaused"); in testRelaunchConfigurationChangedWhileBecomingVisible() [all …]
|
D | ActivityLifecycleLegacySplitScreenTests.java | 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 150 waitAndAssertActivityStates(state(sideActivity, ON_PAUSE)); in testTranslucentOnSplitSecondaryTask() 246 waitAndAssertActivityStates(state(firstActivity, ON_PAUSE)); in testResumedTranslucentWhenRestartedFromInNonFocusedTask() 286 Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY, in testLifecycleOnMoveToFromSplitScreenRelaunch() 288 ON_TOP_POSITION_LOST, ON_PAUSE); in testLifecycleOnMoveToFromSplitScreenRelaunch() 291 Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY, ON_CREATE, in testLifecycleOnMoveToFromSplitScreenRelaunch() 301 ON_POST_CREATE, ON_RESUME, ON_PAUSE, ON_RESUME, ON_TOP_POSITION_GAINED); in testLifecycleOnMoveToFromSplitScreenRelaunch() 373 Arrays.asList(ON_USER_LEAVE_HINT, ON_PAUSE, ON_STOP), in testOnUserLeaveHint()
|
D | ActivityLifecycleKeyguardTests.java | 22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 136 .setExpectedState(ON_PAUSE) in testKeyguardShowHideOverPip() 158 state(PipActivity.class, ON_PAUSE)); in testKeyguardShowHideOverPip() 161 Arrays.asList(ON_RESTART, ON_START, ON_RESUME, ON_PAUSE), "keyguardGone"); in testKeyguardShowHideOverPip()
|
D | ActivityTests.java | 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 111 Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY), in testFinishTask_FromRoot() 126 waitAndAssertActivityStates(state(rootActivity, ON_PAUSE), in testFinishTask_FromRoot_TranslucentOnTop() 139 Arrays.asList(ON_TOP_POSITION_LOST, ON_PAUSE, ON_STOP, ON_DESTROY), in testFinishTask_FromRoot_TranslucentOnTop() 199 Arrays.asList(ON_PAUSE, ON_STOP, ON_DESTROY), "finishAfterTransition"); in testFinishAfterTransition_noTransition_rootOfTask() 216 Arrays.asList(ON_PAUSE, ON_STOP, ON_DESTROY), "finishAfterTransition"); in testFinishAfterTransition_noTransition()
|
D | ActivityLifecycleTopResumedStateTests.java | 31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 183 waitAndAssertActivityStates(state(activity, ON_PAUSE)); in testTopPositionSwitchToTranslucentActivityOnTop() 210 transition(CallbackTrackingActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunch() 217 transition(LaunchForResultActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunch() 244 ON_TOP_POSITION_GAINED, ON_TOP_POSITION_LOST, ON_PAUSE, in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 254 transition(CallbackTrackingActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 261 transition(LaunchForResultActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 266 transition(TranslucentResultActivity.class, ON_PAUSE), in testTopPositionSwitchOnDoubleLaunchAndTopFinish() 359 Arrays.asList(ON_PAUSE, ON_NEW_INTENT, ON_RESUME, ON_TOP_POSITION_GAINED), in testTopPositionSwitchBetweenVisibleActivities() 377 ON_TOP_POSITION_LOST, ON_PAUSE, ON_NEW_INTENT, ON_RESUME, in testTopPositionNewIntent() [all …]
|
D | LifecycleLog.java | 44 ON_PAUSE, enumConstant
|
D | ActivityLifecycleClientTestBase.java | 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 363 return occludingActivityIsTranslucent ? ON_PAUSE : ON_STOP; in occludedActivityState() 425 mLifecycleLogClient.onActivityCallback(ON_PAUSE); in onPause()
|
/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; 168 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_PAUSE); in testActivityCallbackOrder() 240 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 | 923 onCallback(ActivityCallback.ON_PAUSE); 1026 ON_PAUSE,
|
D | ActivityManagerTestBase.java | 1971 countSpec(ActivityCallback.ON_PAUSE, CountSpec.EQUALS, pauseCount),
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | PinnedStackTests.java | 1156 assertEquals("onPause", 0, lifecycleCounts.getCount(ActivityCallback.ON_PAUSE)); in testNoResumeAfterTaskOverlayFinishes()
|