Home
last modified time | relevance | path

Searched refs:SHUTDOWN_PREPARE (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java88 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromWaitForVhal()
104 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromOn()
115 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromShutdownPrepare()
117 VehicleApPowerStateReport.SHUTDOWN_PREPARE); in testImmediateShutdownFromShutdownPrepare()
120 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromShutdownPrepare()
133 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testCancelShutdownFromShutdownPrepare()
135 VehicleApPowerStateReport.SHUTDOWN_PREPARE); in testCancelShutdownFromShutdownPrepare()
148 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testCancelShutdownFromWaitForFinish()
188 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testInvalidTransitionsFromPrepareShutdown()
190 VehicleApPowerStateReport.SHUTDOWN_PREPARE); in testInvalidTransitionsFromPrepareShutdown()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java215 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdown()
234 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownImmediately()
255 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSuspend()
272 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownOnSuspend()
287 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownOnSuspend()
301 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownCancel()
310 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownCancel()
323 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSleepImmediately()
338 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, 0)); in testShutdownWithProcessing()
348 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSleepEntryAndWakeup()
[all …]
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java460 case CpmsState.SHUTDOWN_PREPARE: in doHandlePowerStateChange()
631 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in handleShutdownPrepare()
640 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in simulateShutdownPrepare()
827 boolean allowCompletion = (newState == CarPowerStateListener.SHUTDOWN_PREPARE); in sendPowerManagerEvent()
922 || (newState.mState == CpmsState.SHUTDOWN_PREPARE); in needPowerStateChangeLocked()
928 transitionAllowed = (newState.mState == CpmsState.SHUTDOWN_PREPARE) in needPowerStateChangeLocked()
931 case CpmsState.SHUTDOWN_PREPARE: in needPowerStateChangeLocked()
935 ((newState.mState == CpmsState.SHUTDOWN_PREPARE) && !newState.mCanPostpone) in needPowerStateChangeLocked()
1170 if (mCurrentState.mState == CpmsState.SHUTDOWN_PREPARE in signalComplete()
1639 public static final int SHUTDOWN_PREPARE = 2; field in CarPowerManagementService.CpmsState
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java129 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testOnShutdownPrepare_shouldInitiateGarageMode()
137 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testOnShutdownCancelled_shouldCancelGarageMode()
163 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testWakeupTimeProgression()
171 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
182 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
/packages/services/Car/service/src/com/android/car/hal/
DPowerHalService.java74 public static final int SET_SHUTDOWN_PREPARE = VehicleApPowerStateReport.SHUTDOWN_PREPARE;
108 case VehicleApPowerStateReq.SHUTDOWN_PREPARE: baseName = "SHUTDOWN_PREPARE"; break; in powerStateReqName()
156 if (mState != VehicleApPowerStateReq.SHUTDOWN_PREPARE) { in canEnterDeepSleep()
170 if (mState != VehicleApPowerStateReq.SHUTDOWN_PREPARE) { in canPostponeShutdown()
282 setPowerState(VehicleApPowerStateReport.SHUTDOWN_PREPARE, 0); in sendShutdownPrepare()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java153 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testRequestShutdownOnNextSuspend_positive()
166 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testRequestShutdownOnNextSuspend_negative()
179 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testScheduleNextWakeupTime()
193 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSetListener()
209 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSetListenerWithCompletion()
227 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testClearListener()
241 setPowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testGetPowerState()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java138 int SHUTDOWN_PREPARE = 7; field
527 if (state == CarPowerStateListener.SHUTDOWN_PREPARE) { in updateFutureLocked()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java336 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, future); in testStoresLocationUponShutdownPrepare()
382 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, future); in testDoesNotStoreNullLocation()
/packages/services/Car/service/src/com/android/car/garagemode/
DController.java93 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java262 sendPowerStateChange(CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE); in sendPowerShutDown()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java138 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java222 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java396 case CarPowerStateListener.SHUTDOWN_PREPARE: in subscribePowerCycleChange()