Home
last modified time | relevance | path

Searched refs:policyGroups (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.cpp424 PolicyGroups policyGroups; in readPolicyGroups() local
427 return policyGroups; in readPolicyGroups()
433 policyGroups.defaultGroup = pDefaultPolicyGroupId; in readPolicyGroups()
448 policyGroups.groups.emplace(policyGroupId, *policyGroup); in readPolicyGroups()
450 return policyGroups; in readPolicyGroups()
787 const auto& policyGroups = readPolicyGroups(pRootElement, registeredPoliciesMap); in readPowerPolicyFromXml() local
788 if (!policyGroups.ok()) { in readPowerPolicyFromXml()
790 policyGroups.error().message().c_str())); in readPowerPolicyFromXml()
802 mPolicyGroups = policyGroups->groups; in readPowerPolicyFromXml()
803 mDefaultPolicyGroup = policyGroups->defaultGroup; in readPowerPolicyFromXml()
/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java485 ArrayMap<String, SparseArray<String>> policyGroups = new ArrayMap<>(); in readPowerPolicyFromXml() local
501 policyGroups = parsePolicyGroups(parser); in readPowerPolicyFromXml()
517 validatePolicyGroups(policyGroups, registeredPolicies, defaultGroupPolicyId); in readPowerPolicyFromXml()
523 mPolicyGroups = policyGroups; in readPowerPolicyFromXml()
580 ArrayMap<String, SparseArray<String>> policyGroups = new ArrayMap<>(); in parsePolicyGroups() local
590 policyGroups.put(groupId, parsePolicyGroup(parser)); in parsePolicyGroups()
596 return policyGroups; in parsePolicyGroups()
808 private void validatePolicyGroups(ArrayMap<String, SparseArray<String>> policyGroups, in validatePolicyGroups() argument
811 for (Map.Entry<String, SparseArray<String>> entry : policyGroups.entrySet()) { in validatePolicyGroups()
823 && !policyGroups.isEmpty()) { in validatePolicyGroups()
[all …]