Searched refs:mSystemStateInterface (Results 1 – 6 of 6) sorted by relevance
42 private SystemStateInterface.DefaultImpl mSystemStateInterface; field in SystemStateInterfaceTest49 mSystemStateInterface = new SystemStateInterface.DefaultImpl(mMockContext); in setUp()54 mSystemStateInterface.setCarServiceHelper(mTestHelperGood); in testSleepWhenHelperSucceeds()55 assertThat(mSystemStateInterface.enterDeepSleep()).isTrue(); in testSleepWhenHelperSucceeds()60 mSystemStateInterface.setCarServiceHelper(mTestHelperFails); in testSleepWhenHelperFails()61 assertThat(mSystemStateInterface.enterDeepSleep()).isFalse(); in testSleepWhenHelperFails()66 mSystemStateInterface.setCarServiceHelper(null); in testSleepWithNullHelper()67 assertThat(mSystemStateInterface.enterDeepSleep()).isFalse(); in testSleepWithNullHelper()107 mSystemStateInterface.setCarServiceHelper(serviceHelper); in sleepWithDelayedHelper()110 return mSystemStateInterface.enterDeepSleep(); in sleepWithDelayedHelper()
47 private final SystemStateInterface mSystemStateInterface; field in SystemInterface62 mSystemStateInterface = systemStateInterface; in SystemInterface()76 mSystemStateInterface.setCarServiceHelper(helper); in setCarServiceHelper()121 return mSystemStateInterface.getRunningProcesses(); in getRunningProcesses()171 mSystemStateInterface.shutdown(); in shutdown()176 return mSystemStateInterface.enterDeepSleep(); in enterDeepSleep()186 return mSystemStateInterface.isWakeupCausedByTimer(); in isWakeupCausedByTimer()191 return mSystemStateInterface.isSystemSupportingDeepSleep(); in isSystemSupportingDeepSleep()204 private SystemStateInterface mSystemStateInterface; field in SystemInterface.Builder261 mSystemStateInterface = systemStateInterface; in withSystemStateInterface()[all …]
53 private final SystemStateInterface mSystemStateInterface; field in DataBrokerController65 mSystemStateInterface = systemStateInterface; in DataBrokerController()69 mSystemStateInterface.scheduleActionForBootCompleted( in DataBrokerController()
148 .withSystemStateInterface(mSystemStateInterface) in setUp()223 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdown()244 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownImmediately()279 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownOnSuspend()331 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testSleepImmediately()343 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownWithProcessing()354 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testSleepEntryAndWakeup()372 mSystemStateInterface.setWakeupCausedByTimer(true); in testShutdownPostponeAfterSuspend()373 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testShutdownPostponeAfterSuspend()599 mSystemStateInterface.setWakeupCausedByTimer(true); in suspendAndResume()[all …]
49 private final SystemStateInterface mSystemStateInterface; field in IoStatsTracker61 mSystemStateInterface = systemStateInterface; in IoStatsTracker()71 return mSystemStateInterface.getRunningProcesses(); in update()
100 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagerUnitTest137 .withSystemStateInterface(mSystemStateInterface) in setUp()