Searched refs:ledMap (Results 1 – 7 of 7) sorted by relevance
/openbmc/phosphor-led-manager/test/ |
H A D | utest-config-validator.cpp | 9 static void assertValidationException(const GroupMap& ledMap, in assertValidationException() argument 14 validateConfigV1(ledMap); in assertValidationException() 30 GroupMap ledMap = {{"group1", group1}}; in TEST() local 32 validateConfigV1(ledMap); in TEST() 47 GroupMap ledMap = { in TEST() local 52 validateConfigV1(ledMap); in TEST() 65 GroupMap ledMap = { in TEST() local 83 GroupMap ledMap = { in TEST() local 101 GroupMap ledMap = { in TEST() local 119 GroupMap ledMap = { in TEST() local [all …]
|
H A D | utest-led-json.cpp | 8 auto ledMap = loadJsonConfig(jsonPath); in TEST() local 16 ASSERT_EQ(ledMap.contains(bmcBooted), true); in TEST() 17 ASSERT_EQ(ledMap.contains(powerOn), true); in TEST() 18 ASSERT_EQ(ledMap.contains(powerOff), true); in TEST() 19 ASSERT_EQ(ledMap.contains(enclosureIdentify), true); in TEST() 21 auto& bmcBootedActions = ledMap.at(bmcBooted).actionSet; in TEST() 22 auto& powerOnActions = ledMap.at(powerOn).actionSet; in TEST() 23 auto& powerOffActions = ledMap.at(powerOff).actionSet; in TEST() 24 auto& enclosureIdentifyActions = ledMap.at(enclosureIdentify).actionSet; in TEST()
|
/openbmc/phosphor-led-manager/manager/ |
H A D | config-validator.cpp | 21 static bool isUsingGroupPriority(const phosphor::led::GroupMap& ledMap) in isUsingGroupPriority() argument 23 for (const auto& [_, group] : ledMap) in isUsingGroupPriority() 109 validateConfigV1ForLedPriority(const phosphor::led::GroupMap& ledMap) in validateConfigV1ForLedPriority() argument 112 for (const auto& [groupName, group] : ledMap) in validateConfigV1ForLedPriority() 144 for (const auto& [_, group] : ledMap) in validateConfigV1ForGroupPriority() 149 if (groupPriorities.size() != ledMap.size()) in validateConfigV1ForGroupPriority() 156 for (const auto& [groupName, group] : ledMap) in validateConfigV1ForGroupPriority() 162 void validateConfigV1(const GroupMap& ledMap) in validateConfigV1() argument 164 const bool useGroupPriority = isUsingGroupPriority(ledMap); in validateConfigV1() 168 validateConfigV1ForGroupPriority(ledMap); in validateConfigV1() [all …]
|
H A D | json-parser.hpp | 101 phosphor::led::GroupMap& ledMap) in loadJsonConfigV1Group() argument 129 ledMap.emplace(objpath, groupLayout); in loadJsonConfigV1Group() 138 phosphor::led::GroupMap ledMap{}; in loadJsonConfigV1() local 146 loadJsonConfigV1Group(entry, ledMap); in loadJsonConfigV1() 149 return ledMap; in loadJsonConfigV1()
|
H A D | manager.hpp | 72 const GroupMap& ledMap; member in phosphor::led::Manager 83 ledMap(ledLayout), bus(bus), in Manager()
|
H A D | manager.cpp | 114 assertedGroups.insert(&ledMap.at(path)); in setGroupState() 118 if (assertedGroups.contains(&ledMap.at(path))) in setGroupState() 120 assertedGroups.erase(&ledMap.at(path)); in setGroupState()
|
H A D | config-validator.hpp | 67 void validateConfigV1(const phosphor::led::GroupMap& ledMap);
|