Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java26 import com.android.car.hal.PowerHalService.PowerState;
99 private PowerState mCurrentState;
107 private final LinkedList<PowerState> mPendingPowerStates = new LinkedList<>();
144 PowerState currentState = mHal.getCurrentPowerState(); in init()
153 onApPowerStateChange(new PowerState(PowerHalService.STATE_ON_FULL, 0)); in init()
262 public void onApPowerStateChange(PowerState state) { in onApPowerStateChange()
272 PowerState state = null; in doHandlePowerStateChange()
305 private void handleDisplayOff(PowerState newState) { in handleDisplayOff()
310 private void handleFullOn(PowerState newState) { in handleFullOn()
334 private void handleShutdownPrepare(PowerState newState) { in handleShutdownPrepare()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DPowerHalService.java77 void onApPowerStateChange(PowerState state); in onApPowerStateChange()
85 public static final class PowerState { class in PowerHalService
92 public PowerState(int state, int param) { in PowerState() method in PowerHalService.PowerState
128 if (!(o instanceof PowerState)) { in equals()
131 PowerState that = (PowerState) o; in equals()
212 public PowerState getCurrentPowerState() { in getCurrentPowerState()
220 return new PowerState(state[VehicleApPowerStateIndex.STATE], in getCurrentPowerState()
308 listener.onApPowerStateChange(new PowerState(state, param)); in dispatchEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java26 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()
131 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, 0)); in testShutdownWithProcessing()
151 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, in testSleepEntryAndWakeup()
176 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, in testSleepEntryAndPowerOnWithProcessing()
185 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_ON_DISP_OFF, 0), false); in testSleepEntryAndPowerOnWithProcessing()
206 mPowerHal.setCurrentPowerState(new PowerState(PowerHalService.STATE_SHUTDOWN_PREPARE, in testSleepEntryAndWakeUpForProcessing()
DMockedPowerHalService.java31 private PowerState mCurrentPowerState = new PowerState(PowerHalService.STATE_ON_FULL, 0);
120 public synchronized PowerState getCurrentPowerState() { in getCurrentPowerState()
124 public void setCurrentPowerState(PowerState state) { in setCurrentPowerState()
128 public void setCurrentPowerState(PowerState state, boolean notify) { in setCurrentPowerState()