Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 68) sorted by relevance

123

/misc/config_tools/scenario_config/
A Delementpath_overlay.py46 def hex_to_int(value): argument
47 if hasattr(value, 'text'):
48 value = value.text
49 if isinstance(value, int):
50 return value
52 return int(value)
53 elif isinstance(value, str) and value.startswith("0x"):
78 value = hex_to_int(op)
90 if value == arg2:
104 if value in results:
[all …]
/misc/config_tools/board_inspector/inspectorlib/
A Dbitfields.py44 def bitfield(value, msb, lsb=None): argument
50 if value > bitfield_max(msb, lsb):
56 return value << lsb
58 def getbits(value, msb, lsb=None): argument
62 return (value >> lsb) & bitfield_max(msb, lsb)
64 def setbits(value, fieldvalue, msb, lsb=None): argument
66 value &= ~bitmask(msb, lsb)
67 value |= bitfield(fieldvalue, msb, lsb)
68 return value
A Dunpack.py62 return value
125 def add_field(self, name, value, fmt=None): argument
129 if isinstance(value, int) and not isinstance(value, bool):
137 setattr(self, name, value)
168 def f(value): argument
169 return "{} ({})".format(fmt.format(value), table.get(value, default))
173 def f(value): argument
174 return "{} ({})".format(fmt.format(value), function(value))
178 def f(value): argument
179 if value is None:
[all …]
/misc/config_tools/board_inspector/acpiparser/aml/
A Dbuilder.py12 def __build_value(label, value): argument
13 tree = Tree(label, [value])
92 def build_value(value): argument
94 if isinstance(value, int):
95 value = datatypes.Integer(value)
96 v = value.get()
105 buffer_size = len(value.get())
113 ByteList(value.get()))
118 len(value.elements),
121 if isinstance(value, str):
[all …]
A Dvisitors.py23 if isinstance(tree.value, int):
25 elif isinstance(tree.value, str):
26 if self.__is_printable(tree.value):
49 name = tree.children[name_string_idx].value
138 name = tree.value[:4]
145 segs = tree.value.lstrip("^\\")
146 if len(segs) < len(tree.value):
147 acc.extend(bytes(tree.value[:len(tree.value) - len(segs)], "ascii"))
163 acc.extend(bytes(tree.value, "latin-1"))
168 self.acc.append(tree.value)
[all …]
A Dparser.py458 name = tree.children[2].value
463 name = tree.children[2].value
468 name = tree.children[2].value
473 name = tree.children[3].value
478 name = tree.children[2].value
483 name = tree.children[2].value
496 name = tree.NameString.value
497 ty = tree.ObjectType.value
519 flags = tree.FieldFlags.value
542 flags = tree.FieldFlags.value
[all …]
A Ddatatypes.py54 def write(self, byte_idx, value, bit_width): argument
99 def write_field(self, name, value): argument
119 value >>= bit_count
132 value >>= bit_count
161 def set(self, value): argument
162 data = value.to_buffer().get()
255 def __init__(self, value, width=64): argument
256 self.__value = value
288 self.name = tree.children[1].value
397 def write_field(self, name, value): argument
[all …]
/misc/config_tools/configurator/pyodide/
A DloadScenario.py29 for key, value in obj.items():
30 if not isinstance(value, dict):
32 if value.get('type', '') == 'array':
34 elif value.get('type', '') == 'integer':
60 for key, value in obj.items():
61 if value is None:
67 elif not isinstance(value, int):
68 obj[key] = int(value)
69 if key in arr_keys and not isinstance(value, list):
70 obj[key] = [value]
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/components/
A DWidget.js142 set(value) {
144 const trueValue = (value === '' || value === null) ? props.emptyValue : value;
156 && widgetValue.value === undefined
157 && widgetValue.value !== props.uiProps.enumOptions[0]
161 widgetValue.value = [];
163 widgetValue.value = props.uiProps.enumOptions[0].value;
172 props.getWidget.call(null, widgetRef.value);
236 validator(rule, value, callback) {
241 formData: value,
261 value,
[all …]
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/ArrayField/
A Dindex.js35 const value = getPathVal(rootFormData, curNodePath); constant
37 if (Array.isArray(value)) return value;
53 formKeys.value = newVal.map(() => genId());
60 const itemsFormData = computed(() => curFormData.value.map((item, index) => ({
61 key: formKeys.value[index],
62 value: item
135 curStrategy.apply(null, [formKeys.value, keysParams]);
138 curStrategy.apply(null, [curFormData.value, formDataPrams]);
187 itemsFormData: itemsFormData.value,
202 schema: Object.entries(schema).reduce((preVal, [key, value]) => {
[all …]
/misc/config_tools/board_inspector/cpuparser/
A Dplatformbase.py89 def format_field(msb, lsb, value): argument
92 return str(value)
93 return "{:#x}".format(value)
130 def __init__(self, value=0): argument
131 self.value = value
134 return self.value == other.value
137 return self.value != other.value
184 if self.value is None:
219 def setter(self, value): argument
220 if value > max_value:
[all …]
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/
A Dindex.js82 if (!deepEquals(rootFormData.value, tempVal)) {
83 rootFormData.value = tempVal;
106 emitFormDataChange(rootFormData.value, props.modelValue);
116 if (footerParams.value.show) {
119 okBtn: footerParams.value.okBtn,
120 okBtnProps: footerParams.value.okBtnProps,
121 cancelBtn: footerParams.value.cancelBtn,
122 formItemAttrs: footerParams.value.formItemAttrs,
153 rootFormData: rootFormData.value, // 根节点的数据
180 formData: rootFormData.value
/misc/config_tools/configurator/packages/vue-json-schema-form/utils/
A DformUtils.js115 const value = itemSchema[key];
117 if (key === 'ui:options' && isObject(value)) {
118 return { ...options, ...value };
127 …bstring(3)]: curNodePath === undefined ? value : handleExpression(rootFormData, curNodePath, value
268 const value = itemSchema[key];
270 if (key === 'err:options' && isObject(value)) {
271 return { ...options, ...value };
397 return schema.enum.map((value, i) => {
399 return { label, value };
413 const value = toConstant(curSchema);
[all …]
A Dvue3Utils.js20 export function setPathVal(obj, path, value) { argument
25 obj[pathArr[pathArr.length - 1]] = value;
46 modelValue: value,
53 [model]: value,
A Dutils.js16 export const guessType = function guessType(value) { argument
17 if (Array.isArray(value)) {
19 } if (typeof value === 'string') {
21 } if (value == null) {
23 } if (typeof value === 'boolean') {
26 } if (!isNaN(value)) {
28 } if (typeof value === 'object') {
233 return Object.entries(obj).reduce((preVal, [key, value]) => {
234 const newKey = filterFn(key, value);
236 preVal[newKey] = value;
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-form-naive/src/
A Dindex.js47 formRef.value.$$validate = (callBack) => {
48 formRef.value.validate((errors) => {
57 attrs.setFormRef(formRef.value);
69 model: model.value, // 不会自动解包
86 asyncValidator(rule, value, callback) {
87 return validateRule.validator(rule, value, callback);
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/combiningSchemas/SelectLinkageField/
A Dindex.js79 value: index,
94 curValue: curSelectIndex.value,
100 curSelectIndex.value = event;
139 Object.entries(newOptionData).forEach(([key, value]) => {
141 value !== undefined
145 || isObject(value)
152 setPathVal(curFormData, key, value);
171 let curSelectSchema = props.selectList[curSelectIndex.value];
223 … ...((props.uiSchema[props.combiningType] || [])[curSelectIndex.value])
227 … ...((props.errorSchema[props.combiningType] || [])[curSelectIndex.value])
/misc/config_tools/library/
A Dhv_cfg_lib.py59 value = acrn_config_utilities.num2int(str_value)
60 if value < range_val['min'] or value > range_val['max']:
141 def is_contiguous_bit_set(value): argument
144 tmp_val = value
156 if value & mask:
196 value = acrn_config_utilities.num2int(val_str)
197 if value < 0 or value > clos_max_mask:
202 if not is_contiguous_bit_set(value):
227 value = acrn_config_utilities.num2int(val_str)
228 if value > mba_delay:
/misc/config_tools/static_allocators/
A Dclos.py61 value = str(rdt_policy_list[i].l3policy.get_clos_mask())
63 value = default_l3_value
64 acrn_config_utilities.append_node(f"./clos", value, clos_mask)
76 value = str(rdt_policy_list[i].l2policy.get_clos_mask(index))
78 value = default_l2_value
79 acrn_config_utilities.append_node(f"./clos", value, clos_mask)
A Dboard_capability.py11 def powerof2_roundup(value): argument
12 return 0 if value == 0 else (1 << (value - 1).bit_length())
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/fields/ObjectField/
A Dindex.js32 curDependent = Object.entries(props.schema.dependencies).some(([key, value]) => {
35 const tempDependency = !!(Array.isArray(value) && ~value.indexOf(name));
109 … schema: Object.entries(props.schema).reduce((preVal, [key, value]) => {
113 ) preVal[key] = value;
/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/CAT/
A DHexBlockRangeSelector.vue35 set(value) {
36 if (value[1] - value[0] === 0) {
41 this.lastValue = JSON.parse(JSON.stringify(value))
43 this.$emit("update:modelValue", configurator.cat.rangeToHex(value, this.max))
/misc/config_tools/static_allocators/lib/
A Dlib.py28 def from_str(cls, value): argument
29 if not(isinstance(value, str)):
30 raise ValueError("value must be a str: {}".format(type(value)))
32 match = cls.PATTERN.fullmatch(value)
39 raise ValueError("not a bdf: {!r}".format(value))
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-form-naive/src/config/widgets/RadioWidget/
A Dindex.js21 value: item.value
/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-form-naive/src/config/widgets/CheckboxesWidget/
A Dindex.js25 value: item.value

Completed in 47 milliseconds

123