Searched refs:mTestClock (Results 1 – 5 of 5) sorted by relevance
70 private OffsettableClock mTestClock; field in WakefulnessSessionObserverTest83 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 …]
109 private final TestClock mTestClock = new TestClock(); field in CrashRecoveryTest419 mConnectivityModuleConnector, mTestClock); in createWatchdog()632 mTestClock.moveTimeForward(milliSeconds); in moveTimeForwardAndDispatch()
110 private final TestClock mTestClock = new TestClock(); field in PackageWatchdogTest1699 mTestClock.moveTimeForward(milliSeconds); in moveTimeForwardAndDispatch()1731 mConnectivityModuleConnector, mTestClock); in createWatchdog()
118 private OffsettableClock mTestClock; field in InsetsControllerTest134 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()
267 private final TestClock mTestClock = new TestClock(); field in ZenModeHelperTest318 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 …]