/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PowerComponentHandlerTest.cpp | 92 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()
|
D | CarPowerPolicyServerTest.cpp | 171 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()
|
D | SilentModeHandlerTest.cpp | 113 MOCK_METHOD(ScopedAStatus, applyPowerPolicy, (const std::string& policyId), (override));
|
/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() 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()
|
D | CarPowerManagementServiceUnitTest.java | 1300 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/ |
D | CarPowerManagerUnitTest.java | 301 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/ |
D | CarPowerPolicyServer.cpp | 154 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()
|
D | PowerComponentHandler.h | 42 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
|
D | PowerComponentHandler.cpp | 49 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy() function in android::frameworks::automotive::powerpolicy::PowerComponentHandler
|
D | CarPowerPolicyServer.h | 210 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/ |
D | ICarPower.aidl | 42 void applyPowerPolicy(String policyId); in applyPowerPolicy() method
|
D | CarPowerManager.java | 536 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/ |
D | CarPowerManagementService.java | 1115 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 …]
|
D | PowerComponentHandler.java | 174 void applyPowerPolicy(CarPowerPolicy policy) { in applyPowerPolicy() method in PowerComponentHandler
|
/packages/services/Car/tests/carservice_test/src/com/android/car/power/ |
D | CarPowerManagementTest.java | 614 cpms.applyPowerPolicy(policyIdWifiOn); in testApplyPowerPolicy_vhalPropertyUpdated() 616 cpms.applyPowerPolicy(policyIdWifiOff); in testApplyPowerPolicy_vhalPropertyUpdated()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 1448 return applyPowerPolicy(args, writer); in exec() 3195 private int applyPowerPolicy(String[] args, IndentingPrintWriter writer) {
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 1699 method TIRAMISU_0 void applyPowerPolicy(String policyId);
|
/packages/services/Car/car-lib-module/api/ |
D | system-current.txt | 1203 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
|
/packages/services/Car/car-lib/api/ |
D | system-current.txt | 1203 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
|
D | test-current.txt | 1276 …on(android.car.Car.PERMISSION_CONTROL_CAR_POWER_POLICY) public void applyPowerPolicy(@NonNull Stri…
|
D | system-lint-baseline.txt | 2720 UnflaggedApi: android.car.hardware.power.CarPowerManager#applyPowerPolicy(String): 2721 …lagged with @FlaggedApi: method android.car.hardware.power.CarPowerManager.applyPowerPolicy(String)
|