Home
last modified time | relevance | path

Searched refs:getPowerPolicy (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/cpp/powerpolicy/server/tests/
DPolicyManagerTest.cpp166 ASSERT_FALSE(policyManager.getPowerPolicy(kNonExistingPowerPolicyId).ok()); in checkPolicies()
169 auto policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOff); in checkPolicies()
173 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOn); in checkPolicies()
177 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherUntouched); in checkPolicies()
181 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherNone); in checkPolicies()
199 auto policyMeta = policyManager.getPowerPolicy(kSystemPolicyIdNoUserInteraction); in checkSystemPowerPolicy()
204 ASSERT_FALSE(policyManager.getPowerPolicy(kExistingPowerPolicyId).ok()); in checkInvalidPolicies()
205 ASSERT_FALSE(policyManager.getPowerPolicy(kNonExistingPowerPolicyId).ok()); in checkInvalidPolicies()
214 auto policyMeta = policyManager.getPowerPolicy(kSystemPolicyIdNoUserInteraction); in checkInvalidPolicies()
322 ASSERT_FALSE(policyManager.getPowerPolicy(kExistingPowerPolicyId).ok()); in TEST_F()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPolicyReaderUnitTest.java199 assertThat(mPolicyReader.getPowerPolicy(POLICY_ID_NOT_EXIST)).isNull(); in assertValidPolicyPart()
207 assertThat(mPolicyReader.getPowerPolicy(POLICY_ID_NOT_EXIST)).isNull(); in assertNoPolicyPart()
208 assertThat(mPolicyReader.getPowerPolicy(POLICY_ID_OTHER_OFF)).isNull(); in assertNoPolicyPart()
209 assertThat(mPolicyReader.getPowerPolicy(POLICY_ID_OTHER_UNTOUCHED)).isNull(); in assertNoPolicyPart()
210 assertThat(mPolicyReader.getPowerPolicy(POLICY_ID_OTHER_ON)).isNull(); in assertNoPolicyPart()
211 assertThat(mPolicyReader.getPowerPolicy(POLICY_ID_OTHER_NONE)).isNull(); in assertNoPolicyPart()
256 CarPowerPolicy actualPolicy = mPolicyReader.getPowerPolicy(policyId); in checkPolicy()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.h69 android::base::Result<CarPowerPolicyMeta> getPowerPolicy(const std::string& policyId) const;
DPolicyManager.cpp459 Result<CarPowerPolicyMeta> PolicyManager::getPowerPolicy(const std::string& policyId) const { in getPowerPolicy() function in android::frameworks::automotive::powerpolicy::PolicyManager
DCarPowerPolicyServer.cpp480 auto policyMeta = mPolicyManager.getPowerPolicy(policyId); in applyPowerPolicy()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java1252 CarPowerPolicy policy = mPolicyReader.getPowerPolicy(policyId); in applyPowerPolicy()
1345 : mPolicyReader.getPowerPolicy(policyId); in notifyPowerPolicyChange()
DPolicyReader.java160 CarPowerPolicy getPowerPolicy(String policyId) { in getPowerPolicy() method in PolicyReader