Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/systeminterface/
DSystemInterface.java47 private final SystemStateInterface mSystemStateInterface; field in SystemInterface
62 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 …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemStateInterfaceTest.java46 private SystemStateInterface.DefaultImpl mSystemStateInterface; field in SystemStateInterfaceTest
53 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()
DCarPowerManagementServiceTest.java92 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagementServiceTest
128 .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 …]
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DIoStatsTracker.java50 private final SystemStateInterface mSystemStateInterface; field in IoStatsTracker
62 mSystemStateInterface = systemStateInterface; in IoStatsTracker()
72 return mSystemStateInterface.getRunningProcesses(); in update()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java64 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagerUnitTest
86 .withSystemStateInterface(mSystemStateInterface) in setUp()