Home
last modified time | relevance | path

Searched refs:lifecycleCounts (Results 1 – 4 of 4) sorted by relevance

/cts/tests/framework/base/activitymanager/util/src/android/server/am/
DActivityManagerTestBase.java900 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(
902 if (lifecycleCounts.mCreateCount == mCreateCount
903 && lifecycleCounts.mStartCount == mStartCount
904 && lifecycleCounts.mResumeCount == mResumeCount
905 && lifecycleCounts.mPauseCount == mPauseCount
906 && lifecycleCounts.mStopCount == mStopCount
907 && lifecycleCounts.mDestroyCount == mDestroyCount) {
916 + " actual=" + lifecycleCounts.counters();
927 final ActivityLifecycleCounts lifecycleCounts =
931 if (lifecycleCounts.mDestroyCount < 1) {
[all …]
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerPinnedStackTests.java920 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts( in testEnterPipInterruptedCallbacks() local
922 assertEquals("onConfigurationChanged", 0, lifecycleCounts.mConfigurationChangedCount); in testEnterPipInterruptedCallbacks()
924 lifecycleCounts.mPictureInPictureModeChangedCount); in testEnterPipInterruptedCallbacks()
926 lifecycleCounts.mMultiWindowModeChangedCount); in testEnterPipInterruptedCallbacks()
948 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(PIP_ACTIVITY, in testStopBeforeMultiWindowCallbacksOnDismiss() local
950 assertEquals("onStop", 1, lifecycleCounts.mStopCount); in testStopBeforeMultiWindowCallbacksOnDismiss()
952 lifecycleCounts.mPictureInPictureModeChangedCount); in testStopBeforeMultiWindowCallbacksOnDismiss()
953 assertEquals("onMultiWindowModeChanged", 1, lifecycleCounts.mMultiWindowModeChangedCount); in testStopBeforeMultiWindowCallbacksOnDismiss()
954 final int lastStopLine = lifecycleCounts.mLastStopLineIndex; in testStopBeforeMultiWindowCallbacksOnDismiss()
955 final int lastPipLine = lifecycleCounts.mLastPictureInPictureModeChangedLineIndex; in testStopBeforeMultiWindowCallbacksOnDismiss()
[all …]
DActivityManagerSplitScreenTests.java156 final ActivityLifecycleCounts lifecycleCounts = waitForOnMultiWindowModeChanged( in testLaunchToSideMultiWindowCallbacks() local
158 assertEquals(1, lifecycleCounts.mMultiWindowModeChangedCount); in testLaunchToSideMultiWindowCallbacks()
170 ActivityLifecycleCounts lifecycleCounts = waitForOnMultiWindowModeChanged( in testNoUserLeaveHintOnMultiWindowModeChanged() local
173 1, lifecycleCounts.mMultiWindowModeChangedCount); in testNoUserLeaveHintOnMultiWindowModeChanged()
174 assertEquals("mUserLeaveHintCount", 0, lifecycleCounts.mUserLeaveHintCount); in testNoUserLeaveHintOnMultiWindowModeChanged()
183 lifecycleCounts = waitForOnMultiWindowModeChanged(TEST_ACTIVITY, logSeparator); in testNoUserLeaveHintOnMultiWindowModeChanged()
185 1, lifecycleCounts.mMultiWindowModeChangedCount); in testNoUserLeaveHintOnMultiWindowModeChanged()
186 assertEquals("mUserLeaveHintCount", 0, lifecycleCounts.mUserLeaveHintCount); in testNoUserLeaveHintOnMultiWindowModeChanged()
DActivityManagerMultiDisplayTests.java1576 ActivityLifecycleCounts lifecycleCounts; in testExternalDisplayActivityTurnPrimaryOff() local
1578 lifecycleCounts = new ActivityLifecycleCounts(RESIZEABLE_ACTIVITY, logSeparator); in testExternalDisplayActivityTurnPrimaryOff()
1579 if (lifecycleCounts.mStopCount == 1) { in testExternalDisplayActivityTurnPrimaryOff()
1586 if (lifecycleCounts.mStopCount != 1) { in testExternalDisplayActivityTurnPrimaryOff()
1587 fail(RESIZEABLE_ACTIVITY + " has received " + lifecycleCounts.mStopCount in testExternalDisplayActivityTurnPrimaryOff()
1759 final ActivityLifecycleCounts lifecycleCounts = in assertMovedToDisplay() local
1761 if (lifecycleCounts.mDestroyCount != 0) { in assertMovedToDisplay()
1762 fail(componentName + " has been destroyed " + lifecycleCounts.mDestroyCount in assertMovedToDisplay()
1764 } else if (lifecycleCounts.mCreateCount != 0) { in assertMovedToDisplay()
1765 fail(componentName + " has been (re)created " + lifecycleCounts.mCreateCount in assertMovedToDisplay()
[all …]