Home
last modified time | relevance | path

Searched refs:mWakeupPolicy (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java86 private WakeupPolicy mWakeupPolicy; field in ControllerTest
92 mWakeupPolicy = new WakeupPolicy(sTemplateWakeupSchedule); in setUp()
96 mWakeupPolicy, in setUp()
128 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(0); in testOnShutdownCancelled_shouldCancelGarageMode()
157 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(2); in testWakeupTimeProgression()
169 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(i + 3); in testWakeupTimeProgression()
194 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(0); in startAndAssertGarageModeWithSignal()
201 assertThat(mController.mWakeupPolicy.mIndex).isEqualTo(1); in startAndAssertGarageModeWithSignal()
/packages/services/Car/service/src/com/android/car/garagemode/
DController.java40 @VisibleForTesting final WakeupPolicy mWakeupPolicy; field in Controller
58 mWakeupPolicy = in Controller()
144 mWakeupPolicy.incrementCounter(); in initiateGarageMode()
153 mWakeupPolicy.resetCounter(); in resetGarageMode()
167 if (mWakeupPolicy.getNextWakeUpInterval() <= 0) { in scheduleNextWakeup()
171 int seconds = mWakeupPolicy.getNextWakeUpInterval(); in scheduleNextWakeup()