Home
last modified time | relevance | path

Searched refs:enabledCustomComponents (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/cpp/powerpolicy/server/tests/
DPowerComponentHandlerTest.cpp45 const std::vector<int>& enabledCustomComponents, in createPolicy() argument
51 policy->enabledCustomComponents = enabledCustomComponents; in createPolicy()
60 EXPECT_THAT(left->enabledCustomComponents, in assertEqual()
61 UnorderedElementsAreArray(right->enabledCustomComponents)); in assertEqual()
166 expectedPolicy.get()->enabledCustomComponents = {CUSTOM_COMPONENT_ID_1002}; in TEST_F()
176 expectedPolicy.get()->enabledCustomComponents = {CUSTOM_COMPONENT_ID_1002, in TEST_F()
187 expectedPolicy.get()->enabledCustomComponents = {CUSTOM_COMPONENT_ID_1000}; in TEST_F()
DPolicyManagerTest.cpp104 const std::vector<int>& enabledCustomComponents, in createCarPowerPolicyWithCustomComponents() argument
110 policy.enabledCustomComponents = enabledCustomComponents; in createCarPowerPolicyWithCustomComponents()
358 compareCustomComponents(a.enabledCustomComponents, b.enabledCustomComponents) && in isEqual()
/packages/services/Car/cpp/powerpolicy/server/src/
DPowerComponentHandler.cpp66 setComponentStates(customComponentStates, mAccumulatedPolicy->enabledCustomComponents, true); in applyPowerPolicy()
68 setComponentStates(customComponentStates, powerPolicy->enabledCustomComponents, true); in applyPowerPolicy()
73 mAccumulatedPolicy->enabledCustomComponents.clear(); in applyPowerPolicy()
89 setAccumulatedPolicy(customComponentStates, mAccumulatedPolicy->enabledCustomComponents, in applyPowerPolicy()
112 return getComponentState(componentId, mAccumulatedPolicy->enabledCustomComponents, in getCustomPowerComponentState()
157 printComponents(mAccumulatedPolicy->enabledCustomComponents, customComponentToString); in dump()
DPolicyManager.cpp261 &policy->enabledCustomComponents, in readComponents()
300 std::back_inserter(policy->enabledCustomComponents), in readOtherComponents()
561 const std::vector<int>& enabledCustomComponents, in createPolicy() argument
568 policy->enabledCustomComponents = enabledCustomComponents; in createPolicy()
652 &policy->enabledCustomComponents); in definePowerPolicy()