Home
last modified time | relevance | path

Searched refs:mPreemptivePowerPolicies (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/services/Car/cpp/powerpolicy/server/src/
H A DPolicyManager.cpp466 if (mPreemptivePowerPolicies.count(policyId) > 0) { in getPowerPolicy()
468 .powerPolicy = mPreemptivePowerPolicies.at(policyId), in getPowerPolicy()
493 return mPreemptivePowerPolicies.count(policyId) > 0; in isPreemptivePowerPolicy()
541 toString(*mPreemptivePowerPolicies.at( in dump()
594 CarPowerPolicyPtr systemPolicy = mPreemptivePowerPolicies.at(kSystemPolicyIdNoUserInteraction); in reconstructNoUserInteractionPolicy()
622 mPreemptivePowerPolicies.clear(); in initPreemptivePowerPolicy()
623 mPreemptivePowerPolicies.emplace(kSystemPolicyIdNoUserInteraction, in initPreemptivePowerPolicy()
627 mPreemptivePowerPolicies.emplace(kSystemPolicyIdSuspendToRam, in initPreemptivePowerPolicy()
H A DPolicyManager.h89 std::unordered_map<std::string, CarPowerPolicyPtr> mPreemptivePowerPolicies; variable
/aosp12/packages/services/Car/service/src/com/android/car/power/
H A DPolicyReader.java154 private ArrayMap<String, CarPowerPolicy> mPreemptivePowerPolicies; field in PolicyReader
189 return mPreemptivePowerPolicies.get(policyId); in getPreemptivePowerPolicy()
197 return mPreemptivePowerPolicies.containsKey(policyId); in isPreemptivePowerPolicy()
296 for (int i = 0; i < mPreemptivePowerPolicies.size(); i++) { in dump()
297 writer.println(toString(mPreemptivePowerPolicies.valueAt(i))); in dump()
310 mPreemptivePowerPolicies = new ArrayMap<>(); in initPolicies()
311 mPreemptivePowerPolicies.put(POWER_POLICY_ID_NO_USER_INTERACTION, in initPolicies()
315 mPreemptivePowerPolicies.put(POWER_POLICY_ID_SUSPEND_TO_RAM, POWER_POLICY_SUSPEND_TO_RAM); in initPolicies()
605 mPreemptivePowerPolicies.put(POWER_POLICY_ID_NO_USER_INTERACTION, in reconstructSystemPowerPolicy()