Searched refs:mSystemStateInterface (Results 1 – 5 of 5) sorted by relevance
47 private final SystemStateInterface mSystemStateInterface; field in SystemInterface62 mSystemStateInterface = systemStateInterface; in SystemInterface()72 public SystemStateInterface getSystemStateInterface() { return mSystemStateInterface; } in getSystemStateInterface()76 mSystemStateInterface.setCarServiceHelper(helper); in setCarServiceHelper()121 return mSystemStateInterface.getRunningProcesses(); in getRunningProcesses()166 mSystemStateInterface.shutdown(); in shutdown()171 return mSystemStateInterface.enterDeepSleep(); in enterDeepSleep()176 mSystemStateInterface.scheduleActionForBootCompleted(action, delay); in scheduleActionForBootCompleted()181 return mSystemStateInterface.isWakeupCausedByTimer(); in isWakeupCausedByTimer()186 return mSystemStateInterface.isSystemSupportingDeepSleep(); in isSystemSupportingDeepSleep()[all …]
46 private SystemStateInterface.DefaultImpl mSystemStateInterface; field in SystemStateInterfaceTest53 mSystemStateInterface = new SystemStateInterface.DefaultImpl(mMockContext); in setUp()58 mSystemStateInterface.setCarServiceHelper(mTestHelperGood); in testSleepWhenHelperSucceeds()59 assertThat(mSystemStateInterface.enterDeepSleep()).isTrue(); in testSleepWhenHelperSucceeds()64 mSystemStateInterface.setCarServiceHelper(mTestHelperFails); in testSleepWhenHelperFails()65 assertThat(mSystemStateInterface.enterDeepSleep()).isFalse(); in testSleepWhenHelperFails()70 mSystemStateInterface.setCarServiceHelper(null); in testSleepWithNullHelper()71 assertThat(mSystemStateInterface.enterDeepSleep()).isFalse(); in testSleepWithNullHelper()131 mSystemStateInterface.setCarServiceHelper(serviceHelper); in sleepWithDelayedHelper()134 return mSystemStateInterface.enterDeepSleep(); in sleepWithDelayedHelper()
92 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagementServiceTest128 .withSystemStateInterface(mSystemStateInterface) in setUp()194 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdown()215 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownImmediately()250 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownOnSuspend()302 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testSleepImmediately()314 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownWithProcessing()325 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testSleepEntryAndWakeup()515 mSystemStateInterface.setWakeupCausedByTimer(true); in suspendAndResume()516 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in suspendAndResume()[all …]
50 private final SystemStateInterface mSystemStateInterface; field in IoStatsTracker62 mSystemStateInterface = systemStateInterface; in IoStatsTracker()72 return mSystemStateInterface.getRunningProcesses(); in update()
64 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagerUnitTest86 .withSystemStateInterface(mSystemStateInterface) in setUp()