Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/d2d/
DDtmfTransportTest.java102 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testStartNegotiation()
103 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testStartNegotiation()
104 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testStartNegotiation()
120 mTestExecutorService.advanceTime(NEGOTIATION_TIMEOUT_MILLIS); in testNegotiationFailsDueToTimeout()
152 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testNegotiationSuccess()
154 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testNegotiationSuccess()
156 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testNegotiationSuccess()
170 mTestExecutorService.advanceTime(NEGOTIATION_TIMEOUT_MILLIS); in testNegotiationSuccessAndDoesNotTimeOut()
189 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testReceiveSuccess()
191 mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS); in testReceiveSuccess()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DHighBrightnessModeControllerTest.java205 advanceTime(TIME_ALLOWED_IN_WINDOW_MILLIS); in testWithinHighRange_thenOverTime_thenEarnBackTime()
211 advanceTime(TIME_WINDOW_MILLIS - TIME_ALLOWED_IN_WINDOW_MILLIS); in testWithinHighRange_thenOverTime_thenEarnBackTime()
213 advanceTime(TIME_MINIMUM_AVAILABLE_TO_ENABLE_MILLIS - 1); in testWithinHighRange_thenOverTime_thenEarnBackTime()
219 advanceTime(1); in testWithinHighRange_thenOverTime_thenEarnBackTime()
236 advanceTime(TIME_ALLOWED_IN_WINDOW_MILLIS / 2); in testInHBM_ThenLowLux()
242 advanceTime(TIME_ALLOWED_IN_WINDOW_MILLIS / 2 + 1); in testInHBM_ThenLowLux()
257 advanceTime(TIME_ALLOWED_IN_WINDOW_MILLIS / 2); in testInHBM_TestMultipleEvents_DueToAutoBrightness()
263 advanceTime(1); in testInHBM_TestMultipleEvents_DueToAutoBrightness()
268 advanceTime(TIME_ALLOWED_IN_WINDOW_MILLIS / 2); in testInHBM_TestMultipleEvents_DueToAutoBrightness()
272 advanceTime(2); in testInHBM_TestMultipleEvents_DueToAutoBrightness()
[all …]
DBrightnessSynchronizerTest.java115 advanceTime(10); in testSetFloat()
127 advanceTime(10); in testSetInt()
139 advanceTime(10); in testSetIntQuickSuccession()
145 advanceTime(10); in testSetIntQuickSuccession()
155 advanceTime(10); in testSetSameIntValue_nothingUpdated()
168 advanceTime(10); in testUpdateDuringResponseIsNotOverwritten()
172 advanceTime(10); in testUpdateDuringResponseIsNotOverwritten()
182 advanceTime(10); in testUpdateDuringResponseIsNotOverwritten()
192 advanceTime(210); in testSetFloat_outOfTimeForResponse()
196 advanceTime(10); in testSetFloat_outOfTimeForResponse()
[all …]
DDisplayPowerControllerTest.java230 advanceTime(1); in testReleaseProxSuspendBlockersOnExit()
236 advanceTime(1); in testReleaseProxSuspendBlockersOnExit()
245 advanceTime(1); in testReleaseProxSuspendBlockersOnExit()
259 advanceTime(1); in testScreenOffBecauseOfProximity()
266 advanceTime(1); in testScreenOffBecauseOfProximity()
278 advanceTime(1); in testScreenOffBecauseOfProximity()
285 advanceTime(1000); in testScreenOffBecauseOfProximity()
302 advanceTime(1); in testScreenOffBecauseOfProximity_ProxSensorGone()
309 advanceTime(1); in testScreenOffBecauseOfProximity_ProxSensorGone()
322 advanceTime(1); // Run updatePowerState in testScreenOffBecauseOfProximity_ProxSensorGone()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DOneShotTimerTest.cpp66 clock->advanceTime(2ms); in TEST_F()
69 clock->advanceTime(2ms); in TEST_F()
86 clock->advanceTime(2ms); in TEST_F()
90 clock->advanceTime(2ms); in TEST_F()
93 clock->advanceTime(2ms); in TEST_F()
123 clock->advanceTime(2ms); in TEST_F()
127 clock->advanceTime(2ms); in TEST_F()
147 clock->advanceTime(200us); in TEST_F()
155 clock->advanceTime(1500us); in TEST_F()
161 clock->advanceTime(2ms); in TEST_F()
[all …]
DFpsReporterTest.cpp171 mClock->advanceTime(600ms); in TEST_F()
199 mClock->advanceTime(600ms); in TEST_F()
202 mClock->advanceTime(200ms); in TEST_F()
205 mClock->advanceTime(200ms); in TEST_F()
208 mClock->advanceTime(200ms); in TEST_F()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DAccessibilityLoggerTest.kt56 fakeClock.advanceTime(100L) in logThrottled_onceWithinWindow()
58 fakeClock.advanceTime(900L) in logThrottled_onceWithinWindow()
60 fakeClock.advanceTime(1100L) in logThrottled_onceWithinWindow()
70 fakeClock.advanceTime(100L) in logThrottled_interlacedLogsAllWithinWindow()
72 fakeClock.advanceTime(200L) in logThrottled_interlacedLogsAllWithinWindow()
74 fakeClock.advanceTime(1100L) in logThrottled_interlacedLogsAllWithinWindow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DDisplaySwitchLatencyTrackerTest.kt143 systemClock.advanceTime(50) in unfold_logsLatencyTillTransitionStarted()
147 systemClock.advanceTime(50) in unfold_logsLatencyTillTransitionStarted()
149 systemClock.advanceTime(200) in unfold_logsLatencyTillTransitionStarted()
192 systemClock.advanceTime(50) in unfold_progressUnavailable_logsLatencyTillScreenTurnedOn()
195 systemClock.advanceTime(50) in unfold_progressUnavailable_logsLatencyTillScreenTurnedOn()
198 systemClock.advanceTime(50) in unfold_progressUnavailable_logsLatencyTillScreenTurnedOn()
200 systemClock.advanceTime(200) in unfold_progressUnavailable_logsLatencyTillScreenTurnedOn()
225 systemClock.advanceTime(50) in unfold_animationDisabled_logsLatencyTillScreenTurnedOn()
228 systemClock.advanceTime(50) in unfold_animationDisabled_logsLatencyTillScreenTurnedOn()
231 systemClock.advanceTime(50) in unfold_animationDisabled_logsLatencyTillScreenTurnedOn()
[all …]
DFoldStateLoggingProviderTest.kt92 fakeClock.advanceTime(dtTime) in onFoldUpdate_startOpening_fullOpen_changeReported()
104 fakeClock.advanceTime(dtTime) in onFoldUpdate_startClosingThenFinishClosed_noInitialState_nothingReported()
116 fakeClock.advanceTime(dtTime) in onFoldUpdate_startClosingThenFinishClosed_initiallyOpened_changeReported()
129 fakeClock.advanceTime(dtTime) in onFoldUpdate_startOpeningThenHalf_initiallyClosed_changeReported()
142 fakeClock.advanceTime(dtTime) in onFoldUpdate_startClosingThenHalf_initiallyOpened_changeReported()
158 fakeClock.advanceTime(foldTime) in onFoldUpdate_foldThenUnfold_multipleReported()
160 fakeClock.advanceTime(waitingTime) in onFoldUpdate_foldThenUnfold_multipleReported()
163 fakeClock.advanceTime(unfoldTime) in onFoldUpdate_foldThenUnfold_multipleReported()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/time/
DFakeSystemClock.java67 advanceTime(uptime - mUptimeMillis); in setUptimeMillis()
85 public void advanceTime(long millis) { in advanceTime() method in FakeSystemClock
86 advanceTime(millis, 0); in advanceTime()
99 public void advanceTime(long awakeMillis, long sleepMillis) { in advanceTime() method in FakeSystemClock
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescerTest.java100 mClock.advanceTime(MIN_LINGER_DURATION); in testUngroupedNotificationsAreNotCoalesced()
148 mClock.advanceTime(2); in testCoalescedNotificationsArePosted()
156 mClock.advanceTime(3); in testCoalescedNotificationsArePosted()
169 mClock.advanceTime(MIN_LINGER_DURATION); in testCoalescedNotificationsArePosted()
220 mClock.advanceTime(MIN_LINGER_DURATION); in testCoalescedEventsThatAreLaterUngroupedAreEmittedImmediatelyAndNotLater()
233 mClock.advanceTime(2); in testUpdatingCoalescedNotifTriggersBatchEmit()
239 mClock.advanceTime(4); in testUpdatingCoalescedNotifTriggersBatchEmit()
258 mClock.advanceTime(MIN_LINGER_DURATION); in testUpdatingCoalescedNotifTriggersBatchEmit()
318 mClock.advanceTime(MIN_LINGER_DURATION); in testRankingsAreUpdated()
333 mClock.advanceTime(4); in testMaxLingerDuration()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayControllerTest.kt163 fakeClock.advanceTime(TIMEOUT_MS + 1) in displayView_wakeLockCanBeReleasedAfterTimeOut()
228 fakeClock.advanceTime(TIMEOUT_MS - 1) in displayView_viewDoesNotDisappearsBeforeTimeout()
242 fakeClock.advanceTime(TIMEOUT_MS + 1) in displayView_viewDisappearsAfterTimeout()
258 fakeClock.advanceTime(waitTime) in displayView_calledAgainBeforeTimeout_timeoutReset()
262 fakeClock.advanceTime(TIMEOUT_MS - waitTime + 1) in displayView_calledAgainBeforeTimeout_timeoutReset()
278 fakeClock.advanceTime(1000L) in displayView_calledAgainBeforeTimeout_eventuallyTimesOut()
282 fakeClock.advanceTime(TIMEOUT_MS + 1) in displayView_calledAgainBeforeTimeout_eventuallyTimesOut()
366 fakeClock.advanceTime(TIMEOUT_MS + 1) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed()
400 fakeClock.advanceTime(TIMEOUT_MS + 1) in multipleViewsWithDifferentIds_oldViewRemoved_recentViewIsDisplayed()
438 fakeClock.advanceTime(TIMEOUT_MS + 1) in multipleViewsWithDifferentIds_threeDifferentViews_recentActiveViewIsDisplayed()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DRepeatableExecutorTest.java87 mFakeClock.advanceTime(2 * DELAY); in testExecuteAfterStartDelay()
109 mFakeClock.advanceTime(DELAY); in testAdvanceTimeTwice()
111 mFakeClock.advanceTime(DELAY); in testAdvanceTimeTwice()
124 mFakeClock.advanceTime(DELAY); in testCancel()
135 mFakeClock.advanceTime(DELAY); in testCancelAfterStart()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/turbulencenoise/
DTurbulenceNoiseControllerTest.kt55 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProviderTest.kt158 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/tests/src/com/android/systemui/dump/
DLogBufferFreezerTest.kt93 clock.advanceTime(501) in testBuffersAreUnfrozenAfterTimeout()
104 clock.advanceTime(499) in testBuffersAreNotPrematurelyUnfrozen()
113 clock.advanceTime(101) in testBuffersAreNotPrematurelyUnfrozen()
117 clock.advanceTime(401) in testBuffersAreNotPrematurelyUnfrozen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DHistoryTrackerTest.java87 mSystemClock.advanceTime(9999); in testDecay()
96 mSystemClock.advanceTime(1000); in testMultipleResultsDifferentTimestamp()
110 mSystemClock.advanceTime(9999); in testCompleteDecay()
115 mSystemClock.advanceTime(1); in testCompleteDecay()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
DMediaPlayerDataTest.kt100 systemClock.advanceTime(1) in switchPlayersPlaying()
108 systemClock.advanceTime(1) in switchPlayersPlaying()
120 systemClock.advanceTime(1) in switchPlayersPlaying()
129 systemClock.advanceTime(1) in switchPlayersPlaying()
228 systemClock.advanceTime(1) in testMoveMediaKeysAround()
238 systemClock.advanceTime(1) in testMoveMediaKeysAround()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/complication/
DHideComplicationTouchHandlerTest.java120 mClock.advanceTime(HIDE_DELAY); in testSessionEndOnMultipleSessions()
153 mClock.advanceTime(HIDE_DELAY); in testSessionEndWhenBouncerShowing()
202 mClock.advanceTime(HIDE_DELAY); in testSessionEndWithTouchInInset()
252 mClock.advanceTime(HIDE_DELAY); in testSessionLifecycle()
264 mClock.advanceTime(RESTORE_TIMEOUT); in testSessionLifecycle()
295 mClock.advanceTime(HIDE_DELAY); in testNoActionWhenDisabledByFlag()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DPersistentServiceConnectionTest.java137 advanceTime(RETRY_DELAY_MS); in testRetryOnBindFailure()
147 advanceTime(RETRY_DELAY_MS * 2); in testRetryOnBindFailure()
157 advanceTime(RETRY_DELAY_MS * 4); in testRetryOnBindFailure()
179 advanceTime(RETRY_DELAY_MS); in testManualUnbindDoesNotReconnect()
188 private void advanceTime(long millis) { in advanceTime() method in PersistentServiceConnectionTest
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakefulnessSessionObserverTest.java126 advanceTime(10L); in testOnUserActivity_updateActivity()
202 advanceTime(5000L); // reset current timestamp for new test case in testOnWakefulnessChangeStarted_onDozing_UserActivityButton()
215 advanceTime(advancedTime); in testOnWakefulnessChangeStarted_onDozing_UserActivityButton()
253 advanceTime(advancedTime); in testOnWakefulnessChangeStarted_onDozing_UserActivityButton_OverrideTimeout()
289 advanceTime(10L); in testOnWakefulnessChangeStarted_inTimeoutOverride_onAwake_After_onDozing()
307 advanceTime(5000L); in testOnWakeLockReleased_UserActivityTouch()
320 private void advanceTime(long timeMs) { in advanceTime() method in WakefulnessSessionObserverTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
DBrightnessDialogTest.kt138 clock.advanceTime(BrightnessDialog.DIALOG_TIMEOUT_MILLIS.toLong()) in testTimeout()
157 clock.advanceTime(BrightnessDialog.DIALOG_TIMEOUT_MILLIS.toLong() / 2) in testRestartTimeout()
161 clock.advanceTime(BrightnessDialog.DIALOG_TIMEOUT_MILLIS.toLong() / 2) in testRestartTimeout()
165 clock.advanceTime(BrightnessDialog.DIALOG_TIMEOUT_MILLIS.toLong() / 2) in testRestartTimeout()
182 clock.advanceTime(BrightnessDialog.DIALOG_TIMEOUT_MILLIS.toLong()) in testNoTimeoutIfNotStartedByBrightnessKey()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java101 advanceTime(Duration.ofMillis(20)); in faceDownFor2Seconds_withMotion_DoesNotTriggerFaceDown()
118 advanceTime(Duration.ofMillis(5)); in faceDownForHalfSecond_DoesNotTriggerFaceDown()
221 advanceTime(Duration.ofMillis(5)); in triggerUnflip()
232 advanceTime(Duration.ofMillis(20)); in triggerFaceDown()
243 private void advanceTime(Duration duration) { in advanceTime() method in FaceDownDetectorTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DSmartspaceDedupingCoordinatorTest.kt205 clock.advanceTime(20000) in testExceptionExpires()
224 clock.advanceTime(20000) in testExceptionIsEventuallyFiltered()
246 clock.advanceTime(25000) in testExceptionIsUpdated()
253 clock.advanceTime(4500) in testExceptionIsUpdated()
290 clock.advanceTime(ALERT_WINDOW) in testReplacementIsCanceled()
309 clock.advanceTime(ALERT_WINDOW) in testRetractedIsCanceled()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/homecontrols/
DHomeControlsComponentInteractorTest.kt193 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()

123