Home
last modified time | relevance | path

Searched refs:advanceTimeBy (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DFoldLightRevealOverlayAnimationTest.kt41 import kotlinx.coroutines.test.advanceTimeBy
102 advanceTimeBy(SHORT_DELAY_MS) in foldToAod_doNotPlayFoldAnimation()
104 advanceTimeBy(ANIMATION_DURATION) in foldToAod_doNotPlayFoldAnimation()
114 advanceTimeBy(SHORT_DELAY_MS) in foldToScreenOff_doNotPlayFoldAnimation()
115 advanceTimeBy(ANIMATION_DURATION) in foldToScreenOff_doNotPlayFoldAnimation()
125 advanceTimeBy(WAIT_FOR_ANIMATION_TIMEOUT_MS) in foldToScreenOnWithDelay_doNotPlayFoldAnimation()
127 advanceTimeBy(SHORT_DELAY_MS) in foldToScreenOnWithDelay_doNotPlayFoldAnimation()
128 advanceTimeBy(ANIMATION_DURATION) in foldToScreenOnWithDelay_doNotPlayFoldAnimation()
138 advanceTimeBy(SHORT_DELAY_MS) in immediateUnfoldAfterFold_removeOverlayAfterCancellation()
139 advanceTimeBy(ANIMATION_DURATION) in immediateUnfoldAfterFold_removeOverlayAfterCancellation()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/events/
DSystemStatusAnimationSchedulerImplTest.kt44 import kotlinx.coroutines.test.advanceTimeBy
126 advanceTimeBy(DEBOUNCE_DELAY + 1) in <lambda>()
134 animatorTestRule.advanceTimeBy(APPEAR_ANIMATION_DURATION) in <lambda>()
135 advanceTimeBy(APPEAR_ANIMATION_DURATION) in <lambda>()
142 advanceTimeBy(DISPLAY_LENGTH + 1) in <lambda>()
150 animatorTestRule.advanceTimeBy(DISAPPEAR_ANIMATION_DURATION) in <lambda>()
183 advanceTimeBy(DEBOUNCE_DELAY + 1) in <lambda>()
190 animatorTestRule.advanceTimeBy(APPEAR_ANIMATION_DURATION) in <lambda>()
191 advanceTimeBy(APPEAR_ANIMATION_DURATION + 1) in <lambda>()
197 advanceTimeBy(DISPLAY_LENGTH + 1) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/android/animation/
DAnimatorTestRulePrecisionTest.kt63 animatorTestRule.advanceTimeBy(50) in testSingleAnimator()
68 animatorTestRule.advanceTimeBy(49) in testSingleAnimator()
73 animatorTestRule.advanceTimeBy(1) in testSingleAnimator()
88 animatorTestRule.advanceTimeBy(49) in testDelayedAnimator()
93 animatorTestRule.advanceTimeBy(1) in testDelayedAnimator()
98 animatorTestRule.advanceTimeBy(99) in testDelayedAnimator()
103 animatorTestRule.advanceTimeBy(1) in testDelayedAnimator()
121 animatorTestRule.advanceTimeBy(99) in testTwoAnimators()
128 animatorTestRule.advanceTimeBy(1) in testTwoAnimators()
135 animatorTestRule.advanceTimeBy(99) in testTwoAnimators()
[all …]
DAnimatorTestRuleIsolationTest.kt56 animatorTestRule.advanceTimeBy(100) in testA()
79 animatorTestRule.advanceTimeBy(100) in testB()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DAnimatorTestRuleOrderTest.kt83 animatorTestRule.advanceTimeBy(99) in testTwoAnimators()
89 animatorTestRule.advanceTimeBy(1) in testTwoAnimators()
95 animatorTestRule.advanceTimeBy(99) in testTwoAnimators()
101 animatorTestRule.advanceTimeBy(1) in testTwoAnimators()
122 animatorTestRule.advanceTimeBy(50) in testChainedAnimatorsPlatformThenX()
128 animatorTestRule.advanceTimeBy(50) in testChainedAnimatorsPlatformThenX()
134 animatorTestRule.advanceTimeBy(50) in testChainedAnimatorsPlatformThenX()
140 animatorTestRule.advanceTimeBy(50) in testChainedAnimatorsPlatformThenX()
161 animatorTestRule.advanceTimeBy(50) in testChainedAnimatorsXThenPlatform()
167 animatorTestRule.advanceTimeBy(50) in testChainedAnimatorsXThenPlatform()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/
DCommunalSceneStartableTest.kt48 import kotlinx.coroutines.test.advanceTimeBy
221 advanceTimeBy(CommunalSceneStartable.AWAKE_DEBOUNCE_DELAY) in deviceAsleep_forceBlankSceneAfterTimeout()
241 advanceTimeBy(CommunalSceneStartable.AWAKE_DEBOUNCE_DELAY / 2) in deviceAsleep_wakesUpBeforeTimeout_noChangeInScene()
250 advanceTimeBy(CommunalSceneStartable.AWAKE_DEBOUNCE_DELAY) in deviceAsleep_wakesUpBeforeTimeout_noChangeInScene()
272 advanceTimeBy(CommunalSceneStartable.DOCK_DEBOUNCE_DELAY) in dockingOnLockscreen_forcesCommunal()
294 advanceTimeBy(CommunalSceneStartable.DOCK_DEBOUNCE_DELAY / 2) in dockingOnLockscreen_doesNotForceCommunalIfDreamStarts()
303 advanceTimeBy(CommunalSceneStartable.DOCK_DEBOUNCE_DELAY) in dockingOnLockscreen_doesNotForceCommunalIfDreamStarts()
320 advanceTimeBy(SCREEN_TIMEOUT.milliseconds) in hubTimeout_whenDreaming_goesToBlank()
334 advanceTimeBy(SCREEN_TIMEOUT.milliseconds) in hubTimeout_notDreaming_staysOnCommunal()
352 advanceTimeBy((SCREEN_TIMEOUT / 2).milliseconds) in hubTimeout_dreamStopped_staysOnCommunal()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DFromAodTransitionInteractorTest.kt61 import kotlinx.coroutines.test.advanceTimeBy
112 advanceTimeBy(100) // account for debouncing in testTransitionToLockscreen_onWakeup()
128 advanceTimeBy(100) // account for debouncing in testTransitionToOccluded_onWakeup_whenOccludingActivityOnTop()
144 advanceTimeBy(100) // account for debouncing in testTransitionToOccluded_onWakeUp_ifPowerButtonGestureDetected_fromAod_nonDismissibleKeyguard()
158 advanceTimeBy(100) // account for debouncing in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromAod_dismissibleKeyguard()
196 advanceTimeBy(100) // account for debouncing in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone()
230 advanceTimeBy(100) // account for debouncing in testTransitionToOccluded_onWakeUp_ifPowerButtonGestureDetectedAfterFinishedInAod_fromGone()
271 advanceTimeBy(100) // account for debouncing in testTransitionToOccluded_onWakeUp_ifPowerButtonGestureDetected_fromLockscreen()
293 advanceTimeBy(100) // account for debouncing in testWakeAndUnlock_transitionsToGone_onlyAfterDismissCallPostWakeup()
305 advanceTimeBy(100) // account for debouncing in testTransitionToOccluded_onWake()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/loadingeffect/
DLoadingEffectTest.kt62 animatorTestRule.advanceTimeBy(500L) in play_paintCallback_triggersDrawCallback()
87 animatorTestRule.advanceTimeBy(500L) in play_renderEffectCallback_triggersDrawCallback()
120 animatorTestRule.advanceTimeBy(config.easeInDuration.toLong()) in play_animationStateChangesInOrder()
121 animatorTestRule.advanceTimeBy(config.maxDuration.toLong()) in play_animationStateChangesInOrder()
122 animatorTestRule.advanceTimeBy(config.easeOutDuration.toLong()) in play_animationStateChangesInOrder()
123 animatorTestRule.advanceTimeBy(500) in play_animationStateChangesInOrder()
209 animatorTestRule.advanceTimeBy(config.easeInDuration.toLong() + 500L) in finish_finishesLoadingEffect()
214 animatorTestRule.advanceTimeBy(config.easeOutDuration.toLong() + 500L) in finish_finishesLoadingEffect()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/ui/viewmodel/
DDeviceBasedSatelliteViewModelTest.kt41 import kotlinx.coroutines.test.advanceTimeBy
143 advanceTimeBy(10.seconds) in icon_nullWhenShouldNotShow_isEmergencyOnly()
193 advanceTimeBy(10.seconds) in icon_satelliteIsOn()
220 advanceTimeBy(10.seconds) in icon_hysteresisWhenEnablingIcon()
259 advanceTimeBy(10.seconds) in icon_deviceIsProvisioned()
295 advanceTimeBy(10.seconds) in icon_wifiIsActive()
361 advanceTimeBy(10.seconds) in carrierText_nullWhenShouldNotShow_isEmergencyOnly()
413 advanceTimeBy(10.seconds) in carrierText_satelliteIsOn()
441 advanceTimeBy(10.seconds) in carrierText_hysteresisWhenEnablingText()
481 advanceTimeBy(10.seconds) in carrierText_deviceIsProvisioned()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/fragment/
DMultiSourceMinAlphaControllerTest.kt65 animatorTestRule.advanceTimeBy(TEST_ANIMATION_DURATION) in testAnimateToAlpha()
79 animatorTestRule.advanceTimeBy(TEST_ANIMATION_DURATION) in testReset()
99 animatorTestRule.advanceTimeBy(TEST_ANIMATION_DURATION / 2) in testSetAlphaForSameSourceCancelsAnimator()
101 animatorTestRule.advanceTimeBy(TEST_ANIMATION_DURATION / 2) in testSetAlphaForSameSourceCancelsAnimator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest_311121830.kt75 animatorRule.advanceTimeBy(QSIconViewImpl.QS_ANIM_LENGTH / 2) in alwaysLastIcon()
80 animatorRule.advanceTimeBy(QSIconViewImpl.QS_ANIM_LENGTH * 2) in alwaysLastIcon()
120 animatorRule.advanceTimeBy(QSIconViewImpl.QS_ANIM_LENGTH / 3) in alwaysLastIcon_twoStateChanges()
124 animatorRule.advanceTimeBy(QSIconViewImpl.QS_ANIM_LENGTH / 3) in alwaysLastIcon_twoStateChanges()
129 animatorRule.advanceTimeBy(QSIconViewImpl.QS_ANIM_LENGTH * 2) in alwaysLastIcon_twoStateChanges()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationWakeUpCoordinatorTest.kt240 animatorTestRule.advanceTimeBy(delayedDozeDelay) in verifyDozeAmountOutputTracksDelay()
250 animatorTestRule.advanceTimeBy(delayedDozeDuration / 2) in verifyDozeAmountOutputTracksDelay()
255 animatorTestRule.advanceTimeBy(delayedDozeDuration / 2) in verifyDozeAmountOutputTracksDelay()
260 animatorTestRule.advanceTimeBy(delayedDozeDuration) in verifyDozeAmountOutputTracksDelay()
303 animatorTestRule.advanceTimeBy(delayedDozeDelay - 1) in verifyWakeUpListenerCallbacksWhenDelayingAnimation()
306 animatorTestRule.advanceTimeBy(1) in verifyWakeUpListenerCallbacksWhenDelayingAnimation()
316 animatorTestRule.advanceTimeBy(delayedDozeDuration / 2) in verifyWakeUpListenerCallbacksWhenDelayingAnimation()
322 animatorTestRule.advanceTimeBy(delayedDozeDuration / 2 - 1) in verifyWakeUpListenerCallbacksWhenDelayingAnimation()
326 animatorTestRule.advanceTimeBy(1) in verifyWakeUpListenerCallbacksWhenDelayingAnimation()
332 animatorTestRule.advanceTimeBy(delayedDozeDuration) in verifyWakeUpListenerCallbacksWhenDelayingAnimation()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/animation/
DAnimatorTestRule.kt40 Consumer<Long> { timeDelta -> androidxRule.advanceTimeBy(timeDelta) } in <lambda>()
66 fun advanceTimeBy(timeDelta: Long) { in <lambda>() method
70 platformRule.advanceTimeBy(timeDelta, advanceAndroidXTimeBy) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/backlight/ui/
DKeyboardBacklightDialogCoordinatorTest.kt35 import kotlinx.coroutines.test.advanceTimeBy in <lambda>()
115 advanceTimeBy(timeoutMillis + 1) in <lambda>()
124 advanceTimeBy(timeoutMillis * 2 / 3) in <lambda>()
129 advanceTimeBy(timeoutMillis * 2 / 3) in <lambda>()
132 advanceTimeBy(timeoutMillis * 2 / 3) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/glowboxeffect/
DGlowBoxEffectTest.kt80 animatorTestRule.advanceTimeBy(50L) in play_paintCallback_triggersDrawCallback()
93 animatorTestRule.advanceTimeBy(config.easeInDuration + 50L) in play_followsAnimationStateInOrder()
97 animatorTestRule.advanceTimeBy(config.duration + 50L) in play_followsAnimationStateInOrder()
101 animatorTestRule.advanceTimeBy(config.easeOutDuration + 50L) in play_followsAnimationStateInOrder()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/coroutines/
DTestCoroutineSchedulerUtils.kt29 fun TestCoroutineScheduler.advanceTimeBy(duration: Duration) { in TestCoroutineScheduler() method
30 advanceTimeBy(duration.inWholeMilliseconds) in TestCoroutineScheduler()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/slider/
DSeekbarHapticPluginTest.kt33 import kotlinx.coroutines.test.advanceTimeBy
102 advanceTimeBy(KEY_UP_TIMEOUT + 10L) in <lambda>()
119 advanceTimeBy(KEY_UP_TIMEOUT / 2) in <lambda>()
123 advanceTimeBy(KEY_UP_TIMEOUT / 2 + 10L) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManagerTest.kt36 import kotlinx.coroutines.test.advanceTimeBy
308 advanceTimeBy(FREE_IMAGE_DELAY_MS) in onViewHidden_fullImageShowing_placeHolderSet()
331 advanceTimeBy(FREE_IMAGE_DELAY_MS) in onViewShownToggled_viewShown_nothingHappens()
381 advanceTimeBy(FREE_IMAGE_DELAY_MS) in onViewHidden_unsupportedIconLoadedAndViewIsShown_nothingHappens()
398 advanceTimeBy(FREE_IMAGE_DELAY_MS) in onViewHidden_placeholderShowing_nothingHappens()
428 advanceTimeBy(FREE_IMAGE_DELAY_MS) in onViewHidden_alreadyHidden_nothingHappens()
435 advanceTimeBy(FREE_IMAGE_DELAY_MS) in onViewHidden_alreadyHidden_nothingHappens()
456 advanceTimeBy(FREE_IMAGE_DELAY_MS) in cancelJobs_freeImageJobRunning_jobCancelled()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DLightRevealScrimRepositoryTest.kt201 animatorTestRule.advanceTimeBy(500L) in <lambda>()
213 animatorTestRule.advanceTimeBy(250L) in <lambda>()
216 animatorTestRule.advanceTimeBy(250L) in <lambda>()
227 animatorTestRule.advanceTimeBy(500L) in <lambda>()
229 animatorTestRule.advanceTimeBy(500L) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/androidx/core/animation/
DAnimatorTestRuleIsolationTest.kt56 animatorTestRule.advanceTimeBy(100) in testA()
79 animatorTestRule.advanceTimeBy(100) in testB()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationControllerTest.java244 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback()
299 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnificationScaleOne_enabledAndWindowlessFlagOn_AnimationAndCallbackTrue()
341 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnificationScaleOne_enabledAndWindowlessFlagOff_AnimationAndCallbackTrue()
377 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnificationWithScaleLessThanOne_enabled_AnimationAndInvokeCallback()
550 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback()
577 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnificationWithOffset_windowlessFlagOn_expectedValues()
614 advanceTimeBy(mWaitAnimationDuration); in enableWindowMagnificationWithOffset_windowlessFlagOff_expectedValues()
641 advanceTimeBy(mWaitAnimationDuration); in moveWindowMagnifierToPosition_enabled_expectedValues()
663 advanceTimeBy(mWaitAnimationDuration); in moveWindowMagnifierToPositionMultipleTimes_enabled_expectedValuesToLastOne()
685 advanceTimeBy(mWaitAnimationDuration); in moveWindowMagnifierToPosition_enabling_expectedValuesToLastOne()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceEntryHapticsInteractorTest.kt42 import kotlinx.coroutines.test.advanceTimeBy
76 advanceTimeBy(10000) in powerButtonFPS_vibrateSuccess()
93 advanceTimeBy(10000) in powerButtonFPS_powerDown_doNotVibrateSuccess()
110 advanceTimeBy(50) in powerButtonFPS_powerButtonRecentlyPressed_doNotVibrateSuccess()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DKeyguardCoordinatorTest.kt354 testScheduler.advanceTimeBy(5.seconds) in unseenNotificationIsMarkedAsSeenWhenKeyguardGoesAway()
426 testScheduler.advanceTimeBy(1.seconds) in unseenNotificationIsNotMarkedAsSeenIfNotOnKeyguardLongEnough()
435 testScheduler.advanceTimeBy(4.seconds) in unseenNotificationIsNotMarkedAsSeenIfNotOnKeyguardLongEnough()
483 testScheduler.advanceTimeBy(5.seconds) in unseenNotificationOnKeyguardNotMarkedAsSeenIfRemovedAfterThreshold()
495 testScheduler.advanceTimeBy(1.seconds) in unseenNotificationOnKeyguardNotMarkedAsSeenIfRemovedAfterThreshold()
540 testScheduler.advanceTimeBy(1.seconds) in unseenNotificationOnKeyguardNotMarkedAsSeenIfRemovedBeforeThreshold()
552 testScheduler.advanceTimeBy(1.seconds) in unseenNotificationOnKeyguardNotMarkedAsSeenIfRemovedBeforeThreshold()
597 testScheduler.advanceTimeBy(1.seconds) in unseenNotificationOnKeyguardNotMarkedAsSeenIfUpdatedBeforeThreshold()
605 testScheduler.advanceTimeBy(4.seconds) in unseenNotificationOnKeyguardNotMarkedAsSeenIfUpdatedBeforeThreshold()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DSceneTransitionLayoutTest.kt207 rule.mainClock.advanceTimeBy(TestTransitionDuration / 2) in testTransitionState()
212 rule.mainClock.advanceTimeBy(TestTransitionDuration / 2 - 16) in testTransitionState()
250 rule.mainClock.advanceTimeBy(TestTransitionDuration / 2) in testSharedElement()
279 rule.mainClock.advanceTimeBy(TestTransitionDuration / 2) in testSharedElement()
303 rule.mainClock.advanceTimeBy(TestTransitionDuration) in testSharedElement()
417 rule.mainClock.advanceTimeBy(duration / 2) in multipleTransitionsWillComposeMultipleScenes()
443 rule.mainClock.advanceTimeBy(duration / 2L) in multipleTransitionsWillComposeMultipleScenes()
453 rule.mainClock.advanceTimeBy(duration / 2L) in multipleTransitionsWillComposeMultipleScenes()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardTransitionScenariosTest.kt64 import kotlinx.coroutines.test.advanceTimeBy
257 advanceTimeBy(100L) in lockscreenToDreaming()
287 advanceTimeBy(100L) in lockscreenToDreamingLockscreenHosted()
368 advanceTimeBy(100L) in dreamingLockscreenHostedToLockscreen()
508 advanceTimeBy(60L) in dozingToLockscreen()
553 advanceTimeBy(100L) in dozingToLockscreenCannotBeInterruptedByDreaming()
596 advanceTimeBy(60L) in dozingToPrimaryBouncer()
616 advanceTimeBy(60L) in dreamingToGoneWithKeyguardNotShowing()
622 advanceTimeBy(60L) in dreamingToGoneWithKeyguardNotShowing()
653 advanceTimeBy(60L) in dozingToGlanceableHub()
[all …]

123