| /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 104 verifyIsObject(element); in parseChassis() 107 if (!element.contains("template_id")) in parseChassis() 110 return parseChassisProperties(element, isChassisTemplate, NO_VARIABLES, in parseChassis() 118 if (element.contains("comments")) in parseChassis() 124 const json& templateIDElement = getRequiredProperty(element, "template_id"); in parseChassis() 130 getRequiredProperty(element, "template_variable_values"); in parseChassis() 136 verifyPropertyCount(element, propertyCount); in parseChassis() 154 const json& element, in parseChassisArray() argument 158 verifyIsArray(element); in parseChassisArray() [all …]
|
| H A D | config_file_parser.hpp | 104 const json& element, 121 const json& element, 141 const json& element, bool isChassisTemplate, 166 const json& element); 182 const json& element); 195 PgoodGPIO parseGPIO(const json& element, 210 const json& element, const std::map<std::string, std::string>& variables); 225 const json& element, const std::map<std::string, std::string>& variables, 241 const json& element, const std::map<std::string, std::string>& variables, 256 const json& element, const std::map<std::string, std::string>& variables); [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 | 365 const json element = R"( in TEST() local 381 auto chassis = parseChassis(element, chassisTemplates, services); in TEST() 393 const json element = R"( in TEST() local 404 auto chassis = parseChassis(element, chassisTemplates, services); in TEST() 416 const json element = R"( in TEST() local 428 auto chassis = parseChassis(element, chassisTemplates, services); in TEST() 441 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() local 443 parseChassis(element, chassisTemplates, services); in TEST() 454 const json element = R"( in TEST() local 462 parseChassis(element, chassisTemplates, services); in TEST() [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) {
|