Home
last modified time | relevance | path

Searched refs:fakeSystemClock (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/turbulencenoise/
DTurbulenceNoiseControllerTest.kt38 private val fakeSystemClock = FakeSystemClock() constant
40 private val fakeExecutor = FakeExecutor(fakeSystemClock)
55 fakeSystemClock.advanceTime(config.easeInDuration.toLong()) in play_playsTurbulenceNoiseInOrder()
59 fakeSystemClock.advanceTime(config.maxDuration.toLong()) in play_playsTurbulenceNoiseInOrder()
63 fakeSystemClock.advanceTime(config.easeOutDuration.toLong()) in play_playsTurbulenceNoiseInOrder()
95 fakeSystemClock.advanceTime(config.maxDuration.toLong() / 2) in finish_mainAnimationPlaying_playsEaseOutAnimation()
113 fakeSystemClock.advanceTime(config.maxDuration.toLong() / 2) in finish_nonMainAnimationPlaying_doesNotFinishAnimation()
139 fakeSystemClock.advanceTime( in onAnimationFinished_resetsStateCorrectly()
164 fakeSystemClock.advanceTime(config.maxDuration.toLong()) in updateColor_updatesCorrectColor()
DTurbulenceNoiseViewTest.kt34 private val fakeSystemClock = FakeSystemClock() constant
36 private val fakeExecutor = FakeExecutor(fakeSystemClock)
48 fakeSystemClock.advanceTime(config.maxDuration.toLong()) in play_playsAnimation()
64 fakeSystemClock.advanceTime(config.easeInDuration.toLong()) in playEaseIn_playsEaseInAnimation()
80 fakeSystemClock.advanceTime(config.easeOutDuration.toLong()) in playEaseOut_playsEaseOutAnimation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProviderTest.kt27 import com.android.systemui.util.time.fakeSystemClock
66 kosmos.fakeSystemClock, in setup()
158 fakeSystemClock.advanceTime(1000) in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce()
180 fakeSystemClock.advanceTime(1000) in playHapticAtProgress_beforeNextDragThreshold_playsLowTicksOnce()
185 fakeSystemClock.advanceTime(dragTextureThresholdMillis.toLong()) in playHapticAtProgress_beforeNextDragThreshold_playsLowTicksOnce()
205 fakeSystemClock.advanceTime(1000) in playHapticAtProgress_afterNextDragThreshold_playsLowTicksTwice()
210 fakeSystemClock.advanceTime(dragTextureThresholdMillis.toLong()) in playHapticAtProgress_afterNextDragThreshold_playsLowTicksTwice()
300 fakeSystemClock.advanceTime(1000) in dragTextureLastProgress_afterDragTextureHaptics_keepsLastDragTextureProgress()
316 fakeSystemClock.advanceTime(1000) in dragTextureLastProgress_afterDragTextureHaptics_resetsOnHandleReleased()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/
DPackageUpdateMonitorTest.kt35 import com.android.systemui.util.time.fakeSystemClock
76 systemClock = fakeSystemClock, in setUp()
79 fakeSystemClock.setCurrentTimeMillis(0) in setUp()
103 fakeSystemClock.setCurrentTimeMillis(100) in packageAdded()
124 fakeSystemClock.setCurrentTimeMillis(200) in packageRemoved()
145 fakeSystemClock.setCurrentTimeMillis(100) in packageChanged()
166 fakeSystemClock.setCurrentTimeMillis(100) in packageUpdateStarted()
187 fakeSystemClock.setCurrentTimeMillis(100) in packageUpdateFinished()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/call/ui/viewmodel/
DCallChipViewModelTest.kt33 import com.android.systemui.util.time.fakeSystemClock
85 kosmos.fakeSystemClock.setCurrentTimeMillis(3000) in chip_inCall_startTimeConvertedToElapsedRealtime()
86 kosmos.fakeSystemClock.setElapsedRealtime(400_000) in chip_inCall_startTimeConvertedToElapsedRealtime()
112 kosmos.fakeSystemClock.setCurrentTimeMillis(3000) in chip_resetsCorrectly()
113 kosmos.fakeSystemClock.setElapsedRealtime(400_000) in chip_resetsCorrectly()
125 kosmos.fakeSystemClock.setCurrentTimeMillis(103_000) in chip_resetsCorrectly()
126 kosmos.fakeSystemClock.setElapsedRealtime(500_000) in chip_resetsCorrectly()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/homecontrols/
DHomeControlsComponentInteractorTest.kt43 import com.android.systemui.util.time.fakeSystemClock
71 fakeSystemClock.setCurrentTimeMillis(0) in setUp()
193 fakeSystemClock.advanceTime(100) in testMonitoringUpdatesAndRestart()
199 fakeSystemClock.advanceTime(MAX_UPDATE_CORRELATION_DELAY.inWholeMilliseconds) in testMonitoringUpdatesAndRestart()
206 fakeSystemClock.advanceTime(500) in testMonitoringUpdatesAndRestart()
237 fakeSystemClock.advanceTime(100) in testMonitoringUpdatesAndRestart_dreamEndsAfterDelay()
243 fakeSystemClock.advanceTime(MAX_UPDATE_CORRELATION_DELAY.inWholeMilliseconds + 100) in testMonitoringUpdatesAndRestart_dreamEndsAfterDelay()
250 fakeSystemClock.advanceTime(500) in testMonitoringUpdatesAndRestart_dreamEndsAfterDelay()
267 fakeSystemClock.setUptimeMillis(100000L) in testDreamUnexpectedlyEnds_triggersUserActivity()
DHomeControlsComponentInteractorKosmos.kt30 import com.android.systemui.util.time.fakeSystemClock
40 systemClock = fakeSystemClock, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/
DRippleAnimationTest.kt34 private val fakeSystemClock = FakeSystemClock() constant in com.android.systemui.surfaceeffects.ripple.RippleAnimationTest
35 private val fakeExecutor = FakeExecutor(fakeSystemClock)
108 fakeSystemClock.advanceTime(config.duration) in play_updatesIsPlaying()
123 fakeSystemClock.advanceTime(config.duration) in play_onEnd_triggersOnAnimationEnd()
DMultiRippleControllerTest.kt37 private val fakeSystemClock = FakeSystemClock() constant
40 private val fakeExecutor = FakeExecutor(fakeSystemClock)
99 fakeSystemClock.advanceTime(rippleAnimationConfig.duration) in play_onEnd_removesAnimation()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/concurrency/
DFakeExecutorKosmos.kt21 import com.android.systemui.util.time.fakeSystemClock
23 var Kosmos.fakeExecutor by Kosmos.Fixture { FakeExecutor(fakeSystemClock) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/common/data/repository/
DPackageChangeRepositoryKosmos.kt20 import com.android.systemui.util.time.fakeSystemClock
25 Kosmos.Fixture { FakePackageChangeRepository(fakeSystemClock) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogDelegateTest.kt92 private val fakeSystemClock = FakeSystemClock() constant
116 fakeSystemClock, in setUp()
167 fakeSystemClock.setElapsedRealtime(Long.MAX_VALUE) in testShowDialog_displayBluetoothDevice()
216 fakeSystemClock, in testDeviceItemViewHolder_cachedDeviceBusy()
236 fakeSystemClock.setElapsedRealtime(Long.MAX_VALUE) in testOnDeviceUpdated_hideSeeAll_showPairNew()
271 fakeSystemClock, in testShowDialog_cachedHeightLargerThanMinHeight_displayFromCachedHeight()
294 fakeSystemClock, in testShowDialog_cachedHeightLessThanMinHeight_displayFromUiProperties()
317 fakeSystemClock, in testShowDialog_bluetoothEnabled_autoOnToggleGone()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/chips/call/ui/viewmodel/
DCallChipViewModelKosmos.kt23 import com.android.systemui.util.time.fakeSystemClock
30 systemClock = fakeSystemClock, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DTemperatureControlBehaviorTest.kt33 private val fakeSystemClock = FakeSystemClock() constant in com.android.systemui.controls.ui.TemperatureControlBehaviorTest
47 FakeExecutor(fakeSystemClock), in setup()
48 FakeExecutor(fakeSystemClock), in setup()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/chips/screenrecord/ui/viewmodel/
DScreenRecordChipViewModelKosmos.kt24 import com.android.systemui.util.time.fakeSystemClock
33 systemClock = fakeSystemClock, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/viewmodel/
DCastToOtherDeviceChipViewModelKosmos.kt24 import com.android.systemui.util.time.fakeSystemClock
31 systemClock = fakeSystemClock, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/chips/sharetoapp/ui/viewmodel/
DShareToAppChipViewModelKosmos.kt24 import com.android.systemui.util.time.fakeSystemClock
31 systemClock = fakeSystemClock, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DEmergencyButtonControllerTest.kt64 val fakeSystemClock = FakeSystemClock() constant in com.android.keyguard.EmergencyButtonControllerTest
65 val mainExecutor = FakeExecutor(fakeSystemClock)
66 val backgroundExecutor = FakeExecutor(fakeSystemClock)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImplTest.kt65 private lateinit var fakeSystemClock: FakeSystemClock variable in com.android.systemui.statusbar.policy.FlashlightControllerImplTest
73 fakeSystemClock = FakeSystemClock() in setup()
74 backgroundExecutor = FakeExecutor(fakeSystemClock) in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DAppAdapterTest.kt51 private val fakeSystemClock = FakeSystemClock() in <lambda>() constant
52 private val backgroundExecutor = FakeExecutor(fakeSystemClock) in <lambda>()
53 private val uiExecutor = FakeExecutor(fakeSystemClock) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/events/
DSystemEventCoordinatorTest.kt49 private val fakeSystemClock = FakeSystemClock() constant
63 fakeSystemClock, in setup()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/slider/
DSeekbarHapticPluginTest.kt27 import com.android.systemui.util.time.fakeSystemClock
147 kosmos.fakeSystemClock, in createPlugin()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/time/
DFakeSystemClockKosmos.kt35 val Kosmos.fakeSystemClock by Kosmos.Fixture { FakeSystemClock() } in <lambda>() constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DLetterboxBackgroundProviderTest.kt47 private val fakeSystemClock = FakeSystemClock() in <lambda>() constant
48 private val fakeExecutor = FakeExecutor(fakeSystemClock) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/
DCloseShadeRightAfterClickTestB339290820.kt46 import com.android.systemui.util.time.fakeSystemClock
63 bindDelayExecutor = FakeExecutor(fakeSystemClock) in <lambda>()

12