/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
D | CarPowerManagerUnitTest.java | 269 mCarPowerManager.applyPowerPolicy(definition.policyId); in testGetCurrentPowerPolicy() 281 mCarPowerManager.applyPowerPolicy(policyId); in testApplyPowerPolicy() 292 () -> mCarPowerManager.applyPowerPolicy(policyId)); in testApplyPowerPolicy_invalidId() 298 assertThrows(IllegalArgumentException.class, () -> mCarPowerManager.applyPowerPolicy(null)); in testApplyPowerPolicy_nullPolicyId() 319 mCarPowerManager.applyPowerPolicy(policyId); in testAddPowerPolicyListener() 339 mCarPowerManager.applyPowerPolicy(policyId); in testAddPowerPolicyListener_Twice_WithDifferentFilters() 371 mCarPowerManager.applyPowerPolicy(policyId); in testRemovePowerPolicyListener()
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.cpp | 136 const auto& ret = mService->applyPowerPolicy(value.value.stringValue, in onPropertyEvent() 325 applyPowerPolicy(policyId, /*carServiceExpected=*/true, /*overridePreemptive=*/false); in notifyPowerPolicyChange() 477 Result<void> CarPowerPolicyServer::applyPowerPolicy(const std::string& policyId, in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::CarPowerPolicyServer 525 mComponentHandler.applyPowerPolicy(policy); in applyPowerPolicy() 561 ret = applyPowerPolicy(kSystemPolicyIdNoUserInteraction, in notifySilentModeChange() 564 ret = applyPowerPolicy(pendingPowerPolicyId, in notifySilentModeChange() 658 if (const auto& ret = applyPowerPolicy(policyId, /*carServiceExpected=*/false, in applyInitialPowerPolicy() 671 const auto& ret = applyPowerPolicy(value.value.stringValue, in subscribeToVhal()
|
D | PowerComponentHandler.h | 41 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
|
D | PowerComponentHandler.cpp | 44 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::PowerComponentHandler
|
D | CarPowerPolicyServer.h | 183 android::base::Result<void> applyPowerPolicy(const std::string& policyId,
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PowerComponentHandlerTest.cpp | 75 handler.applyPowerPolicy(policy); in TEST_F() 108 handler.applyPowerPolicy(policy); in TEST_F()
|
/packages/services/Car/service/src/com/android/car/power/ |
D | CarPowerManagementService.java | 593 applyPowerPolicy(policyId, /* upToDaemon= */ true); in applyDefaultPowerPolicyForState() 1097 public void applyPowerPolicy(String policyId) { in applyPowerPolicy() method in CarPowerManagementService 1102 int status = applyPowerPolicy(policyId, true); in applyPowerPolicy() 1220 int status = applyPowerPolicy(state.policyId, false); in initializePowerPolicy() 1251 private int applyPowerPolicy(@Nullable String policyId, boolean upToDaemon) { in applyPowerPolicy() method in CarPowerManagementService 1267 mPowerComponentHandler.applyPowerPolicy(policy); in applyPowerPolicy() 1288 mPowerComponentHandler.applyPowerPolicy(policy); in applyPreemptivePowerPolicy() 1306 int status = applyPowerPolicy(policyId, true); in cancelPreemptivePowerPolicy() 1903 : applyPowerPolicy(powerPolicyId, true); in applyPowerPolicyFromCommand()
|
D | PowerComponentHandler.java | 164 void applyPowerPolicy(CarPowerPolicy policy) { in applyPowerPolicy() method in PowerComponentHandler
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | PowerComponentHandlerUnitTest.java | 96 mHandler.applyPowerPolicy(policy); in testApplyPowerPolicy_oneTime() 114 mHandler.applyPowerPolicy(policy); in testApplyPowerPolicy_multipleTimes()
|
D | CarPowerManagementServiceUnitTest.java | 445 mService.applyPowerPolicy(policyId); in testApplyPowerPolicy() 459 assertThrows(IllegalArgumentException.class, () -> mService.applyPowerPolicy(policyId)); in testApplyInvalidPowerPolicy() 467 assertThrows(IllegalArgumentException.class, () -> mService.applyPowerPolicy(policyId)); in testApplySystemPowerPolicyFromApps() 540 mService.applyPowerPolicy(policyId); in testAddPowerPolicyListener() 558 mService.applyPowerPolicy(policyId); in testRemovePowerPolicyListener()
|
/packages/services/Car/car-lib/src/android/car/hardware/power/ |
D | CarPowerManager.java | 365 public void applyPowerPolicy(@NonNull String policyId) { in applyPowerPolicy() method in CarPowerManager 368 mService.applyPowerPolicy(policyId); in applyPowerPolicy()
|
D | ICarPower.aidl | 42 void applyPowerPolicy(String policyId); in applyPowerPolicy() method
|
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/power/ |
D | CarPowerManagerPermissionTest.java | 112 () -> mCarPowerManager.applyPowerPolicy("policy_id")); in testApplyPowerPolicy()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 923 return applyPowerPolicy(args, writer); in exec() 1963 private int applyPowerPolicy(String[] args, IndentingPrintWriter writer) {
|
/packages/services/Car/car-lib/api/ |
D | system-current.txt | 855 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
|