Home
last modified time | relevance | path

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

/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
DActivityManagerTestBase.java786 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(activityName, in verifyLifecycleCondition() local
789 if (lifecycleCounts.mDestroyCount < 1) { in verifyLifecycleCondition()
791 + lifecycleCounts.mDestroyCount; in verifyLifecycleCondition()
793 if (lifecycleCounts.mCreateCount < 1) { in verifyLifecycleCondition()
795 + lifecycleCounts.mCreateCount; in verifyLifecycleCondition()
798 if (lifecycleCounts.mDestroyCount > 0) { in verifyLifecycleCondition()
800 + lifecycleCounts.mDestroyCount; in verifyLifecycleCondition()
802 if (lifecycleCounts.mCreateCount > 0) { in verifyLifecycleCondition()
804 + lifecycleCounts.mCreateCount; in verifyLifecycleCondition()
806 if (lifecycleCounts.mConfigurationChangedCount < 1) { in verifyLifecycleCondition()
[all …]
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/
DActivityManagerPinnedStackTests.java794 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(PIP_ACTIVITY, in testStopBeforeMultiWindowCallbacksOnDismiss() local
796 if (lifecycleCounts.mStopCount != 1) { in testStopBeforeMultiWindowCallbacksOnDismiss()
797 fail(PIP_ACTIVITY + " has received " + lifecycleCounts.mStopCount in testStopBeforeMultiWindowCallbacksOnDismiss()
799 } else if (lifecycleCounts.mPictureInPictureModeChangedCount != 1) { in testStopBeforeMultiWindowCallbacksOnDismiss()
800 fail(PIP_ACTIVITY + " has received " + lifecycleCounts.mPictureInPictureModeChangedCount in testStopBeforeMultiWindowCallbacksOnDismiss()
802 } else if (lifecycleCounts.mMultiWindowModeChangedCount != 1) { in testStopBeforeMultiWindowCallbacksOnDismiss()
803 fail(PIP_ACTIVITY + " has received " + lifecycleCounts.mMultiWindowModeChangedCount in testStopBeforeMultiWindowCallbacksOnDismiss()
806 int lastStopLine = lifecycleCounts.mLastStopLineIndex; in testStopBeforeMultiWindowCallbacksOnDismiss()
807 int lastPipLine = lifecycleCounts.mLastPictureInPictureModeChangedLineIndex; in testStopBeforeMultiWindowCallbacksOnDismiss()
808 int lastMwLine = lifecycleCounts.mLastMultiWindowModeChangedLineIndex; in testStopBeforeMultiWindowCallbacksOnDismiss()
[all …]
DActivityManagerDisplayTests.java1451 final ActivityLifecycleCounts lifecycleCounts in assertMovedToDisplay() local
1453 if (lifecycleCounts.mDestroyCount != 0) { in assertMovedToDisplay()
1454 fail(componentName + " has been destroyed " + lifecycleCounts.mDestroyCount in assertMovedToDisplay()
1456 } else if (lifecycleCounts.mCreateCount != 0) { in assertMovedToDisplay()
1457 fail(componentName + " has been (re)created " + lifecycleCounts.mCreateCount in assertMovedToDisplay()
1459 } else if (lifecycleCounts.mConfigurationChangedCount != 1) { in assertMovedToDisplay()
1461 + lifecycleCounts.mConfigurationChangedCount in assertMovedToDisplay()
1463 } else if (lifecycleCounts.mMovedToDisplayCount != 1) { in assertMovedToDisplay()
1465 + lifecycleCounts.mMovedToDisplayCount in assertMovedToDisplay()
DActivityManagerDockedStackTests.java126 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts( in testLaunchToSideMultiWindowCallbacks() local
128 if (lifecycleCounts.mMultiWindowModeChangedCount != 1) { in testLaunchToSideMultiWindowCallbacks()
130 + lifecycleCounts.mMultiWindowModeChangedCount in testLaunchToSideMultiWindowCallbacks()