Searched refs:getPowerPolicy (Results 1 – 7 of 7) sorted by relevance
166 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 …]
199 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()
69 android::base::Result<CarPowerPolicyMeta> getPowerPolicy(const std::string& policyId) const;
459 Result<CarPowerPolicyMeta> PolicyManager::getPowerPolicy(const std::string& policyId) const { in getPowerPolicy() function in android::frameworks::automotive::powerpolicy::PolicyManager
480 auto policyMeta = mPolicyManager.getPowerPolicy(policyId); in applyPowerPolicy()
1252 CarPowerPolicy policy = mPolicyReader.getPowerPolicy(policyId); in applyPowerPolicy()1345 : mPolicyReader.getPowerPolicy(policyId); in notifyPowerPolicyChange()
160 CarPowerPolicy getPowerPolicy(String policyId) { in getPowerPolicy() method in PolicyReader