Home
last modified time | relevance | path

Searched refs:setNow (Results 1 – 3 of 3) sorted by relevance

/aosp12/system/security/keystore/tests/
H A Dconfirmationui_rate_limiting_test.cpp81 FakeClock::setNow(now); in TEST()
95 FakeClock::setNow(now); in TEST()
154 FakeClock::setNow(FakeClock::now() + 1s); in TEST()
225 FakeClock::setNow(now); in TEST()
240 FakeClock::setNow(FakeClock::now() + 1s); in TEST()
244 FakeClock::setNow(FakeClock::now() - 1s); in TEST()
246 FakeClock::setNow(FakeClock::now() + 1s); in TEST()
259 FakeClock::setNow(FakeClock::now() - 1s); in TEST()
261 FakeClock::setNow(FakeClock::now() + 1s); in TEST()
265 FakeClock::setNow(FakeClock::now() - 1s); in TEST()
[all …]
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
H A DSecondaryKeyRotationSchedulerTest.java77 setNow(lastRotated + mRotationIntervalMillis); in startRotationIfScheduled_rotatesIfRotationWasFarEnoughInThePast()
89 setNow(now); in startRotationIfScheduled_setsNewRotationTimeIfRotationWasFarEnoughInThePast()
100 setNow(lastRotated - 1); in startRotationIfScheduled_rotatesIfClockHasChanged()
122 setNow(now); in startRotationIfScheduled_setsNextRotationIfClockHasChanged()
133 setNow(lastRotated + mRotationIntervalMillis - 1); in startRotationIfScheduled_doesNothingIfRotationWasRecentEnough()
144 setNow(lastRotated + mRotationIntervalMillis - 1); in startRotationIfScheduled_doesNotSetRotationTimeIfRotationWasRecentEnough()
154 setNow(now); in startRotationIfScheduled_setsLastRotatedToNowIfNeverRotated()
161 private void setNow(long timestamp) { in setNow() method in SecondaryKeyRotationSchedulerTest
/aosp12/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp981 void setNow(nsecs_t now) { in setNow() function in android::TestSurface
1304 mSurface->setNow(initialCompositorTiming.deadline - 1); in TEST_F()
1443 mSurface->setNow(initialCompositorTiming.deadline - 1); in TEST_F()
1469 mSurface->setNow(mFrames[0].mRefreshes[1].kCompositorTiming.deadline); in TEST_F()
1484 mSurface->setNow(mFrames[1].mRefreshes[1].kCompositorTiming.deadline); in TEST_F()
1500 mSurface->setNow(mFrames[2].mRefreshes[1].kCompositorTiming.deadline); in TEST_F()
1529 mSurface->setNow(initialCompositorTiming.deadline - 1); in TEST_F()
1541 mSurface->setNow(initialCompositorTiming.deadline + 1); in TEST_F()
1553 mSurface->setNow( in TEST_F()
1568 mSurface->setNow( in TEST_F()
[all …]