Home
last modified time | relevance | path

Searched refs:applyPowerPolicy (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java269 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/
DCarPowerPolicyServer.cpp136 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()
DPowerComponentHandler.h41 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
DPowerComponentHandler.cpp44 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::PowerComponentHandler
DCarPowerPolicyServer.h183 android::base::Result<void> applyPowerPolicy(const std::string& policyId,
/packages/services/Car/cpp/powerpolicy/server/tests/
DPowerComponentHandlerTest.cpp75 handler.applyPowerPolicy(policy); in TEST_F()
108 handler.applyPowerPolicy(policy); in TEST_F()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java593 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()
DPowerComponentHandler.java164 void applyPowerPolicy(CarPowerPolicy policy) { in applyPowerPolicy() method in PowerComponentHandler
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPowerComponentHandlerUnitTest.java96 mHandler.applyPowerPolicy(policy); in testApplyPowerPolicy_oneTime()
114 mHandler.applyPowerPolicy(policy); in testApplyPowerPolicy_multipleTimes()
DCarPowerManagementServiceUnitTest.java445 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/
DCarPowerManager.java365 public void applyPowerPolicy(@NonNull String policyId) { in applyPowerPolicy() method in CarPowerManager
368 mService.applyPowerPolicy(policyId); in applyPowerPolicy()
DICarPower.aidl42 void applyPowerPolicy(String policyId); in applyPowerPolicy() method
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/power/
DCarPowerManagerPermissionTest.java112 () -> mCarPowerManager.applyPowerPolicy("policy_id")); in testApplyPowerPolicy()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java923 return applyPowerPolicy(args, writer); in exec()
1963 private int applyPowerPolicy(String[] args, IndentingPrintWriter writer) {
/packages/services/Car/car-lib/api/
Dsystem-current.txt855 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…