Lines Matching refs:policyMeta
379 auto policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOff); in checkPolicies() local
380 ASSERT_TRUE(policyMeta.ok()); in checkPolicies()
381 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherOff)); in checkPolicies()
383 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOn); in checkPolicies()
384 ASSERT_TRUE(policyMeta.ok()); in checkPolicies()
385 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherOn)); in checkPolicies()
387 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherUntouched); in checkPolicies()
388 ASSERT_TRUE(policyMeta.ok()); in checkPolicies()
389 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherUntouched)); in checkPolicies()
391 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherNone); in checkPolicies()
392 ASSERT_TRUE(policyMeta.ok()); in checkPolicies()
393 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherNone)); in checkPolicies()
400 auto policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOff); in checkPoliciesWithCustomComponents() local
401 ASSERT_TRUE(policyMeta.ok()); in checkPoliciesWithCustomComponents()
402 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, in checkPoliciesWithCustomComponents()
405 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOff); in checkPoliciesWithCustomComponents()
406 ASSERT_TRUE(policyMeta.ok()); in checkPoliciesWithCustomComponents()
407 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, in checkPoliciesWithCustomComponents()
410 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherOn); in checkPoliciesWithCustomComponents()
411 ASSERT_TRUE(policyMeta.ok()); in checkPoliciesWithCustomComponents()
413 isEqual(*policyMeta->powerPolicy, kExistingPowerPolicyWithCustomComponents_OtherOn)); in checkPoliciesWithCustomComponents()
415 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherUntouched); in checkPoliciesWithCustomComponents()
416 ASSERT_TRUE(policyMeta.ok()); in checkPoliciesWithCustomComponents()
417 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherUntouchedCustom)); in checkPoliciesWithCustomComponents()
419 policyMeta = policyManager.getPowerPolicy(kExistingPowerPolicyId_OtherNone); in checkPoliciesWithCustomComponents()
420 ASSERT_TRUE(policyMeta.ok()); in checkPoliciesWithCustomComponents()
421 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherNone)); in checkPoliciesWithCustomComponents()
437 auto policyMeta = policyManager.getPowerPolicy(kSystemPolicyIdNoUserInteraction); in checkSystemPowerPolicy() local
438 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, expectedPolicy)); in checkSystemPowerPolicy()
452 auto policyMeta = policyManager.getPowerPolicy(kSystemPolicyIdNoUserInteraction); in checkInvalidPolicies() local
453 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kSystemPowerPolicyNoUserInteraction)); in checkInvalidPolicies()
684 auto policyMeta = policyManager.getPowerPolicy("system_power_policy_all_on"); in TEST_F() local
686 ASSERT_TRUE(policyMeta.ok()); in TEST_F()
688 CarPowerPolicyPtr systemPolicyDefault = policyMeta->powerPolicy; in TEST_F()