Home
last modified time | relevance | path

Searched refs:CarPowerPolicyPtr (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/cpp/powerpolicy/server/tests/
DPowerComponentHandlerTest.cpp36 CarPowerPolicyPtr createPolicy(const std::string& policyId, in createPolicy()
39 CarPowerPolicyPtr policy = std::make_shared<CarPowerPolicy>(); in createPolicy()
46 void assertEqual(const CarPowerPolicyPtr& left, const CarPowerPolicyPtr& right) { in assertEqual()
62 CarPowerPolicyPtr policy = handler.getAccumulatedPolicy(); in TEST_F()
72 CarPowerPolicyPtr policy = in TEST_F()
95 CarPowerPolicyPtr expectedPolicy = in TEST_F()
107 CarPowerPolicyPtr policy = createPolicy(policyId, enabledComponents, disabledComponents); in TEST_F()
DPolicyManagerTest.cpp382 CarPowerPolicyPtr systemPolicyDefault = policyMeta->powerPolicy; in TEST_F()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.h39 using CarPowerPolicyPtr = std::shared_ptr<CarPowerPolicy>; variable
56 CarPowerPolicyPtr powerPolicy = nullptr;
70 android::base::Result<CarPowerPolicyPtr> getDefaultPowerPolicyForState(
85 void reconstructNoUserInteractionPolicy(const std::vector<CarPowerPolicyPtr>& policyOverrides);
88 std::unordered_map<std::string, CarPowerPolicyPtr> mRegisteredPowerPolicies;
89 std::unordered_map<std::string, CarPowerPolicyPtr> mPreemptivePowerPolicies;
DPolicyManager.cpp175 Result<void> readComponents(const XMLElement* pPolicy, CarPowerPolicyPtr policy, in readComponents()
209 Result<void> readOtherComponents(const XMLElement* pPolicy, CarPowerPolicyPtr policy, in readOtherComponents()
244 Result<std::vector<CarPowerPolicyPtr>> readPolicies(const XMLElement* pRoot, const char* tag, in readPolicies()
246 std::vector<CarPowerPolicyPtr> policies; in readPolicies()
249 return std::vector<CarPowerPolicyPtr>(); in readPolicies()
282 const std::unordered_map<std::string, CarPowerPolicyPtr>& registeredPowerPolicies) { in readPolicyGroup()
328 const std::unordered_map<std::string, CarPowerPolicyPtr>& registeredPowerPolicies) { in readPolicyGroups()
367 Result<std::vector<CarPowerPolicyPtr>> readSystemPolicyOverrides(const XMLElement* pRoot) { in readSystemPolicyOverrides()
418 CarPowerPolicyPtr createPolicy(const char* policyId, in createPolicy()
421 CarPowerPolicyPtr policy = std::make_shared<CarPowerPolicy>(); in createPolicy()
[all …]
DPowerComponentHandler.h32 using CarPowerPolicyPtr = std::shared_ptr<CarPowerPolicy>; variable
41 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
45 CarPowerPolicyPtr getAccumulatedPolicy() const;
51 CarPowerPolicyPtr mAccumulatedPolicy GUARDED_BY(mMutex);
DPowerComponentHandler.cpp44 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy()
85 CarPowerPolicyPtr PowerComponentHandler::getAccumulatedPolicy() const { in getAccumulatedPolicy()
DCarPowerPolicyServer.cpp524 CarPowerPolicyPtr policy = policyMeta->powerPolicy; in applyPowerPolicy()
638 CarPowerPolicyPtr powerPolicy; in applyInitialPowerPolicy()