Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/time/
DFakeSystemClock.java68 advanceTime(uptime - mUptimeMillis); in setUptimeMillis()
75 public void advanceTime(long uptime) { in advanceTime() method in FakeSystemClock
76 advanceTime(uptime, 0); in advanceTime()
79 public void advanceTime(long uptime, long sleepTime) { in advanceTime() method in FakeSystemClock
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescerTest.java99 mClock.advanceTime(MIN_LINGER_DURATION); in testUngroupedNotificationsAreNotCoalesced()
147 mClock.advanceTime(2); in testCoalescedNotificationsArePosted()
155 mClock.advanceTime(3); in testCoalescedNotificationsArePosted()
168 mClock.advanceTime(MIN_LINGER_DURATION); in testCoalescedNotificationsArePosted()
219 mClock.advanceTime(MIN_LINGER_DURATION); in testCoalescedEventsThatAreLaterUngroupedAreEmittedImmediatelyAndNotLater()
232 mClock.advanceTime(2); in testUpdatingCoalescedNotifTriggersBatchEmit()
238 mClock.advanceTime(4); in testUpdatingCoalescedNotifTriggersBatchEmit()
257 mClock.advanceTime(MIN_LINGER_DURATION); in testUpdatingCoalescedNotifTriggersBatchEmit()
317 mClock.advanceTime(MIN_LINGER_DURATION); in testRankingsAreUpdated()
332 mClock.advanceTime(4); in testMaxLingerDuration()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DRepeatableExecutorTest.java88 mFakeClock.advanceTime(2 * DELAY); in testExecuteAfterStartDelay()
110 mFakeClock.advanceTime(DELAY); in testAdvanceTimeTwice()
112 mFakeClock.advanceTime(DELAY); in testAdvanceTimeTwice()
125 mFakeClock.advanceTime(DELAY); in testCancel()
136 mFakeClock.advanceTime(DELAY); in testCancelAfterStart()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DLogBufferFreezerTest.kt89 clock.advanceTime(501) in testBuffersAreUnfrozenAfterTimeout()
100 clock.advanceTime(499) in testBuffersAreNotPrematurelyUnfrozen()
109 clock.advanceTime(101) in testBuffersAreNotPrematurelyUnfrozen()
113 clock.advanceTime(401) in testBuffersAreNotPrematurelyUnfrozen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceNotificationListenerTest.java86 mClock.advanceTime(MIN_FGS_TIME_MS + 1); in testShouldExtendLifetime_shouldNot_foreground()
95 mClock.advanceTime(MIN_FGS_TIME_MS + 1); in testShouldExtendLifetime_shouldNot_notForeground()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java360 private void advanceTime(long timeMs) { in advanceTime() method in PowerManagerServiceTest
574 advanceTime(interval + 1 /* just a little more */); in testWasDeviceIdleFor_true()
746 advanceTime(150); in testInattentiveSleep_userActivityDismissesWarning()
764 advanceTime(50); in testInattentiveSleep_warningHiddenAfterWakingUp()
767 advanceTime(70); in testInattentiveSleep_warningHiddenAfterWakingUp()
788 advanceTime(20); in testInattentiveSleep_goesToSleepAfterTimeout()
807 advanceTime(60); in testInattentiveSleep_goesToSleepWithWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifCollectionTest.java1279 mClock.advanceTime(5001); in testClearNotificationDoesntThrowIfMissing()
1298 mClock.advanceTime(4999); in testClearNotificationDoesntThrowIfInForgivenessWindow()