Home
last modified time | relevance | path

Searched refs:mSystemStateInterface (Results 1 – 6 of 6) 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()
122 return mSystemStateInterface.getRunningProcesses(); in getRunningProcesses()
195 mSystemStateInterface.shutdown(); in shutdown()
200 return mSystemStateInterface.enterDeepSleep(); in enterDeepSleep()
205 return mSystemStateInterface.enterHibernation(); in enterHibernation()
210 mSystemStateInterface.scheduleActionForBootCompleted(action, delay); in scheduleActionForBootCompleted()
216 mSystemStateInterface.scheduleActionForBootCompleted(action, delay, delayRange); in scheduleActionForBootCompleted()
221 return mSystemStateInterface.isWakeupCausedByTimer(); in isWakeupCausedByTimer()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systeminterface/
DSystemStateInterfaceTest.java65 private SystemStateInterface.DefaultImpl mSystemStateInterface; field in SystemStateInterfaceTest
73 mSystemStateInterface = new SystemStateInterface.DefaultImpl(mMockContext); in setUp()
85 assertThat(mSystemStateInterface.enterDeepSleep()).isTrue(); in testSleepWhenHelperSucceeds()
92 assertThat(mSystemStateInterface.enterDeepSleep()).isFalse(); in testSleepWhenHelperFails()
99 assertThat(mSystemStateInterface.enterHibernation()).isTrue(); in testHibernateWhenHelperSucceeds()
115 assertThat(mSystemStateInterface.enterHibernation()).isFalse(); in testHibernateWhenHelperFails()
124 mSystemStateInterface.scheduleActionForBootCompleted(() -> { in testScheduleActionForBootCompleted()
147 mSystemStateInterface.scheduleActionForBootCompleted(() -> { in testScheduleActionForBootCompleted_receivedIntent()
154 mSystemStateInterface.scheduleActionForBootCompleted(() -> { in testScheduleActionForBootCompleted_receivedIntent()
169 mSystemStateInterface.scheduleActionForBootCompleted(() -> { in testScheduleActionForBootCompleted_userUnlocked()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DIoStatsTracker.java53 private final SystemStateInterface mSystemStateInterface; field in IoStatsTracker
68 mSystemStateInterface = systemStateInterface; in IoStatsTracker()
78 return mSystemStateInterface.getRunningProcesses(); in update()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java220 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagementServiceUnitTest
280 .withSystemStateInterface(mSystemStateInterface) in setUp()
331 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
352 mSystemStateInterface.setWakeupCausedByTimer(true); in testCanHibernate()
353 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testCanHibernate()
535 mSystemStateInterface.setWakeupCausedByTimer(true); in hibernateImmediately()
536 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in hibernateImmediately()
561 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownImmediately()
615 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testEmergencyShutdown()
725 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in testShutdownOnSuspend()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/remoteaccess/
DCarRemoteAccessManagerTest.java126 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarRemoteAccessManagerTest
300 return mSystemStateInterface; in createMockSystemStateInterface()
383 mSystemStateInterface.runPostBootActions(); in testInitialBindRemoteTaskClientService()
456 mSystemStateInterface.runPostBootActions(); in testRemoteTaskDeliveredToClient_taskArriveAfterClientRegistration()
495 mSystemStateInterface.runPostBootActions(); in testRemoteTaskDeliveredToClient_taskArriveBeforePackageDiscovery()
517 mSystemStateInterface.runPostBootActions(); in testRemoteTaskDeliveredToClient_taskArriveAfterPackageDiscoveryBeforeRegister()
535 mSystemStateInterface.runPostBootActions(); in getClientIdAndWaitForSystemBoot()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java113 private final MockSystemStateInterface mSystemStateInterface = new MockSystemStateInterface(); field in CarPowerManagerUnitTest
158 .withSystemStateInterface(mSystemStateInterface) in setUp()