Home
last modified time | relevance | path

Searched refs:mTestClock (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakefulnessSessionObserverTest.java70 private OffsettableClock mTestClock; field in WakefulnessSessionObserverTest
83 return mTestClock::now;
89 mTestClock = new OffsettableClock.Stopped(); in setUp()
118 long firstActivityTimestamp = mTestClock.now(); in testOnUserActivity_updateActivity()
127 long newActivityTimestamp = mTestClock.now(); in testOnUserActivity_updateActivity()
181 mTestClock.now()); in testOnWakefulnessChangeStarted_onDozing_UserActivityAttention_OverrideTimeout()
183 mTestClock.now(), powerGroupId, PowerManager.USER_ACTIVITY_EVENT_ATTENTION); in testOnWakefulnessChangeStarted_onDozing_UserActivityAttention_OverrideTimeout()
190 mTestClock.now()); in testOnWakefulnessChangeStarted_onDozing_UserActivityAttention_OverrideTimeout()
208 mTestClock.now()); in testOnWakefulnessChangeStarted_onDozing_UserActivityButton()
211 long userActivityTime = mTestClock.now(); in testOnWakefulnessChangeStarted_onDozing_UserActivityButton()
[all …]
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DCrashRecoveryTest.java109 private final TestClock mTestClock = new TestClock(); field in CrashRecoveryTest
419 mConnectivityModuleConnector, mTestClock); in createWatchdog()
632 mTestClock.moveTimeForward(milliSeconds); in moveTimeForwardAndDispatch()
DPackageWatchdogTest.java110 private final TestClock mTestClock = new TestClock(); field in PackageWatchdogTest
1699 mTestClock.moveTimeForward(milliSeconds); in moveTimeForwardAndDispatch()
1731 mConnectivityModuleConnector, mTestClock); in createWatchdog()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsControllerTest.java118 private OffsettableClock mTestClock; field in InsetsControllerTest
134 mTestClock = new OffsettableClock(); in setup()
135 mTestHandler = new TestHandler(null, mTestClock); in setup()
619 mTestClock.fastForward(2500); in testControlImeNotReady_timeout()
645 mTestClock.fastForward(2500); in testControlImeNotReady_cancel()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java267 private final TestClock mTestClock = new TestClock(); field in ZenModeHelperTest
318 mZenModeHelper = new ZenModeHelper(mContext, mTestableLooper.getLooper(), mTestClock, in setUp()
5199 mTestClock.setNowMillis(1000); in removeAndAddAutomaticZenRule_wasCustomized_isRestored()
5217 mTestClock.advanceByMillis(1000); in removeAndAddAutomaticZenRule_wasCustomized_isRestored()
5224 mTestClock.advanceByMillis(1000); in removeAndAddAutomaticZenRule_wasCustomized_isRestored()
5254 mTestClock.setNowMillis(1000); in removeAndAddAutomaticZenRule_wasNotCustomized_isNotRestored()
5264 mTestClock.advanceByMillis(1000); in removeAndAddAutomaticZenRule_wasNotCustomized_isNotRestored()
5271 mTestClock.advanceByMillis(1000); in removeAndAddAutomaticZenRule_wasNotCustomized_isNotRestored()
5286 mTestClock.setNowMillis(1000); in removeAndAddAutomaticZenRule_recreatedButNotByApp_isNotRestored()
5296 mTestClock.advanceByMillis(1000); in removeAndAddAutomaticZenRule_recreatedButNotByApp_isNotRestored()
[all …]