Lines Matching refs:componentId
41 for (const auto componentId : ::ndk::enum_range<PowerComponent>()) { in init()
42 if (componentId >= PowerComponent::MINIMUM_CUSTOM_COMPONENT_VALUE) { in init()
45 mAccumulatedPolicy->disabledComponents.push_back(componentId); in init()
94 Result<bool> getComponentState(const T& componentId, const std::vector<T>& enabledComponents, in getComponentState() argument
96 auto findComponent = [componentId](const std::vector<T> components) -> bool { in getComponentState()
97 return std::find(components.begin(), components.end(), componentId) != components.end(); in getComponentState()
106 return Error() << StringPrintf("Invalid power component(%d)", componentId); in getComponentState()
109 Result<bool> PowerComponentHandler::getCustomPowerComponentState(const int componentId) const { in getCustomPowerComponentState()
112 return getComponentState(componentId, mAccumulatedPolicy->enabledCustomComponents, in getCustomPowerComponentState()
116 Result<bool> PowerComponentHandler::getPowerComponentState(const PowerComponent componentId) const { in getPowerComponentState()
118 return getComponentState(componentId, mAccumulatedPolicy->enabledComponents, in getPowerComponentState()