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.cpp42 CarPowerPolicyPtr createPolicy(const std::string& policyId, in createPolicy()
47 CarPowerPolicyPtr policy = std::make_shared<CarPowerPolicy>(); in createPolicy()
56 void assertEqual(const CarPowerPolicyPtr& left, const CarPowerPolicyPtr& right) { in assertEqual()
76 CarPowerPolicyPtr policy = handler.getAccumulatedPolicy(); in TEST_F()
89 CarPowerPolicyPtr policy = in TEST_F()
101 CarPowerPolicyPtr policy = in TEST_F()
123 CarPowerPolicyPtr expectedPolicy = in TEST_F()
136 CarPowerPolicyPtr policy = in TEST_F()
145 CarPowerPolicyPtr policy = in TEST_F()
150 CarPowerPolicyPtr expectedPolicy = in TEST_F()
DPolicyManagerTest.cpp688 CarPowerPolicyPtr systemPolicyDefault = policyMeta->powerPolicy; in TEST_F()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.h45 using CarPowerPolicyPtr = variable
64 CarPowerPolicyPtr powerPolicy = nullptr;
79 android::base::Result<CarPowerPolicyPtr> getDefaultPowerPolicyForState(
100 void reconstructNoUserInteractionPolicy(const std::vector<CarPowerPolicyPtr>& policyOverrides);
103 std::unordered_map<std::string, CarPowerPolicyPtr> mRegisteredPowerPolicies;
104 std::unordered_map<std::string, CarPowerPolicyPtr> mPreemptivePowerPolicies;
DPowerComponentHandler.h32 using CarPowerPolicyPtr = variable
42 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
50 CarPowerPolicyPtr getAccumulatedPolicy() const;
56 CarPowerPolicyPtr mAccumulatedPolicy GUARDED_BY(mMutex);
DPolicyManager.cpp199 Result<void> readComponents(const XMLElement* pPolicy, CarPowerPolicyPtr policy, in readComponents()
272 Result<void> readOtherComponents(const XMLElement* pPolicy, CarPowerPolicyPtr policy, in readOtherComponents()
327 Result<std::vector<CarPowerPolicyPtr>> readPolicies( in readPolicies()
330 std::vector<CarPowerPolicyPtr> policies; in readPolicies()
333 return std::vector<CarPowerPolicyPtr>(); in readPolicies()
370 const std::unordered_map<std::string, CarPowerPolicyPtr>& registeredPowerPolicies) { in readPolicyGroup()
421 const std::unordered_map<std::string, CarPowerPolicyPtr>& registeredPowerPolicies) { in readPolicyGroups()
468 Result<std::vector<CarPowerPolicyPtr>> readSystemPolicyOverrides( in readSystemPolicyOverrides()
558 CarPowerPolicyPtr createPolicy(const char* policyId, in createPolicy()
563 CarPowerPolicyPtr policy = std::make_shared<CarPowerPolicy>(); in createPolicy()
[all …]
DPowerComponentHandler.cpp49 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy()
122 CarPowerPolicyPtr PowerComponentHandler::getAccumulatedPolicy() const { in getAccumulatedPolicy()
DCarPowerPolicyServer.cpp976 CarPowerPolicyPtr policy = policyMeta.powerPolicy; in applyAndNotifyPowerPolicy()
1155 CarPowerPolicyPtr powerPolicy; in applyInitialPowerPolicy()