Searched refs:PowerState (Results 1 – 4 of 4) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 36 import com.android.car.hal.PowerHalService.PowerState; 120 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testDisplayOn() 130 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testShutdown() 134 new PowerState( in testShutdown() 148 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, 0)); in testShutdownWithProcessing() 153 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in testShutdownWithProcessing() 160 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSleepEntryAndWakeup() 166 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in testSleepEntryAndWakeup() 182 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testSleepEntryAndWakeUpForProcessing() 184 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testSleepEntryAndWakeUpForProcessing() [all …]
|
D | MockedPowerHalService.java | 32 private PowerState mCurrentPowerState = new PowerState(VehicleApPowerStateReq.ON, 0); 126 public synchronized PowerState getCurrentPowerState() { in getCurrentPowerState() 130 public void setCurrentPowerState(PowerState state) { in setCurrentPowerState() 134 public void setCurrentPowerState(PowerState state, boolean notify) { in setCurrentPowerState()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | PowerHalService.java | 105 void onApPowerStateChange(PowerState state); in onApPowerStateChange() 113 public static final class PowerState { class in PowerHalService 120 public PowerState(int state, int param) { in PowerState() method in PowerHalService.PowerState 156 if (!(o instanceof PowerState)) { in equals() 159 PowerState that = (PowerState) o; in equals() 292 public PowerState getCurrentPowerState() { in getCurrentPowerState() 300 return new PowerState(state[VehicleApPowerStateReqIndex.STATE], in getCurrentPowerState() 393 listener.onApPowerStateChange(new PowerState(state, param)); in dispatchEvents()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 39 import com.android.car.hal.PowerHalService.PowerState; 213 public void onApPowerStateChange(PowerState state) { in onApPowerStateChange() 808 CpmsState(PowerState halPowerState) { in CpmsState()
|