/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 104 import com.android.car.hal.PowerHalService.PowerState; 318 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in shutdownTest_withCarPowerCancelShellCommand() 322 new PowerState( in shutdownTest_withCarPowerCancelShellCommand() 330 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in shutdownTest_withCarPowerCancelShellCommand() 340 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in testCanHibernate() 343 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in testCanHibernate() 351 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in testCanHibernate() 523 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.ON, 0)); in hibernateImmediately() 526 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.SHUTDOWN_PREPARE, in hibernateImmediately() 534 mPowerHal.setCurrentPowerState(new PowerState(VehicleApPowerStateReq.FINISHED, 0)); in hibernateImmediately() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | MockedPowerHalService.java | 47 private PowerState mCurrentPowerState = new PowerState(VehicleApPowerStateReq.ON, 0); 63 @PowerState.ShutdownType 64 private int mRequestedShutdownPowerState = PowerState.SHUTDOWN_TYPE_UNDEFINED; 202 public void requestShutdownAp(@PowerState.ShutdownType int powerState, boolean runGarageMode) { in requestShutdownAp() 260 public PowerState getCurrentPowerState() { in getCurrentPowerState() 274 public void setCurrentPowerState(PowerState state) { in setCurrentPowerState() 278 public void setCurrentPowerState(PowerState state, boolean notify) { in setCurrentPowerState()
|
D | PowerHalServiceUnitTest.java | 37 import static com.android.car.hal.PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP; 38 import static com.android.car.hal.PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION; 39 import static com.android.car.hal.PowerHalService.PowerState.SHUTDOWN_TYPE_POWER_OFF; 72 import com.android.car.hal.PowerHalService.PowerState; 196 PowerHalService.PowerState powerState = createShutdownPrepare(param); in testCanPostponeShutdown() 207 PowerHalService.PowerState powerState = createShutdownPrepare(param); in testCanSuspend() 218 PowerHalService.PowerState powerState = createShutdownPrepare(param); in testGetSuspendType() 230 PowerHalService.PowerState powerState = mPowerHalService.getCurrentPowerState(); in testGetCurrentPowerState() 241 PowerHalService.PowerState powerState = mPowerHalService.getCurrentPowerState(); in testGetCurrentPowerState_serviceSpecificError() 559 testCases.put(new Pair<>(PowerState.SHUTDOWN_TYPE_POWER_OFF, true), in testRequestShutdownAp() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | PowerHalService.java | 198 void onApPowerStateChange(PowerState state); in onApPowerStateChange() 217 public static final class PowerState { class in PowerHalService 235 public PowerState(int state, int param) { in PowerState() method in PowerHalService.PowerState 303 if (!(o instanceof PowerState)) { in equals() 306 PowerState that = (PowerState) o; in equals() 511 public void requestShutdownAp(@PowerState.ShutdownType int powerState, boolean runGarageMode) { in requestShutdownAp() 514 case PowerState.SHUTDOWN_TYPE_POWER_OFF: in requestShutdownAp() 518 case PowerState.SHUTDOWN_TYPE_DEEP_SLEEP: in requestShutdownAp() 522 case PowerState.SHUTDOWN_TYPE_HIBERNATION: in requestShutdownAp() 526 case PowerState.SHUTDOWN_TYPE_UNDEFINED: in requestShutdownAp() [all …]
|
/packages/services/Car/cpp/powerpolicy/aidl/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegate.aidl | 112 enum PowerState { enum 142 void applyPowerPolicyPerPowerStateChangeAsync(int requestId, in PowerState state); in applyPowerPolicyPerPowerStateChangeAsync()
|
/packages/services/Car/cpp/powerpolicy/aidl/aidl_api/android.automotive.powerpolicy.delegate/1/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegate.aidl | 42 …nt requestId, in android.automotive.powerpolicy.internal.ICarPowerPolicyDelegate.PowerState state); in applyPowerPolicyPerPowerStateChangeAsync() 45 enum PowerState { enum
|
/packages/services/Car/cpp/powerpolicy/aidl/aidl_api/android.automotive.powerpolicy.delegate/current/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegate.aidl | 42 …nt requestId, in android.automotive.powerpolicy.internal.ICarPowerPolicyDelegate.PowerState state); in applyPowerPolicyPerPowerStateChangeAsync() 45 enum PowerState { enum
|
/packages/services/Car/service/src/com/android/car/power/ |
D | CarPowerManagementService.java | 100 import com.android.car.hal.PowerHalService.PowerState; 756 public void onApPowerStateChange(PowerState state) { in onApPowerStateChange() 1193 newState.mShutdownType == PowerState.SHUTDOWN_TYPE_POWER_OFF in updateShutdownPrepareStatus() 1194 || newState.mShutdownType == PowerState.SHUTDOWN_TYPE_EMERGENCY)) { in updateShutdownPrepareStatus() 1196 } else if (newState.mShutdownType == PowerState.SHUTDOWN_TYPE_DEEP_SLEEP) { in updateShutdownPrepareStatus() 1201 } else if (newState.mShutdownType == PowerState.SHUTDOWN_TYPE_HIBERNATION) { in updateShutdownPrepareStatus() 1211 mIsEmergencyShutdown = newState.mShutdownType == PowerState.SHUTDOWN_TYPE_EMERGENCY; in updateShutdownPrepareStatus() 3168 @PowerState.ShutdownType 3181 CpmsState(PowerState halPowerState) { in CpmsState() 3185 this.mShutdownType = PowerState.SHUTDOWN_TYPE_UNDEFINED; in CpmsState() [all …]
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | FakeRefactoredCarPowerPolicyDaemon.java | 170 policyGroup.put(PowerState.WAIT_FOR_VHAL, mPolicies.get(waitForVhalPolicyId)); in createPolicyGroup() 171 policyGroup.put(PowerState.ON, mPolicies.get(onPolicyId)); in createPolicyGroup() 297 policyGroup.put(PowerState.WAIT_FOR_VHAL, mPolicies.get(waitForVhalPolicyId)); in notifyPowerPolicyGroupDefinition() 298 policyGroup.put(PowerState.ON, mPolicies.get(onPolicyId)); in notifyPowerPolicyGroupDefinition()
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | CarPowerPolicyServerTest.cpp | 187 int32_t requestId, ICarPowerPolicyDelegate::PowerState state) { in applyPowerPolicyPerPowerStateChangeAsync() 375 PowerState::ON); in testApplyPowerPolicyPerPowerStateChangeAsyncInternal() 682 ICarPowerPolicyDelegate::PowerState:: in TEST_F() 709 ICarPowerPolicyDelegate::PowerState:: in TEST_F()
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.h | 152 aidl::android::automotive::powerpolicy::internal::ICarPowerPolicyDelegate::PowerState 225 aidl::android::automotive::powerpolicy::internal::ICarPowerPolicyDelegate::PowerState
|
D | CarPowerPolicyServer.cpp | 307 int32_t requestId, ICarPowerPolicyDelegate::PowerState state) { in applyPowerPolicyPerPowerStateChangeAsync() 585 int32_t requestId, ICarPowerPolicyDelegate::PowerState state) { in applyPowerPolicyPerPowerStateChangeAsync() 595 case ICarPowerPolicyDelegate::PowerState::WAIT_FOR_VHAL: in applyPowerPolicyPerPowerStateChangeAsync() 599 case ICarPowerPolicyDelegate::PowerState::ON: in applyPowerPolicyPerPowerStateChangeAsync()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
D | CarPowerManagerUnitTest.java | 74 import com.android.car.hal.PowerHalService.PowerState; 505 mPowerHal.setCurrentPowerState(new PowerState(stateEnum, stateParam)); in setPowerState()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 3026 isHibernation ? PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION 3027 : PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP, 3032 isHibernation ? PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION 3033 : PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP,
|