Home
last modified time | relevance | path

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

/packages/services/Car/cpp/powerpolicy/server/tests/
DPowerComponentHandlerTest.cpp92 handler.applyPowerPolicy(policy); in TEST_F()
105 handler.applyPowerPolicy(policy); in TEST_F()
138 handler.applyPowerPolicy(policy); in TEST_F()
148 handler.applyPowerPolicy(policy); in TEST_F()
163 handler.applyPowerPolicy(policy); in TEST_F()
173 handler.applyPowerPolicy(policy); in TEST_F()
184 handler.applyPowerPolicy(policy); in TEST_F()
DCarPowerPolicyServerTest.cpp171 ScopedAStatus applyPowerPolicy(const std::string& policyId) { in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::internal::CarPowerPolicyServerPeer
172 return mServerProxy->applyPowerPolicy(policyId); in applyPowerPolicy()
481 ScopedAStatus status = server->applyPowerPolicy(powerPolicyId); in TEST_F()
499 ScopedAStatus status = server->applyPowerPolicy(powerPolicyId); in TEST_F()
516 ScopedAStatus status = server->applyPowerPolicy("policy_not_exist"); in TEST_F()
DSilentModeHandlerTest.cpp113 MOCK_METHOD(ScopedAStatus, applyPowerPolicy, (const std::string& policyId), (override));
/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()
129 mHandler.applyPowerPolicy(policy1); in testApplyPowerPolicy_withCustomComponents()
130 mHandler.applyPowerPolicy(policy2); in testApplyPowerPolicy_withCustomComponents()
144 mHandler.applyPowerPolicy(policy3); in testApplyPowerPolicy_withCustomComponents()
145 mHandler.applyPowerPolicy(policy4); in testApplyPowerPolicy_withCustomComponents()
DCarPowerManagementServiceUnitTest.java1300 mService.applyPowerPolicy(POWER_POLICY_AUDIO_INVERT); in testApplyPowerPolicy_powerPolicyRefactorFlagDisabled()
1312 mService.applyPowerPolicy(POWER_POLICY_AUDIO_INVERT); in testApplyPowerPolicy_powerPolicyRefactorFlagEnabled()
1324 assertThrows(IllegalArgumentException.class, () -> mService.applyPowerPolicy(policyId)); in testApplyInvalidPowerPolicy_powerPolicyRefactorFlagDisabled()
1334 assertThrows(IllegalArgumentException.class, () -> mService.applyPowerPolicy(policyId)); in testApplyInvalidPowerPolicy_powerPolicyRefactorFlagEnabled()
1343 assertThrows(IllegalArgumentException.class, () -> mService.applyPowerPolicy(policyId)); in testApplySystemPowerPolicyFromApps_powerPolicyRefactorFlagDisabled()
1353 assertThrows(IllegalArgumentException.class, () -> mService.applyPowerPolicy(policyId)); in testApplySystemPowerPolicyFromApps_powerPolicyRefactorFlagEnabled()
1558 mService.applyPowerPolicy(POWER_POLICY_VALID_1); in testNotifyPowerPolicyChange_powerPolicyRefactorFlagDisabled()
1591 mService.applyPowerPolicy(POWER_POLICY_VALID_1); in testNotifyPowerPolicyChange_powerPolicyRefactorFlagEnabled()
1617 mService.applyPowerPolicy(POWER_POLICY_VALID_1); in testAddPowerPolicyListener_powerPolicyRefactorFlagDisabled()
1626 mService.applyPowerPolicy(POWER_POLICY_VALID_2); in testAddPowerPolicyListener_powerPolicyRefactorFlagDisabled()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java301 mCarPowerManager.applyPowerPolicy(definition.policyId); in testGetCurrentPowerPolicy()
313 mCarPowerManager.applyPowerPolicy(policyId); in testApplyPowerPolicy()
324 () -> mCarPowerManager.applyPowerPolicy(policyId)); in testApplyPowerPolicy_invalidId()
330 assertThrows(IllegalArgumentException.class, () -> mCarPowerManager.applyPowerPolicy(null)); in testApplyPowerPolicy_nullPolicyId()
356 mCarPowerManager.applyPowerPolicy(policyId); in testAddPowerPolicyListener()
378 mCarPowerManager.applyPowerPolicy(policyId); in testAddPowerPolicyListener_Twice_WithDifferentFilters()
415 mCarPowerManager.applyPowerPolicy(policyId); in testRemovePowerPolicyListener()
428 mCarPowerManager.applyPowerPolicy(policyName); in applyInitialPolicyForTest()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.cpp154 const auto& ret = mService->applyPowerPolicy(stringValue, in onPropertyEvent()
485 ScopedAStatus CarPowerPolicyServer::applyPowerPolicy(const std::string& policyId) { in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::CarPowerPolicyServer
533 const auto& ret = applyPowerPolicy(policyId, /*carServiceExpected=*/true, force); in notifyPowerPolicyChange()
916 Result<void> CarPowerPolicyServer::applyPowerPolicy(const std::string& policyId, in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::CarPowerPolicyServer
978 mComponentHandler.applyPowerPolicy(policy); in applyAndNotifyPowerPolicy()
1062 ret = applyPowerPolicy(kSystemPolicyIdNoUserInteraction, in notifySilentModeChangeLegacy()
1065 ret = applyPowerPolicy(pendingPowerPolicyId, in notifySilentModeChangeLegacy()
1175 if (const auto& ret = applyPowerPolicy(policyId, /*carServiceExpected=*/false, /*force=*/false); in applyInitialPowerPolicy()
1189 const auto& ret = applyPowerPolicy(stringValue, in subscribeToVhal()
DPowerComponentHandler.h42 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
DPowerComponentHandler.cpp49 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::PowerComponentHandler
DCarPowerPolicyServer.h210 ndk::ScopedAStatus applyPowerPolicy(const std::string& policyId) override EXCLUDES(mMutex);
248 android::base::Result<void> applyPowerPolicy(const std::string& policyId,
/packages/services/Car/car-lib/src/android/car/hardware/power/
DICarPower.aidl42 void applyPowerPolicy(String policyId); in applyPowerPolicy() method
DCarPowerManager.java536 public void applyPowerPolicy(@NonNull String policyId) { in applyPowerPolicy() method in CarPowerManager
539 mService.applyPowerPolicy(policyId); in applyPowerPolicy()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java1115 applyPowerPolicy(policyId, /* delayNotification= */ false, /* upToDaemon= */ true, in applyDefaultPowerPolicyForState()
1734 status = applyPowerPolicy(PolicyReader.POWER_POLICY_ID_SUSPEND_PREP, in doHandleSuspend()
2057 public void applyPowerPolicy(String policyId) { in applyPowerPolicy() method in CarPowerManagementService
2065 int status = applyPowerPolicy(policyId, /* delayNotification= */ true, upToDaemon, in applyPowerPolicy()
2245 mPowerComponentHandler.applyPowerPolicy(convertPowerPolicyFromDaemon(policy)); in updatePowerComponents()
2364 mPowerComponentHandler.applyPowerPolicy(currentPowerPolicy); in initializePowerPolicy()
2411 int status = applyPowerPolicy(state.policyId, /* delayNotification= */ false, in initializePowerPolicy()
2548 private int applyPowerPolicy(@Nullable String policyId, boolean delayNotification, in applyPowerPolicy() method in CarPowerManagementService
2636 mPowerComponentHandler.applyPowerPolicy(policy); in applyPowerPolicy()
2664 mPowerComponentHandler.applyPowerPolicy(policy); in applyPreemptivePowerPolicy()
[all …]
DPowerComponentHandler.java174 void applyPowerPolicy(CarPowerPolicy policy) { in applyPowerPolicy() method in PowerComponentHandler
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java614 cpms.applyPowerPolicy(policyIdWifiOn); in testApplyPowerPolicy_vhalPropertyUpdated()
616 cpms.applyPowerPolicy(policyIdWifiOff); in testApplyPowerPolicy_vhalPropertyUpdated()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1448 return applyPowerPolicy(args, writer); in exec()
3195 private int applyPowerPolicy(String[] args, IndentingPrintWriter writer) {
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1699 method TIRAMISU_0 void applyPowerPolicy(String policyId);
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt1203 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
/packages/services/Car/car-lib/api/
Dsystem-current.txt1203 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
Dtest-current.txt1276 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
Dsystem-lint-baseline.txt2720 UnflaggedApi: android.car.hardware.power.CarPowerManager#applyPowerPolicy(String):
2721 …lagged with @FlaggedApi: method android.car.hardware.power.CarPowerManager.applyPowerPolicy(String)