Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPowerManagementTest.java82 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromWaitForVhal()
98 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromOn()
109 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromShutdownPrepare()
111 VehicleApPowerStateReport.SHUTDOWN_PREPARE); in testImmediateShutdownFromShutdownPrepare()
114 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testImmediateShutdownFromShutdownPrepare()
127 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testCancelShutdownFromShutdownPrepare()
129 VehicleApPowerStateReport.SHUTDOWN_PREPARE); in testCancelShutdownFromShutdownPrepare()
169 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testInvalidTransitionsFromPrepareShutdown()
171 VehicleApPowerStateReport.SHUTDOWN_PREPARE); in testInvalidTransitionsFromPrepareShutdown()
176 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testInvalidTransitionsFromPrepareShutdown()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java311 case CpmsState.SHUTDOWN_PREPARE: in doHandlePowerStateChange()
515 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in handleShutdownPrepare()
535 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in simulateShutdownPrepare()
630 boolean allowCompletion = (newState == CarPowerStateListener.SHUTDOWN_PREPARE); in sendPowerManagerEvent()
724 || (newState.mState == CpmsState.SHUTDOWN_PREPARE); in needPowerStateChangeLocked()
728 return (newState.mState == CpmsState.SHUTDOWN_PREPARE) in needPowerStateChangeLocked()
730 case CpmsState.SHUTDOWN_PREPARE: in needPowerStateChangeLocked()
732 return ((newState.mState == CpmsState.SHUTDOWN_PREPARE) && !newState.mCanPostpone) in needPowerStateChangeLocked()
888 if (mCurrentState.mState == CpmsState.SHUTDOWN_PREPARE in signalComplete()
1007 public static final int SHUTDOWN_PREPARE = 2; field in CarPowerManagementService.CpmsState
[all …]
DBluetoothDeviceConnectionPolicy.java76 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
DCarLocationService.java209 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java220 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdown()
240 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSuspend()
259 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownOnSuspend()
276 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownOnSuspend()
293 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownCancel()
304 VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testShutdownCancel()
314 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, 0)); in testShutdownWithProcessing()
327 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSleepEntryAndWakeup()
599 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in suspendAndResumeForUserSwitchingTests()
623 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in suspendAndResumeForUserSwitchingTests()
DCarLocationServiceTest.java338 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, future); in testStoresLocationUponShutdownPrepare()
384 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, future); in testDoesNotStoreNullLocation()
DBluetoothDeviceConnectionPolicyTest.java202 sendPowerStateChanged(CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE); in testReceivePowerShutdownPrepare_disableBluetooth()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java115 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testOnShutdownPrepare_shouldInitiateGarageMode()
122 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testOnShutdownCancelled_shouldCancelGarageMode()
147 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testWakeupTimeProgression()
155 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
166 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
/packages/services/Car/service/src/com/android/car/hal/
DPowerHalService.java60 public static final int SET_SHUTDOWN_PREPARE = VehicleApPowerStateReport.SHUTDOWN_PREPARE;
92 case VehicleApPowerStateReq.SHUTDOWN_PREPARE: baseName = "SHUTDOWN_PREPARE"; break; in powerStateReqName()
132 if (mState != VehicleApPowerStateReq.SHUTDOWN_PREPARE) { in canEnterDeepSleep()
145 if (mState != VehicleApPowerStateReq.SHUTDOWN_PREPARE) { in canPostponeShutdown()
249 setPowerState(VehicleApPowerStateReport.SHUTDOWN_PREPARE, 0); in sendShutdownPrepare()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java92 int SHUTDOWN_PREPARE = 7; field
275 if (state == CarPowerStateListener.SHUTDOWN_PREPARE) { in updateFutureLocked()
/packages/services/Car/service/src/com/android/car/garagemode/
DController.java85 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java131 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {