• Home
  • Raw
  • Download

Lines Matching refs:policy

175 Result<void> readComponents(const XMLElement* pPolicy, CarPowerPolicyPtr policy,  in readComponents()  argument
198 policy->enabledComponents.push_back(componentId); in readComponents()
200 policy->disabledComponents.push_back(componentId); in readComponents()
209 Result<void> readOtherComponents(const XMLElement* pPolicy, CarPowerPolicyPtr policy, in readOtherComponents() argument
220 iterateAllPowerComponents([&visited, &policy](PowerComponent component) -> bool { in readOtherComponents()
222 policy->enabledComponents.push_back(component); in readOtherComponents()
227 iterateAllPowerComponents([&visited, &policy](PowerComponent component) -> bool { in readOtherComponents()
229 policy->disabledComponents.push_back(component); in readOtherComponents()
262 auto policy = std::make_shared<CarPowerPolicy>(); in readPolicies() local
263 policy->policyId = policyId; in readPolicies()
265 auto ret = readComponents(pPolicy, policy, &visited); in readPolicies()
270 ret = readOtherComponents(pPolicy, policy, visited); in readPolicies()
275 policies.push_back(policy); in readPolicies()
372 for (auto policy : *systemPolicyOverrides) { in readSystemPolicyOverrides()
373 if (policy->policyId != kSystemPolicyIdNoUserInteraction) { in readSystemPolicyOverrides()
375 policy->policyId.c_str()); in readSystemPolicyOverrides()
377 auto ret = checkConfigurableComponents(policy->enabledComponents); in readSystemPolicyOverrides()
381 ret = checkConfigurableComponents(policy->disabledComponents); in readSystemPolicyOverrides()
421 CarPowerPolicyPtr policy = std::make_shared<CarPowerPolicy>(); in createPolicy() local
422 policy->policyId = policyId; in createPolicy()
423 policy->enabledComponents = enabledComponents; in createPolicy()
424 policy->disabledComponents = disabledComponents; in createPolicy()
425 return policy; in createPolicy()
442 std::string toString(const CarPowerPolicy& policy) { in toString() argument
444 policy.policyId.c_str(), toString(policy.enabledComponents).c_str(), in toString()
445 toString(policy.disabledComponents).c_str()); in toString()
502 auto policy = std::make_shared<CarPowerPolicy>(); in definePowerPolicy() local
503 policy->policyId = policyId; in definePowerPolicy()
504 auto ret = stringsToComponents(enabledComponents, &policy->enabledComponents); in definePowerPolicy()
508 ret = stringsToComponents(disabledComponents, &policy->disabledComponents); in definePowerPolicy()
512 mRegisteredPowerPolicies.emplace(policyId, policy); in definePowerPolicy()
571 for (auto policy : *registeredPolicies) { in readPowerPolicyFromXml()
572 registeredPoliciesMap.emplace(policy->policyId, policy); in readPowerPolicyFromXml()
595 for (auto policy : policyOverrides) { in reconstructNoUserInteractionPolicy() local
596 configureComponents(policy->enabledComponents, &systemPolicy->enabledComponents, in reconstructNoUserInteractionPolicy()
598 configureComponents(policy->disabledComponents, &systemPolicy->disabledComponents, in reconstructNoUserInteractionPolicy()