Home
last modified time | relevance | path

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

/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()
/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()
171 mSystemStateInterface.shutdown(); in shutdown()
176 return mSystemStateInterface.enterDeepSleep(); in enterDeepSleep()
181 mSystemStateInterface.scheduleActionForBootCompleted(action, delay); in scheduleActionForBootCompleted()
186 return mSystemStateInterface.isWakeupCausedByTimer(); in isWakeupCausedByTimer()
191 return mSystemStateInterface.isSystemSupportingDeepSleep(); in isSystemSupportingDeepSleep()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java105 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagementServiceUnitTest
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()
[all …]
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DIoStatsTracker.java49 private final SystemStateInterface mSystemStateInterface; field in IoStatsTracker
61 mSystemStateInterface = systemStateInterface; in IoStatsTracker()
71 return mSystemStateInterface.getRunningProcesses(); in update()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java99 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagerUnitTest
134 .withSystemStateInterface(mSystemStateInterface) in setUp()