Searched refs:PowerHalService (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 25 import com.android.car.hal.PowerHalService; 26 import com.android.car.hal.PowerHalService.PowerState; 79 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_ON_DISP_OFF, 0)); in testDisplayOff() 110 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, in testShutdown() 111 PowerHalService.FLAG_SHUTDOWN_IMMEDIATELY)); in testShutdown() 112 assertStateReceived(PowerHalService.SET_SHUTDOWN_START, wakeupTime); in testShutdown() 131 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, 0)); in testShutdownWithProcessing() 133 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_SHUTDOWN_START, in testShutdownWithProcessing() 151 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, in testSleepEntryAndWakeup() 152 PowerHalService.FLAG_SHUTDOWN_PARAM_CAN_SLEEP)); in testSleepEntryAndWakeup() [all …]
|
D | MockedPowerHalService.java | 20 import com.android.car.hal.PowerHalService; 25 public class MockedPowerHalService extends PowerHalService { 31 private PowerState mCurrentPowerState = new PowerState(PowerHalService.STATE_ON_FULL, 0);
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 25 import com.android.car.hal.PowerHalService; 26 import com.android.car.hal.PowerHalService.PowerState; 37 PowerHalService.PowerEventListener { 90 private final PowerHalService mHal; 116 public CarPowerManagementService(PowerHalService powerHal, SystemInterface systemInterface) { in CarPowerManagementService() 153 onApPowerStateChange(new PowerState(PowerHalService.STATE_ON_FULL, 0)); in init() 231 if (mCurrentState.mState != PowerHalService.STATE_SHUTDOWN_PREPARE) { in notifyPowerEventProcessingCompletion() 291 case PowerHalService.STATE_ON_DISP_OFF: in doHandlePowerStateChange() 295 case PowerHalService.STATE_ON_FULL: in doHandlePowerStateChange() 299 case PowerHalService.STATE_SHUTDOWN_PREPARE: in doHandlePowerStateChange() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 77 private final PowerHalService mPowerHal; 100 mPowerHal = new PowerHalService(this); in VehicleHal() 126 public VehicleHal(PowerHalService powerHal, SensorHalService sensorHal, InfoHalService infoHal, in VehicleHal() 146 public VehicleHal(PowerHalService powerHal, SensorHalService sensorHal, InfoHalService infoHal, in VehicleHal() 255 public PowerHalService getPowerHal() { in getPowerHal()
|
D | PowerHalService.java | 41 public class PowerHalService extends HalServiceBase { class 147 public PowerHalService(VehicleHal hal) { in PowerHalService() method in PowerHalService
|