| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | config_file_parser.cpp | 60 std::unique_ptr<Action> parseAction(const json& element) in parseAction() argument 62 verifyIsObject(element); in parseAction() 66 if (element.contains("comments")) in parseAction() 73 if (element.contains("and")) in parseAction() 75 action = parseAnd(element["and"]); in parseAction() 78 else if (element.contains("compare_presence")) in parseAction() 80 action = parseComparePresence(element["compare_presence"]); in parseAction() 83 else if (element.contains("compare_vpd")) in parseAction() 85 action = parseCompareVPD(element["compare_vpd"]); in parseAction() 88 else if (element.contains("i2c_capture_bytes")) in parseAction() [all …]
|
| H A D | config_file_parser.hpp | 90 std::unique_ptr<Action> parseAction(const nlohmann::json& element); 103 const nlohmann::json& element); 115 std::unique_ptr<AndAction> parseAnd(const nlohmann::json& element); 127 std::unique_ptr<Chassis> parseChassis(const nlohmann::json& element); 140 const nlohmann::json& element); 153 const nlohmann::json& element); 166 const nlohmann::json& element); 179 const nlohmann::json& element); 191 std::unique_ptr<Device> parseDevice(const nlohmann::json& element); 204 const nlohmann::json& element); [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/test/ |
| H A D | config_file_parser_tests.cpp | 217 const json element = R"( in TEST() local 225 std::unique_ptr<Action> action = parseAction(element); in TEST() 231 const json element = R"( in TEST() local 238 std::unique_ptr<Action> action = parseAction(element); in TEST() 244 const json element = R"( in TEST() local 252 std::unique_ptr<Action> action = parseAction(element); in TEST() 258 const json element = R"( in TEST() local 267 std::unique_ptr<Action> action = parseAction(element); in TEST() 273 const json element = R"( in TEST() local 283 std::unique_ptr<Action> action = parseAction(element); in TEST() [all …]
|
| /openbmc/phosphor-power/test/ |
| H A D | json_parser_utils_tests.cpp | 36 const json element = R"( { "format": "linear" } )"_json; in TEST() local 37 const json& propertyElement = getRequiredProperty(element, "format"); in TEST() 44 const json element = R"( { "volts": 1.03 } )"_json; in TEST() local 45 getRequiredProperty(element, "format"); in TEST() 58 const json element = R"( 0 )"_json; in TEST() local 59 uint8_t value = parseBitPosition(element); in TEST() 65 const json element = R"( 7 )"_json; in TEST() local 66 uint8_t value = parseBitPosition(element); in TEST() 73 const json element = R"( "${bit_pos}" )"_json; in TEST() local 74 uint8_t value = parseBitPosition(element, variables); in TEST() [all …]
|
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | config_file_parser.cpp | 100 const json& element, in parseChassis() argument 103 verifyIsObject(element); in parseChassis() 106 if (!element.contains("template_id")) in parseChassis() 109 return parseChassisProperties(element, isChassisTemplate, NO_VARIABLES); in parseChassis() 116 if (element.contains("comments")) in parseChassis() 122 const json& templateIDElement = getRequiredProperty(element, "template_id"); in parseChassis() 128 getRequiredProperty(element, "template_variable_values"); in parseChassis() 134 verifyPropertyCount(element, propertyCount); in parseChassis() 152 const json& element, 155 verifyIsArray(element); in parseChassisArray() 154 parseChassisArray(const json & element,const std::map<std::string,JSONRefWrapper> & chassisTemplates,Services & services) parseChassisArray() argument 169 parseChassisProperties(const json & element,bool isChassisTemplate,const std::map<std::string,std::string> & variables,Services & services) parseChassisProperties() argument 221 parseChassisTemplate(const json & element) parseChassisTemplate() argument 259 parseChassisTemplateArray(const json & element) parseChassisTemplateArray() argument 270 parseGPIO(const json & element,const std::map<std::string,std::string> & variables) parseGPIO() argument 297 parseI2CInterface(const nlohmann::json & element,const std::map<std::string,std::string> & variables) parseI2CInterface() argument 320 parsePowerSequencer(const nlohmann::json & element,const std::map<std::string,std::string> & variables,Services & services) parsePowerSequencer() argument 402 parsePowerSequencerArray(const nlohmann::json & element,const std::map<std::string,std::string> & variables,Services & services) parsePowerSequencerArray() argument 416 parseRail(const json & element,const std::map<std::string,std::string> & variables) parseRail() argument 496 parseRailArray(const json & element,const std::map<std::string,std::string> & variables) parseRailArray() argument 507 parseRoot(const json & element,Services & services) parseRoot() argument 540 parseVariables(const json & element) parseVariables() argument [all...] |
| H A D | config_file_parser.hpp | 90 * Parses a JSON element containing a chassis object. 96 * @param element JSON element 101 const json& element, 105 * Parses a JSON element containing an array of chassis objects. 111 * @param element JSON element 116 const json& element, 120 * Parses a JSON element containing the properties of a chassis. 122 * The JSON element ma [all...] |
| /openbmc/openbmc/poky/bitbake/lib/bs4/builder/ |
| H A D | _html5lib.py | 17 from bs4.element import ( 26 from bs4.element import ( 192 self.soup.append(node.element) 198 return treebuilder_base.TreeBuilder.getFragment(self).element 200 def testSerializer(self, element): argument 205 def serializeElement(element, indent=0): argument 206 if isinstance(element, BeautifulSoup): 208 if isinstance(element, Doctype): 209 m = doctype_re.match(element) 221 elif isinstance(element, Comment): [all …]
|
| /openbmc/phosphor-power/ |
| H A D | json_parser_utils.cpp | 29 uint8_t parseBitPosition(const nlohmann::json& element, in parseBitPosition() argument 32 int value = parseInteger(element, variables); in parseBitPosition() 40 uint8_t parseBitValue(const nlohmann::json& element, in parseBitValue() argument 43 int value = parseInteger(element, variables); in parseBitValue() 51 bool parseBoolean(const nlohmann::json& element, in parseBoolean() argument 54 if (element.is_boolean()) in parseBoolean() 56 return element.get<bool>(); in parseBoolean() 59 if (element.is_string() && !variables.empty()) in parseBoolean() 61 std::string value = parseString(element, true, variables); in parseBoolean() 75 double parseDouble(const nlohmann::json& element, in parseDouble() argument [all …]
|
| H A D | json_parser_utils.hpp | 63 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() argument 66 auto it = element.find(property); in getRequiredProperty() 67 if (it == element.end()) in getRequiredProperty() 87 const nlohmann::json& element, 102 const nlohmann::json& element, 117 const nlohmann::json& element, 132 const nlohmann::json& element, 151 const nlohmann::json& element, 167 const nlohmann::json& element, 182 const nlohmann::json& element, [all …]
|
| /openbmc/bmcweb/include/ |
| H A D | event_service_store.hpp | 50 for (const auto& element : j) in fromJson() local 52 if (element.first == "Id") in fromJson() 55 element.second.get_ptr<const std::string*>(); in fromJson() 62 else if (element.first == "Destination") in fromJson() 65 element.second.get_ptr<const std::string*>(); in fromJson() 78 else if (element.first == "Protocol") in fromJson() 81 element.second.get_ptr<const std::string*>(); in fromJson() 88 else if (element.first == "VerifyCertificate") in fromJson() 90 const bool* value = element.second.get_ptr<const bool*>(); in fromJson() 97 else if (element.first == "DeliveryRetryPolicy") in fromJson() [all …]
|
| H A D | sessions.hpp | 81 for (const auto& element : j) in fromJson() local 84 element.second.get_ptr<const std::string*>(); in fromJson() 89 element.first); in fromJson() 92 if (element.first == "unique_id") in fromJson() 96 else if (element.first == "session_token") in fromJson() 100 else if (element.first == "csrf_token") in fromJson() 104 else if (element.first == "username") in fromJson() 108 else if (element.first == "client_id") in fromJson() 112 else if (element.first == "client_ip") in fromJson() 121 element.first); in fromJson() [all …]
|
| /openbmc/phosphor-power/phosphor-power-sequencer/test/ |
| H A D | config_file_parser_tests.cpp | 359 const json element = R"( in TEST() 374 auto chassis = parseChassis(element, chassisTemplates); in TEST() 386 const json element = R"( in TEST() 396 auto chassis = parseChassis(element, chassisTemplates); in TEST() 408 const json element = R"( in TEST() 419 auto chassis = parseChassis(element, chassisTemplates); in TEST() 432 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() 433 parseChassis(element, chassisTemplates); in TEST() 444 const json element = R"( in TEST() 451 parseChassis(element, chassisTemplate in TEST() 365 const json element = R"( TEST() local 393 const json element = R"( TEST() local 416 const json element = R"( TEST() local 441 const json element = R"( [ "vdda", "vddb" ] )"_json; TEST() local 454 const json element = R"( TEST() local 474 const json element = R"( TEST() local 493 const json element = R"( TEST() local 512 const json element = R"( TEST() local 531 const json element = R"( TEST() local 549 const json element = R"( TEST() local 568 const json element = R"( TEST() local 609 const json element = R"( TEST() local 620 const json element = R"( TEST() local 647 const json element = R"( TEST() local 673 const json element = R"( TEST() local 690 const json element = R"( TEST() local 711 const json element = R"( TEST() local 734 const json element = R"( TEST() local 776 const json element = R"( TEST() local 817 const json element = R"( true )"_json; TEST() local 832 const json element = R"( TEST() local 853 const json element = R"( TEST() local 873 const json element = R"( TEST() local 894 const json element = R"( TEST() local 914 const json element = R"( TEST() local 935 const json element = R"( TEST() local 956 const json element = R"( TEST() local 977 const json element = R"( TEST() local 998 const json element = R"( TEST() local 1020 const json element = R"( TEST() local 1044 const json element = R"( TEST() local 1071 const json element = R"( TEST() local 1091 const json element = R"( [ "vdda", "vddb" ] )"_json; TEST() local 1103 const json element = R"( TEST() local 1121 const json element = R"( TEST() local 1139 const json element = R"( TEST() local 1157 const json element = R"( TEST() local 1175 const json element = R"( TEST() local 1194 const json element = R"( TEST() local 1216 const json element = R"( TEST() local 1226 const json element = R"( TEST() local 1258 const json element = R"( TEST() local 1274 const json element = R"( TEST() local 1300 const json element = R"( TEST() local 1313 const json element = R"( TEST() local 1327 const json element = R"( TEST() local 1343 const json element = R"( [ "vdda", "vddb" ] )"_json; TEST() local 1356 const json element = R"( TEST() local 1373 const json element = R"( TEST() local 1391 const json element = R"( TEST() local 1409 const json element = R"( TEST() local 1427 const json element = R"( TEST() local 1448 const json element = R"( TEST() local 1462 const json element = R"( TEST() local 1478 const json element = R"( [ 1, "0x70" ] )"_json; TEST() local 1491 const json element = R"( TEST() local 1508 const json element = R"( TEST() local 1525 const json element = R"( TEST() local 1543 const json element = R"( TEST() local 1561 const json element = R"( TEST() local 1580 const json element = R"( TEST() local 1601 const json element = R"( TEST() local 1629 const json element = R"( TEST() local 1660 const json element = R"( TEST() local 1682 const json element = R"( [ "vdda", "vddb" ] )"_json; TEST() local 1696 const json element = R"( TEST() local 1717 const json element = R"( TEST() local 1738 const json element = R"( TEST() local 1760 const json element = R"( TEST() local 1782 const json element = R"( TEST() local 1803 const json element = R"( TEST() local 1825 const json element = R"( TEST() local 1847 const json element = R"( TEST() local 1869 const json element = R"( TEST() local 1891 const json element = R"( TEST() local 1913 const json element = R"( TEST() local 1935 const json element = R"( TEST() local 1958 const json element = R"( TEST() local 1982 const json element = R"( TEST() local 1995 const json element = R"( TEST() local 2028 const json element = R"( TEST() local 2066 const json element = R"( TEST() local 2084 const json element = R"( TEST() local 2109 const json element = R"( TEST() local 2136 const json element = R"( TEST() local 2154 const json element = R"( TEST() local 2183 const json element = R"( TEST() local 2221 const json element = R"( [ "vdda", "vddb" ] )"_json; TEST() local 2234 const json element = R"( TEST() local 2251 const json element = R"( TEST() local 2269 const json element = R"( TEST() local 2287 const json element = R"( TEST() local 2305 const json element = R"( TEST() local 2323 const json element = R"( TEST() local 2341 const json element = R"( TEST() local 2359 const json element = R"( TEST() local 2377 const json element = R"( TEST() local 2396 const json element = R"( TEST() local 2414 const json element = R"( TEST() local 2432 const json element = R"( TEST() local 2452 const json element = R"( TEST() local 2463 const json element = R"( TEST() local 2478 const json element = R"( TEST() local 2497 const json element = R"( TEST() local 2514 const json element = R"( TEST() local 2532 const json element = R"( TEST() local 2553 const json element = R"( TEST() local 2582 const json element = R"( TEST() local 2625 const json element = R"( [ "VDD_CPU0", "VCS_CPU1" ] )"_json; TEST() local 2638 const json element = R"( TEST() local 2663 const json element = R"( TEST() local 2687 const json element = R"( TEST() local 2710 const json element = R"( TEST() local 2736 const json element = R"( TEST() local 2746 const json element = R"( TEST() local 2761 const json element = R"( TEST() local 2778 const json element = R"( TEST() local 2793 const json element = R"( TEST() local 2810 const json element = R"( TEST() local 2827 const json element = R"( TEST() local [all...] |
| /openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/ |
| H A D | test_most_recent_builds_states.py | 48 element = self.wait_until_visible(selector) 49 self.assertRegex(element.get_attribute('innerHTML'), 64 element = self.wait_until_visible(selector) 67 bar_element = element.find_element(By.CSS_SELECTOR, bar_selector) 77 element = self.wait_until_visible(selector) 78 bar_element = element.find_element(By.CSS_SELECTOR, bar_selector) 82 element = Wait(self.driver).until(recipe_bar_updated, msg) 98 element = self.wait_until_visible(selector) 99 self.assertRegex(element.get_attribute('innerHTML'), 109 element = self.wait_until_visible(selector) [all …]
|
| H A D | test_project_config_page.py | 51 element = self.wait_until_visible('#hintError-image-fs_type') 53 self.assertTrue(("A valid image type cannot include underscores" in element.text), 101 element = self.driver.find_element(By.ID, 'new-imagefs_types') 105 self.assertTrue(("cpio" in element.get_attribute('value'), 108 self.assertTrue(("cpio" not in element.text), 128 element = self.wait_until_visible('#hintError-initialChar-dl_dir') 132 self.assertTrue((self.INVALID_PATH_START_TEXT in element.text), msg) 138 element = self.wait_until_visible('#hintError-dl_dir') 140 self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg) 146 element = self.wait_until_visible('#hintError-dl_dir') [all …]
|
| H A D | test_all_projects_page.py | 141 element = default_project_row.find_element(By.CSS_SELECTOR, selector) 142 text = element.text.strip() 151 element = other_project_row.find_element(By.CSS_SELECTOR, selector) 152 text = element.text.strip() 177 element = default_project_row.find_element(By.CSS_SELECTOR, selector) 178 text = element.text.strip() 187 element = other_project_row.find_element(By.CSS_SELECTOR, selector) 188 text = element.text.strip() 213 element = default_project_row.find_element(By.CSS_SELECTOR, selector) 214 link_url = element.get_attribute('href').strip() [all …]
|
| /openbmc/webui-vue/src/components/Mixins/ |
| H A D | JumpLinkMixin.js | 3 setFocus(element) { argument 4 element.setAttribute('tabindex', '-1'); 5 element.focus(); 7 element.removeAttribute('tabindex'); 12 const element = this.$refs[ref].$el; 15 this.setFocus(element); 18 const offset = element.offsetTop - 50;
|
| /openbmc/bmcweb/scripts/ |
| H A D | generate_schema_enums.py | 32 def parse_schema(element, filename): argument 34 namespace = element.attrib["Namespace"] 35 for schema_element in element: 62 for element in ds: 63 if element.tag == EDM + "Schema": 64 results.extend(parse_schema(element, filename)) 90 for element in enum_list: 91 redfish_defs_file.write("enum class {}{{\n".format(element.name)) 92 values = element.values 106 for element in enum_list: [all …]
|
| /openbmc/boost-dbus/include/dbus/ |
| H A D | element.hpp | 54 struct element { struct 59 struct element<bool> { struct 64 struct element<byte> { struct 69 struct element<int16> { struct 74 struct element<uint16> { struct 79 struct element<int32> { struct 84 struct element<uint32> { struct 89 struct element<int64> { struct 94 struct element<uint64> { struct 99 struct element<double> { struct [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | feature_to_c.py | 45 event, element = next(events) variable 49 if element.tag != 'feature': 53 feature_name = element.attrib['name'] 58 for event, element in events: 60 if element.tag != tags[len(tags) - 1]: 65 if element.tag == 'feature': 68 if len(tags) < 2 and element.tag == 'reg': 69 if 'regnum' in element.attrib: 70 regnum = int(element.attrib['regnum']) 72 regnames.append(element.attrib['name']) [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/toaster/tests/functional/ |
| H A D | test_project_config.py | 57 element = self.wait_until_visible('#hintError-image-fs_type') 59 self.assertTrue(("A valid image type cannot include underscores" in element.text), 102 element = self.driver.find_element(By.ID, 'new-imagefs_types') 104 self.assertTrue(("cpio" in element.get_attribute('value'), 107 self.assertTrue(("cpio" not in element.text), 131 element = self.wait_until_visible('#hintError-initialChar-dl_dir') 135 self.assertTrue((self.INVALID_PATH_START_TEXT in element.text), msg) 141 element = self.wait_until_visible('#hintError-dl_dir') 143 self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg) 149 element = self.wait_until_visible('#hintError-dl_dir') [all …]
|
| H A D | functional_helpers.py | 108 element = table_element.find_element(By.LINK_TEXT, link_text) 112 return element 119 element = self.driver.find_element(By.XPATH, element_xpath) 122 return element 129 element = self.driver.find_element(By.XPATH, element_xpath) 132 return element 138 element = self.driver.find_element(By.XPATH, element_xpath) 141 return element 190 element = self.wait_until_visible('#project-created-notification') 196 project_name in element.text,
|
| /openbmc/qemu/docs/interop/ |
| H A D | prl-xml.rst | 71 All information is placed in a single XML element 73 The element has only one attribute, ``Version``, which must be ``1.0``. 89 ``Disk_Parameters`` element 92 The ``Disk_Parameters`` element describes the physical layout of the 95 The ``Disk_Parameters`` element MUST contain the following child elements: 110 ``StorageData`` element 113 This element of the file describes the root image and all snapshot images. 115 The ``StorageData`` element consists of the ``Storage`` child element, 124 A ``Storage`` element has the following child elements: 137 Each ``Image`` element has the following child elements: [all …]
|
| /openbmc/qemu/include/qapi/ |
| H A D | util.h | 39 #define QAPI_LIST_PREPEND(list, element) do { \ argument 41 _tmp->value = (element); \ 53 #define QAPI_LIST_APPEND(tail, element) do { \ argument 55 (*(tail))->value = (element); \
|
| /openbmc/phosphor-webui/app/common/directives/ |
| H A D | dirPagination.js | 78 return function dirPaginationLinkFn(scope, element, attrs) { argument 93 addNgRepeatToElement(element, attrs, repeatExpression); 95 removeTemporaryAttributes(element); 96 var compiled = $compile(element); 177 function addNgRepeatToElement(element, attrs, repeatExpression) { argument 178 if (element[0].hasAttribute('dir-paginate-start') || 179 element[0].hasAttribute('data-dir-paginate-start')) { 182 element.eq(element.length - 1).attr('ng-repeat-end', true); 196 angular.element(el).attr('dir-paginate-no-compile', true); 206 function removeTemporaryAttributes(element) { argument [all …]
|
| H A D | app-navigation.js | 57 link: function(scope, element, attributes) { 58 var rawNavElement = angular.element(element)[0]; 59 angular.element(window.document).bind('click', function(event) {
|