Searched refs:lifecycleCounts (Results 1 – 4 of 4) sorted by relevance
786 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(activityName, in verifyLifecycleCondition() local789 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 …]
794 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts(PIP_ACTIVITY, in testStopBeforeMultiWindowCallbacksOnDismiss() local796 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 …]
1451 final ActivityLifecycleCounts lifecycleCounts in assertMovedToDisplay() local1453 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()
126 final ActivityLifecycleCounts lifecycleCounts = new ActivityLifecycleCounts( in testLaunchToSideMultiWindowCallbacks() local128 if (lifecycleCounts.mMultiWindowModeChangedCount != 1) { in testLaunchToSideMultiWindowCallbacks()130 + lifecycleCounts.mMultiWindowModeChangedCount in testLaunchToSideMultiWindowCallbacks()