Home
last modified time | relevance | path

Searched refs:mSystemStateInterface (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/service/src/com/android/car/systeminterface/
DSystemInterface.java43 private final SystemStateInterface mSystemStateInterface; field in SystemInterface
56 mSystemStateInterface = systemStateInterface; in SystemInterface()
63 public SystemStateInterface getSystemStateInterface() { return mSystemStateInterface; } in getSystemStateInterface()
67 mSystemStateInterface.setCarServiceHelper(helper); in setCarServiceHelper()
107 return mSystemStateInterface.getRunningProcesses(); in getRunningProcesses()
157 mSystemStateInterface.shutdown(); in shutdown()
162 return mSystemStateInterface.enterDeepSleep(); in enterDeepSleep()
167 mSystemStateInterface.scheduleActionForBootCompleted(action, delay); in scheduleActionForBootCompleted()
172 return mSystemStateInterface.isWakeupCausedByTimer(); in isWakeupCausedByTimer()
177 return mSystemStateInterface.isSystemSupportingDeepSleep(); in isSystemSupportingDeepSleep()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemStateInterfaceTest.java42 private SystemStateInterface.DefaultImpl mSystemStateInterface; field in SystemStateInterfaceTest
49 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()
DCarPowerManagementServiceTest.java99 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagementServiceTest
152 .withSystemStateInterface(mSystemStateInterface) in setUp()
227 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdown()
267 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownOnSuspend()
320 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownWithProcessing()
334 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testSleepEntryAndWakeup()
609 mSystemStateInterface.setWakeupCausedByTimer(true); in suspendAndResumeForUserSwitchingTests()
610 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in suspendAndResumeForUserSwitchingTests()
630 mSystemStateInterface.setWakeupCausedByTimer(false); in suspendAndResumeForUserSwitchingTests()
631 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in suspendAndResumeForUserSwitchingTests()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DIoStatsTracker.java42 private final SystemStateInterface mSystemStateInterface; field in IoStatsTracker
52 mSystemStateInterface = systemStateInterface; in IoStatsTracker()
59 return mSystemStateInterface.getRunningProcesses(); in update()