Searched refs:mPowerHal (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 113 private MockedPowerHalService mPowerHal; field in CarPowerManagementServiceUnitTest 144 mPowerHal = new MockedPowerHalService(true /*isPowerStateSupported*/, in setUp() 183 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService() 190 mPowerHal.setSignalListener(mPowerSignalListener); in setService() 201 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testDisplayOn() 210 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testShutdown() 213 mPowerHal.setCurrentPowerState( in testShutdown() 222 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in testShutdown() 229 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testShutdownImmediately() 232 mPowerHal.setCurrentPowerState( in testShutdownImmediately() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
D | CarPowerManagerUnitTest.java | 107 private MockedPowerHalService mPowerHal; field in CarPowerManagerUnitTest 130 mPowerHal = new MockedPowerHalService(true /*isPowerStateSupported*/, in setUp() 408 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService() 418 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_MS); in assertStateReceived() 427 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_MS); in setPowerOn() 438 mPowerHal.setCurrentPowerState(new PowerState(stateEnum, stateParam)); in setPowerState() 445 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_LONG_MS); in assertStateReceivedForShutdownOrSleepWithPostpone()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 91 private final PowerHalService mPowerHal; field in VehicleHal 127 mPowerHal = new PowerHalService(this); in VehicleHal() 135 mAllServices.addAll(Arrays.asList(mPowerHal, in VehicleHal() 160 mPowerHal = powerHal; in VehicleHal() 168 mAllServices.addAll(Arrays.asList(mPowerHal, in VehicleHal() 291 return mPowerHal; in getPowerHal()
|