/build/tools/component_tools/static_check/bundle_check/ |
D | bundle_check_online.py | 69 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/ |
D | type_check_util.py | 31 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:
|
D | kernel_permission.py | 151 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/ |
D | config.py | 103 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/ |
D | component_node.py | 35 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/ |
D | gn_helpers.py | 30 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/ |
D | hpm.py | 96 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 …]
|
D | ninja.py | 86 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))
|
D | gn.py | 99 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/ |
D | arg.py | 81 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/ |
D | sdk_info.py | 99 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/ |
D | kernel_permission_handler.py | 23 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/ |
D | hap_pack.py | 82 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/ |
D | build_args_resolver.py | 93 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/ |
D | Doxyfile_CPP | 26 # 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 …]
|
D | Doxyfile_C | 26 # 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/ |
D | load_ohos_build.py | 434 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/ |
D | gen_doc.py | 50 for (key, value) in list(keys.items()): 51 value = value.replace('\\', '\\\\') 52 contents = re.sub(key, value, contents)
|
/build/hb/services/interface/ |
D | service_interface.py | 36 def exec(self, value): argument 37 self._exec = value
|
/build/misc/mac/ |
D | find_sdk.py | 24 def __init__(self, value): argument 25 self.value = value 28 return repr(self.value)
|
/build/lite/ndk/build/toolchain/ |
D | clang.gni | 23 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")
|
D | gcc.gni | 24 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/ |
D | clang.gni | 16 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")
|
D | gcc.gni | 16 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/ |
D | csct_online_prehandle.py | 26 value = [line_num, content] 30 value_list.append(value) 32 value_list = [value]
|