Home
last modified time | relevance | path

Searched refs:PowerState (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java58 import com.android.car.hal.PowerHalService.PowerState;
204 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testDisplayOn()
215 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testShutdown()
219 new PowerState( in testShutdown()
235 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testSuspend()
239 new PowerState( in testSuspend()
252 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testShutdownOnSuspend()
258 new PowerState( in testShutdownOnSuspend()
266 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in testShutdownOnSuspend()
269 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.CANCEL_SHUTDOWN, 0)); in testShutdownOnSuspend()
[all …]
DMockedPowerHalService.java32 private PowerState mCurrentPowerState = new PowerState(VehicleApPowerStateReq.ON, 0);
132 public synchronized PowerState getCurrentPowerState() { in getCurrentPowerState()
136 public void setCurrentPowerState(PowerState state) { in setCurrentPowerState()
140 public void setCurrentPowerState(PowerState state, boolean notify) { in setCurrentPowerState()
/packages/services/Car/service/src/com/android/car/hal/
DPowerHalService.java105 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()
296 public PowerState getCurrentPowerState() { in getCurrentPowerState()
304 return new PowerState(state[VehicleApPowerStateReqIndex.STATE], in getCurrentPowerState()
397 listener.onApPowerStateChange(new PowerState(state, param)); in dispatchEvents()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java49 import com.android.car.hal.PowerHalService.PowerState;
249 public void onApPowerStateChange(PowerState state) { in onApPowerStateChange()
1024 CpmsState(PowerState halPowerState) { in CpmsState()