Home
last modified time | relevance | path

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

123

/build/tools/component_tools/static_check/bundle_check/
Dbundle_check_online.py69 value = match.group(2)
72 return _check_line_name(value)
74 if len(value) == 0:
79 if os.path.isabs(value):
83 if not re.match(r'[a-z]+$', value):
86 return _check_line_rom_ram(key, value)
88 return _check_line_syscap(value)
90 if len(value) == 0:
95 def _check_line_name(value: str):
96 if not value: # value empty
[all …]
/build/hb/util/
Dtype_check_util.py31 def is_bool_type(value): argument
32 if isinstance(value, bool):
34 elif isinstance(value, str):
35 return value in ['true', 'True', 'false', 'False']
40 def is_int_type(value): argument
41 if isinstance(value, int):
43 elif isinstance(value, str):
44 return value.isdigit()
49 def tile_list(value: list) -> list:
51 for entity in value:
Dkernel_permission.py151 for key, value in json_data.items():
152 if not isinstance(value, (bool, str, list)):
154 if isinstance(value, list):
155 if not all(isinstance(item, str) for item in value):
/build/hb/resources/
Dconfig.py103 def component_type(self, value: str):
104 self._component_type = value
112 def target_os(self, value: str):
113 self._target_os = value
121 def target_cpu(self, value: str):
122 self._target_cpu = value
130 def version(self, value: str):
131 self._version = value
139 def compile_config(self, value: str):
140 self._compile_config = value
[all …]
/build/tools/component_tools/
Dcomponent_node.py35 def module_name(self, value): argument
36 self._module_name = value
43 def subsystem_name(self, value): argument
44 self._subsystem_name = value
51 def part_name(self, value): argument
52 self._part_name = value
59 def deps(self, value): argument
60 self._deps = value
67 def external_deps(self, value): argument
68 self._external_deps = value
[all …]
/build/
Dgn_helpers.py30 def ToGNString(value: str, allow_dicts: bool=True) -> str:
36 if isinstance(value, str):
37 if value.find('\n') >= 0:
40 value.replace('\\', '\\\\').replace('"', '\\"').replace('$', '\\$') + \
43 if isinstance(value, str):
44 return ToGNString(value.encode('utf-8'))
46 if isinstance(value, bool):
47 if value:
51 if isinstance(value, list):
52 return '[ %s ]' % ', '.join(ToGNString(v) for v in value)
[all …]
/build/hb/services/
Dhpm.py96 for key, value in self.args_dict.items():
97 if isinstance(value, bool):
98 args_list.append('{}={}'.format(key, str(value).lower()))
100 elif isinstance(value, str):
101 args_list.append('{}="{}"'.format(key, value))
103 elif isinstance(value, int):
104 args_list.append('{}={}'.format(key, value))
106 elif isinstance(value, list):
107 args_list.append('{}="{}"'.format(key, "&&".join(value)))
119 for key, value in self.flags_dict.items():
[all …]
Dninja.py86 for key, value in self._args_dict.items():
87 if key == 'build_target' and isinstance(value, list):
88 args_list += value
89 elif key == 'ninja_args' and isinstance(value, list):
90 args_list += value
92 if value == '':
95 args_list.insert(0, ' {}{} '.format(key, value))
Dgn.py99 for key, value in self.args_dict.items():
100 if isinstance(value, bool):
101 args_list.append('{}={}'.format(key, str(value).lower()))
103 elif isinstance(value, str):
104 args_list.append('{}="{}"'.format(key, value))
106 elif isinstance(value, int):
107 args_list.append('{}={}'.format(key, value))
109 elif isinstance(value, list):
110 args_list.append('{}="{}"'.format(key, "&&".join(value)))
122 for key, value in self.flags_dict.items():
[all …]
/build/hb/containers/
Darg.py81 def get_type(value: str):
82 if value == 'bool':
84 elif value == "int":
86 elif value == 'str':
88 elif value == "list":
90 elif value == 'dict':
92 elif value == 'subparsers':
113 def get_type(value: str):
114 if value == 'prebuild':
116 elif value == "preload":
[all …]
/build/config/mac/
Dsdk_info.py99 value = settings[key] variable
100 if isinstance(value, bytes):
101 value = value.decode() variable
103 value = '"%s"' % value variable
104 print('%s=%s' % (key, value))
106 print('%s=%d' % (key, value))
/build/scripts/
Dkernel_permission_handler.py23 for key, value in json_data.items():
24 if not isinstance(value, (bool, str, list)):
26 if isinstance(value, list):
27 if not all(isinstance(item, str) for item in value):
/build/lite/
Dhap_pack.py82 for key, value in cmd_dict.items():
83 if value:
84 packing_cmd.extend([key, value])
147 for key, value in cmd_dict.items():
148 if value:
149 signing_cmd.extend([key, value])
/build/hb/resolver/
Dbuild_args_resolver.py93 for key, value in features_dict.items():
94 target_generator.regist_arg(key, value)
406 variable, value = gn_arg.split('=')
407 if TypeCheckUtil.is_bool_type(value):
408 if str(value).lower() == 'false':
410 elif str(value).lower() == 'true':
412 elif TypeCheckUtil.is_int_type(value):
413 convert_value = int(value)
414 elif isinstance(value, list):
415 convert_value = list(value)
[all …]
/build/lite/ndk/doc/config/
DDoxyfile_CPP26 # TAG = value [value, ...]
28 # TAG += value [value, ...]
40 # The default value is: UTF-8.
48 # The default value is: My Project.
84 # The default value is: NO.
99 # The default value is: English.
106 # The default value is: YES.
115 # The default value is: YES.
133 # The default value is: NO.
141 # The default value is: NO.
[all …]
DDoxyfile_C26 # TAG = value [value, ...]
28 # TAG += value [value, ...]
40 # The default value is: UTF-8.
48 # The default value is: My Project.
84 # The default value is: NO.
99 # The default value is: English.
106 # The default value is: YES.
115 # The default value is: YES.
133 # The default value is: NO.
141 # The default value is: NO.
[all …]
/build/hb/util/loader/
Dload_ohos_build.py434 for part_name, value in parts_config.items():
435 if 'variants' in value:
436 variants = value.get('variants')
448 part_obj = PartObject(part_name, variant, value, toolchain,
467 if 'hisysevent_config' in value:
468 _config_files = value.get('hisysevent_config')
476 _parts_deps[part_name] = value.get('part_deps')
622 key: value for key, value in self._parts_variants.items() if key in save_part}
624 key: value for key, value in self._part_list.items() if key in save_part}
626 key: value for key, value in self._part_targets_label.items() if key in save_part}
[all …]
/build/lite/ndk/doc/
Dgen_doc.py50 for (key, value) in list(keys.items()):
51 value = value.replace('\\', '\\\\')
52 contents = re.sub(key, value, contents)
/build/hb/services/interface/
Dservice_interface.py36 def exec(self, value): argument
37 self._exec = value
/build/misc/mac/
Dfind_sdk.py24 def __init__(self, value): argument
25 self.value = value
28 return repr(self.value)
/build/lite/ndk/build/toolchain/
Dclang.gni23 assert(defined(invoker.cc), "clang toolchain must specify a \"cc\" value")
24 assert(defined(invoker.cxx), "clang toolchain must specify a \"cxx\" value")
25 assert(defined(invoker.ar), "clang toolchain must specify a \"ar\" value")
26 assert(defined(invoker.as), "clang toolchain must specify a \"as\" value")
27 assert(defined(invoker.ld), "clang toolchain must specify a \"ld\" value")
Dgcc.gni24 assert(defined(invoker.ar), "gcc toolchain must specify a \"ar\" value")
25 assert(defined(invoker.cc), "gcc toolchain must specify a \"cc\" value")
26 assert(defined(invoker.cxx), "gcc toolchain must specify a \"cxx\" value")
27 assert(defined(invoker.ld), "gcc toolchain must specify a \"ld\" value")
/build/lite/toolchain/
Dclang.gni16 assert(defined(invoker.cc), "clang toolchain must specify a \"cc\" value")
17 assert(defined(invoker.cxx), "clang toolchain must specify a \"cxx\" value")
18 assert(defined(invoker.ar), "clang toolchain must specify a \"ar\" value")
19 assert(defined(invoker.ld), "clang toolchain must specify a \"ld\" value")
Dgcc.gni16 assert(defined(invoker.ar), "gcc toolchain must specify a \"ar\" value")
17 assert(defined(invoker.cc), "gcc toolchain must specify a \"cc\" value")
18 assert(defined(invoker.cxx), "gcc toolchain must specify a \"cxx\" value")
19 assert(defined(invoker.ld), "gcc toolchain must specify a \"ld\" value")
/build/tools/component_tools/static_check/
Dcsct_online_prehandle.py26 value = [line_num, content]
30 value_list.append(value)
32 value_list = [value]

123