Lines Matching refs:policyMeta

919     auto policyMeta = mPolicyManager.getPowerPolicy(policyId);  in applyPowerPolicy()  local
920 if (!policyMeta.ok()) { in applyPowerPolicy()
921 return Error() << "Failed to apply power policy: " << policyMeta.error().message(); in applyPowerPolicy()
932 if (!canApplyPowerPolicyLocked(*policyMeta, force, /*out*/ clients)) { in applyPowerPolicy()
936 applyAndNotifyPowerPolicy(*policyMeta, clients, /*notifyCarService=*/false); in applyPowerPolicy()
940 bool CarPowerPolicyServer::canApplyPowerPolicyLocked(const CarPowerPolicyMeta& policyMeta, in canApplyPowerPolicyLocked() argument
943 const std::string& policyId = policyMeta.powerPolicy->policyId; in canApplyPowerPolicyLocked()
950 if (policyMeta.isPreemptive) { in canApplyPowerPolicyLocked()
966 mCurrentPowerPolicyMeta = policyMeta; in canApplyPowerPolicyLocked()
973 void CarPowerPolicyServer::applyAndNotifyPowerPolicy(const CarPowerPolicyMeta& policyMeta, in applyAndNotifyPowerPolicy() argument
976 CarPowerPolicyPtr policy = policyMeta.powerPolicy; in applyAndNotifyPowerPolicy()
1013 auto policyMeta = mPolicyManager.getPowerPolicy(policyId); in applyPowerPolicyInternal() local
1014 if (!policyMeta.ok()) { in applyPowerPolicyInternal()
1016 << "Failed to apply power policy: " << policyMeta.error().message(); in applyPowerPolicyInternal()
1021 if (!canApplyPowerPolicyLocked(*policyMeta, force, /*out*/ clients)) { in applyPowerPolicyInternal()
1025 applyAndNotifyPowerPolicy(*policyMeta, clients, notifyCarService); in applyPowerPolicyInternal()