/build/hb/util/post_gn/ |
D | check_compilation_parameters.py | 25 def parse_cflags(line, cflags_check_list, whitelist): argument 27 for flag in line.split(): 35 def parse_ldflags(line, ldflags_check_list, whitelist): argument 37 for flag in line.split(): 47 for line in file: 48 … if line.startswith('cflags') or line.startswith('cflags_cc') or line.startswith('cflags_c'): 49 flag = parse_cflags(line, cflags_check_list, whitelist) 50 elif line.startswith('ldflags'): 51 flag = parse_ldflags(line, ldflags_check_list, whitelist) 52 elif line.startswith('label_name'): [all …]
|
/build/toolchain/mac/ |
D | filter_libtool.py | 24 def is_blocklisted_line(line): argument 27 if isinstance(line, bytes): 28 line = line.decode() 29 if pattern.match(line): 41 for line in err.splitlines(): 42 if not is_blocklisted_line(line): 43 print(line, file=sys.stderr)
|
/build/tools/component_tools/static_check/ |
D | csct_online_prehandle.py | 37 def __diff_match_file_start(control_block: dict, line: str): 39 if not line.startswith(pattern): 51 def __diff_match_is_newfile(control_block: dict, line: str): 53 if not line.startswith(pattern): 60 def __diff_match_filename_with_minus(control_block: dict, line: str): 62 if re.match(pattern, line) is None: 69 def __diff_match_filename_with_plus(control_block: dict, line: str): 71 if re.match(pattern, line) is None: 75 if re.search(key, line) is not None: 77 res = re.match(pattern, line) [all …]
|
/build/hb/helper/ |
D | separator.py | 20 line = '-' * 15 variable in Separator 23 def __init__(self, line=None): argument 24 if line: 25 self.line = f'\n{line}' 28 return self.line
|
/build/tools/component_tools/static_check/gn_check/ |
D | check_gn_online.py | 45 for line in values: 46 pos = line[0] 47 content = line[1] 68 def check_have_product_name(self, key: str, line: list) -> None: 73 if line[1].find(check_item) != -1 and line[1].find("==") != -1: 80 pos = "line:{} {}".format(line[0], line[1]) 85 def check_abs_path(self, key: str, line: list) -> None: 90 abs_iter = re.finditer(abs_path_pattern, line[1]) 101 pos = "line:{} {}".format(line[0], line[1]) 109 for line in modified_line: [all …]
|
/build/tools/component_tools/ |
D | parse_kconf.py | 78 def is_valid_line(line: str): 79 return line.startswith(KCONF_PREFIX) 82 def handle_config_feature(items: dict, arr: list, line: str): 86 features = line.split("=", 1)[1].strip("\"") 93 def handle_config_component(items: dict, arr: list, line: str): 97 items[VALUE] = line.split("=", 1)[1] 100 def handle_config_property(items: dict, arr: list, line: str): 103 items[VALUE] = line.split("=", 1)[1].strip("\"") 106 def read_line_item(line: str): 107 line = line.strip() [all …]
|
/build/tools/component_tools/static_check/bundle_check/ |
D | bundle_check_common.py | 85 for line in lines: 86 line = line.strip() 87 if line and line[0] == '#': 89 if 'sdk_version =' in line: 90 match_result = re.match(r'\s*sdk_version\s*=\s*"(\d+\.\d+).*"', line)
|
D | bundle_check_online.py | 48 line = list(("line" + str(i[0]) + ": " + i[1], ret)) 50 diff_dict[file_path].append(line) 63 def check_diff_by_line(line:str) -> str: 64 line = line.strip() 65 match = re.match(r'"(\w+)"\s*:\s*"(.*)"', line)
|
D | bundle_json_check.py | 191 for line in self.__lines: 193 if string in line: 216 bundle_error = dict(line=0, contents='"name"') 242 bundle_error = dict(line=0, contents='version') 262 bundle_error = dict(line=0, contents='"segment"') 300 bundle_error = dict(line=0, contents='"component"', 320 bundle_error = dict(line=component_line, 325 bundle_error = dict(line=component_line + 1, 339 bundle_error = dict(line=component_line, 344 bundle_error = dict(line=self.get_line_number('"subsystem":'), [all …]
|
/build/ohos/images/mkimage/ |
D | mkchip_ckm.py | 50 for line in f: 51 line = line.strip() 52 if not line or line.startswith('#'): 54 mk_configs_list.append(line)
|
D | mkimages.py | 55 for line in file: 56 line = line.strip() 57 if not line or line.startswith("#"): 59 mk_configs.append(line)
|
/build/hb/util/ |
D | log_util.py | 43 for line in str(msg).splitlines(): 46 '\r' + (LogUtil.message(level, line)).strip('\n')) 50 for line in str(msg).splitlines(): 51 sys.stdout.write(LogUtil.message(level, line)) 57 for line in str(msg).splitlines(): 58 sys.stderr.write(LogUtil.message(level, line)) 65 for line in str(msg).splitlines(): 66 sys.stderr.write(LogUtil.message(level, line)) 86 for line in str(msg).splitlines(): 87 sys.stderr.write(LogUtil.message(level, line)) [all …]
|
D | system_util.py | 54 for line in iter(process.stdout.readline, ''): 55 log_file.write(line) 57 info = re.findall(useful_info_pattern, line) 61 LogUtil.hb_info(line)
|
/build/scripts/ |
D | merge_notice.py | 37 for line in data: 38 a_file.write(line) 42 for line in data: 43 a_file.write(line)
|
D | cargo2gn.py | 94 for line in lines: 96 if designated_re.match(line): 97 line = eval(repr(line).replace(f'\\"', '')) 98 return designated_re.match(line).group(1) 100 is_package = package.match(line) is not None 148 self.line = '' # original rustc command line parameters 180 def parse_rustc(self, line_num: int, line: str): 183 self.line = line 184 args = line.split() # Loop through every argument of rustc. 581 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line) [all …]
|
D | ninja2trace.py | 53 for _, line in enumerate(f.readlines()): 54 start, end, time_stamp, name, cmdhash = line.strip().split( 60 key=lambda line: line.start) 62 key=lambda line: line.end - line.start,
|
D | summary_ccache_hitrate.py | 63 for line in process: 64 if cache_size_str in line: 65 cache_size = line.split(":")[1].strip() 66 if ccache_version_str in line: 67 ccache_version = line.split(" ")[2].strip()
|
/build/lite/ |
D | utils.py | 62 for line in iter(process.stdout.readline, ''): 63 sys.stdout.write(line) 64 log_file.write(line) 71 for line in iter(process.stderr.readline, ''): 72 sys.stdout.write(line) 73 log_file.write(line)
|
/build/ohos/images/ |
D | adlt_wrapper.py | 34 for line in stdout.splitlines(): 36 for line in stderr.splitlines(): 45 for line in lines: 46 so_abspath = os.path.join(args.adlt_root_dir, line.strip("\n"))
|
/build/ohos/ndk/ |
D | scan_ndk_targets.py | 44 for line in in_file: 47 if re.match(r'.*?("\S*#\S*")', line): 50 line = re.sub(r'(#.*?)\n', '', line) 51 contents.append(line)
|
/build/test/example/ |
D | conftest.py | 45 total_memory_line = [line for line in lines if line.startswith('MemTotal')]
|
D | performance_test.py | 271 for line in f: 272 yield line.strip() 283 for line in self.read_ninjia_trace_file(): 284 line_list = line.split(":") 352 total_memory_line = [line for line in lines if line.startswith('MemTotal')] 410 for line in lines[:-1]: 411 line = line.strip() 412 if line: 413 out_str = "{}".format(time.time_ns()) + "[timestamp]" + line
|
/build/toolchain/ |
D | gcc_solink_wrapper.py | 30 for line in readelf.stdout: 31 if b'SONAME' in line: 32 toc += line.decode() 48 for line in nm.stdout: 49 toc += '{}\n'.format(' '.join(line.decode().split(' ', 2)[:2])) 197 lines = [line.strip()[1:] for line in lines]
|
D | mini_debug_info.py | 76 for line in lines: 77 columns = line.strip().split() 94 for line in lines: 95 columns = line.strip().split()
|
/build/templates/common/ |
D | include_relative_path_check.py | 31 for line in xml_info: 32 if "path=" in line: 33 path = re.findall('path="(.*?)"', line)[0] 99 for line in line_list: 100 include = re.match(r'#include\s+"([^">]+)"', line)
|