Home
last modified time | relevance | path

Searched full:dict (Results 1 – 25 of 450) sorted by relevance

12345678910>>...18

/openbmc/qemu/tests/unit/
H A Dcheck-block-qdict.c18 QDict *dict, *copy; in qdict_defaults_test() local
20 dict = qdict_new(); in qdict_defaults_test()
23 qdict_set_default_str(dict, "foo", "abc"); in qdict_defaults_test()
24 qdict_set_default_str(dict, "foo", "def"); in qdict_defaults_test()
25 g_assert_cmpstr(qdict_get_str(dict, "foo"), ==, "abc"); in qdict_defaults_test()
26 qdict_set_default_str(dict, "bar", "ghi"); in qdict_defaults_test()
28 qdict_copy_default(copy, dict, "foo"); in qdict_defaults_test()
31 qdict_copy_default(copy, dict, "bar"); in qdict_defaults_test()
35 qobject_unref(dict); in qdict_defaults_test()
303 QDict *dict = qdict_new(); in qdict_array_entries_test() local
[all …]
H A Dtest-qemu-opts.c293 QDict *dict; in test_qemu_opt_get_size() local
313 dict = qdict_new(); in test_qemu_opt_get_size()
314 g_assert(dict != NULL); in test_qemu_opt_get_size()
316 qdict_put_str(dict, "size1", "10"); in test_qemu_opt_get_size()
318 qemu_opts_absorb_qdict(opts, dict, &error_abort); in test_qemu_opt_get_size()
326 qdict_put_str(dict, "size1", "15"); in test_qemu_opt_get_size()
328 qemu_opts_absorb_qdict(opts, dict, &error_abort); in test_qemu_opt_get_size()
335 qdict_del(dict, "size1"); in test_qemu_opt_get_size()
336 g_free(dict); in test_qemu_opt_get_size()
878 QDict *dict; in test_opts_to_qdict_basic() local
[all …]
/openbmc/openbmc-test-automation/bin/
H A Dsol_utils.tcl25 set help_dict [dict create\
43 set state [dict create\
153 dict set state ssh_logged_in 1
157 if { [dict get $state ssh_logged_in] } {
167 dict set state ssh_logged_in 1
185 if { ! [dict get $state ssh_logged_in] } {
196 dict set state ssh_logged_in 0
220 if { ! [dict get $state ssh_logged_in] } {
238 dict set state os_login_prompt 1
241 dict set state os_logged_in 1
[all …]
/openbmc/openbmc-build-scripts/tools/
H A Dconfig-clang-tidy5 from typing import Any, Dict, List, Tuple
128 result: Dict[str, bool] = {}
154 def _split(s: str) -> Dict[str, bool]:
155 result: Dict[str, bool] = {}
173 def _join(data: Dict[str, bool]) -> str:
185 repo: List[Dict[str, str]], ref: List[Dict[str, str]]
186 ) -> List[Dict[str, str]]:
197 repo: List[Dict[str, str]], option: str, drop: bool
198 ) -> List[Dict[str, str]]:
210 def _unroll(repo: List[Dict[str, str]]) -> Dict[str, str]:
[all …]
/openbmc/openbmc-test-automation/oem/ieisystem/
H A Dtest_sensor_monitoring.robot34 Should Be Equal As Strings ${resp.dict['Oem']['Public']['DiscreteSensors']['@odata.id']}
36 Should Be Equal As Strings ${resp.dict['Oem']['Public']['ThresholdSensors']['@odata.id']}
38 Should Be Equal As Strings ${resp.dict['Thermal']['@odata.id']}
40 Should Be Equal As Strings ${resp.dict['Power']['@odata.id']}
47 Check If Expected Sensors Are Present ${resp.dict['Voltages']} Voltages
49 ... ${resp.dict['Voltages']} ReadingVolts
55 Check If Expected Sensors Are Present ${resp.dict['Temperatures']} Temperatures
56 Check If Expected Sensors Are Present ${resp.dict['Fans']} Fans
59 ... ${resp.dict['Temperatures']} ReadingCelsius
61 ... ${resp.dict['Fans']} Reading
[all …]
/openbmc/qemu/qapi/
H A Dqmp-dispatch.c44 static QDict *qmp_dispatch_check_obj(QDict *dict, bool allow_oob, in qmp_dispatch_check_obj() argument
52 for (ent = qdict_first(dict); ent; in qmp_dispatch_check_obj()
53 ent = qdict_next(dict, ent)) { in qmp_dispatch_check_obj()
90 return dict; in qmp_dispatch_check_obj()
107 bool qmp_is_oob(const QDict *dict) in qmp_is_oob() argument
109 return qdict_haskey(dict, "exec-oob") in qmp_is_oob()
110 && !qdict_haskey(dict, "execute"); in qmp_is_oob()
145 QDict *dict; in qmp_dispatch() local
150 dict = qobject_to(QDict, request); in qmp_dispatch()
151 if (!dict) { in qmp_dispatch()
[all …]
H A Dqmp-event.c38 QDict *dict = qdict_new(); in qmp_event_build_dict() local
39 qdict_put_str(dict, "event", event_name); in qmp_event_build_dict()
40 timestamp_put(dict); in qmp_event_build_dict()
41 return dict; in qmp_event_build_dict()
/openbmc/qemu/python/qemu/qmp/
H A Dmessage.py11 Dict,
28 be instantiated from either another mapping (like a `dict`), or from
48 Or back into a garden-variety `dict`::
50 >>> dict(msg)
66 self._obj: Optional[Dict[str, object]] = None
73 self._obj = dict(value)
120 def _object(self) -> Dict[str, object]:
122 A `dict` representing this QMP message.
145 def _deserialize(cls, data: bytes) -> Dict[str, object]:
147 Deserialize JSON `bytes` into a native Python `dict`.
[all …]
H A Dlegacy.py30 Dict,
44 QMPMessage = Dict[str, Any]
50 QMPObject = Dict[str, object]
53 # QMPReturnValue is usually a dict/json object, but due to QAPI's
147 :return: QMP greeting dict, or None if negotiate is false
166 :return: QMP greeting dict
182 :param qmp_cmd: QMP command to be sent as a Python dict
183 :return: QMP response as a Python dict
185 return dict(
198 args: Optional[Dict[str, object]] = None) -> QMPMessage:
[all …]
/openbmc/openbmc-test-automation/openpower/ext_interfaces/
H A Dtest_vmicert_management.robot155 ${dict}= Execute Process Multi Keyword ${5}
159 Dictionary Should Not Contain Value ${dict} False
169 ${dict}= Execute Process Multi Keyword ${5}
174 Dictionary Should Not Contain Value ${dict} False
184 ${dict}= Execute Process Multi Keyword ${5}
188 Dictionary Should Not Contain Value ${dict} False
200 ${dict}= Execute Process Multi Keyword ${5}
204 Dictionary Should Not Contain Value ${dict} False
217 ${dict}= Execute Process Multi Keyword ${5}
220 Dictionary Should Not Contain Value ${dict} False
[all …]
/openbmc/obmc-console/
H A Dconfig.c46 if (!config || !config->dict) { in config_get_value()
59 const char *value = iniparser_getstring(config->dict, buf, NULL); in config_get_value()
70 dictionary *dict; in config_init() local
77 dict = iniparser_load(filename); in config_init()
78 if (!dict) { in config_init()
98 dict = NULL; in config_init()
103 iniparser_freedict(dict); in config_init()
107 config->dict = dict; in config_init()
130 return iniparser_getstring(config->dict, buf, NULL); in config_get_section_value()
139 if (config->dict) { in config_fini()
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/
H A Dmerge_yamls.py23 Works like dict.update() that recursively updates any dict values present in
27 target (dict): Values to be overwritten by corresponding values from
29 source (dict): Overriding values. Not changed by call.
35 if not isinstance(source, dict):
38 if k in target and isinstance(target[k], dict):
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw/
H A Dmerge_sensor_config.py23 Works like dict.update() that recursively updates any dict values present in
27 target (dict): Values to be overwritten by corresponding values from
29 source (dict): Overriding values. Not changed by call.
35 if not isinstance(source, dict):
38 if k in target and isinstance(target[k], dict):
/openbmc/openbmc/meta-phosphor/recipes-phosphor/settings/phosphor-settings/
H A Dmerge_settings.py17 Works like dict.update() that recursively updates/removes any dict values
21 target (dict): Values to be overwritten by corresponding values from
23 source (dict): Overriding values. Not changed by call.
32 if not isinstance(source, dict):
35 if k in target and isinstance(target[k], dict):
/openbmc/openbmc/meta-phosphor/recipes-phosphor/settings/phosphor-settings-manager/
H A Dmerge_settings.py17 Works like dict.update() that recursively updates/removes any dict values
21 target (dict): Values to be overwritten by corresponding values from
23 source (dict): Overriding values. Not changed by call.
32 if not isinstance(source, dict):
35 if k in target and isinstance(target[k], dict):
/openbmc/openbmc-test-automation/redfish/systems/
H A Dtest_sensor_monitoring.robot32 Should Be Equal As Strings ${resp.dict['Sensors']['@odata.id']}
34 Should Be Equal As Strings ${resp.dict['Thermal']['@odata.id']}
36 Should Be Equal As Strings ${resp.dict['Power']['@odata.id']}
43 Check Sensors Present ${resp.dict['Voltages']} Voltage
45 ... ${resp.dict['Voltages']} ReadingVolts
51 Check Sensors Present ${resp.dict['Temperatures']} Temperature
52 Check Sensors Present ${resp.dict['Fans']} Fans
55 ... ${resp.dict['Temperatures']} ReadingCelsius
57 ... ${resp.dict['Fans']} Reading
160 ... '${resp.dict['Status']['Health']}' != 'OK'
[all …]
/openbmc/openbmc-test-automation/extended/
H A Dtest_bmc_stress_buster.robot28 ${dict}= Execute Process
30 Dictionary Should Not Contain Value ${dict} False
39 ${dict}= Execute Process
41 Dictionary Should Not Contain Value ${dict} False
50 ${dict}= Execute Process ${IPMI_BUSTER_MAX} IPMI Check Status
51 Dictionary Should Not Contain Value ${dict} False
/openbmc/docs/architecture/
H A Dobject-mapper.md42 dict entry(
85 dict entry(
88 dict entry(
98 dict entry(
101 dict entry(
150 dict entry(
153 dict entry(
163 dict entry(
166 dict entry(
230 dict entry(
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddata_smart.py156 class DataContext(dict):
161 dict.__init__(self, **kwargs)
364 """Return a dict of file/line references"""
426 self.dict = {}
514 if not var in self.dict:
515 self.dict[var] = {}
518 dest = self.dict
529 if var in self.dict:
535 self.dict[var] = copy.copy(local_var)
592 if not var in self.dict:
[all …]
/openbmc/qemu/scripts/qapi/
H A Dintrospect.py17 Dict,
54 # Non-scalar: List, Dict
55 # _value = Union[str, bool, None, Dict[str, JSONValue], List[JSONValue]]
64 _NonScalar = Union[Dict[str, _Stub], List[_Stub]]
72 SchemaInfo = Dict[str, object]
73 SchemaInfoEnumMember = Dict[str, object]
74 SchemaInfoObject = Dict[str, object]
75 SchemaInfoObjectVariant = Dict[str, object]
76 SchemaInfoObjectMember = Dict[str, object]
77 SchemaInfoCommand = Dict[str, object]
[all …]
H A Dexpr.py20 consisting of dict, list, str, bool, and int nodes. This module ensures
36 Dict,
186 def check_keys(value: Dict[str, object],
192 Ensure that a dict has a specific set of keys.
194 :param value: The dict to check.
250 def check_if(expr: Dict[str, object],
255 The ``if`` member may be either a ``str`` or a dict.
276 if not isinstance(cond, dict):
317 If ``members`` is a dict, for every value in that dict, if that
318 value is not itself already a dict, normalize it to
[all …]
/openbmc/obmc-console/test/
H A Dtest-config-parse.c34 dictionary *dict = iniparser_load_file(f, ""); in mock_config_from_buffer() local
38 if (dict == NULL) { in mock_config_from_buffer()
45 ctx->dict = dict; in mock_config_from_buffer()
68 assert(ctx->dict != NULL); in execute_test()
/openbmc/openbmc-test-automation/redfish/update_service/
H A Dtest_firmware_inventory.robot28 Should Be Equal As Strings ${resp.dict["ServiceEnabled"]} ${True}
55 Should Be True ${resp.dict["Members@odata.count"]} >= ${1}
56 Length Should Be ${resp.dict["Members"]} ${resp.dict["Members@odata.count"]}
70 FOR ${entry} IN RANGE 0 ${resp.dict["Members@odata.count"]}
71 ${resp_resource}= Redfish.Get ${resp.dict["Members"][${entry}]["@odata.id"]}
78 Should Be Equal As Strings ${resp_resource.dict["Status"]["Health"]} OK
79 Should Be Equal As Strings ${resp_resource.dict["Status"]["HealthRollup"]} OK
80 Should Be Equal As Strings ${resp_resource.dict["Status"]["State"]} Enabled
92 ... ${bmc_manager.dict["FirmwareVersion"]} ${manager_bmc_version.strip('"')}
101 ${actual_count}= Evaluate ${resp.dict["Members@odata.count"]}-1
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Inventory/
H A DManager.interface.yaml15 …type: dict[object_path,dict[string,dict[string,variant[boolean,size,int64,uint16,string,array[byte…
/openbmc/qemu/tests/qtest/migration/
H A Dmigration-util.c65 QDict *dict = qdict_new(); in SocketAddress_to_qdict() local
69 qdict_put_str(dict, "type", "inet"); in SocketAddress_to_qdict()
70 qdict_put_str(dict, "host", addr->u.inet.host); in SocketAddress_to_qdict()
71 qdict_put_str(dict, "port", addr->u.inet.port); in SocketAddress_to_qdict()
74 qdict_put_str(dict, "type", "unix"); in SocketAddress_to_qdict()
75 qdict_put_str(dict, "path", addr->u.q_unix.path); in SocketAddress_to_qdict()
78 qdict_put_str(dict, "type", "fd"); in SocketAddress_to_qdict()
79 qdict_put_str(dict, "str", addr->u.fd.str); in SocketAddress_to_qdict()
82 qdict_put_str(dict, "type", "vsock"); in SocketAddress_to_qdict()
83 qdict_put_str(dict, "cid", addr->u.vsock.cid); in SocketAddress_to_qdict()
[all …]

12345678910>>...18