/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_check_common.py | 45 match = re.match(r'^[~]?(\d+)([a-zA-Z]*)$', string) 46 if not match: 48 return (float(match.group(1)), match.group(2)) 90 match_result = re.match(r'\s*sdk_version\s*=\s*"(\d+\.\d+).*"', line) 102 return re.match(r'^[a-z][a-z0-9_]{1,62}$', name) 109 return re.match(r'^@[a-z]+/([a-z][a-z0-9_]{1,62})$', name
|
H A D | bundle_check_online.py | 65 match = re.match(r'"(\w+)"\s*:\s*"(.*)"', line) 66 if not match: 68 key = match.group(1) 69 value = match.group(2) 83 if not re.match(r'[a-z]+$', value): 139 match = re.match(r'^SystemCapability(\.[A-Z][a-zA-Z]{1,63}){2,6}$', value) 140 if not match:
|
H A D | bundle_json_check.py | 232 match = BundleCheckTools.match_bundle_full_name(name) 233 if not match: 235 match = BundleCheckTools.match_unix_like_name(name.split('/')[1]) 236 if not match: 370 match = re.match(r'^SystemCapability(\.[A-Z][a-zA-Z]{1,63}){2,6}$', i) 371 if not match:
|
/build/hb/util/preloader/ |
H A D | parse_vendor_product_config.py | 28 match = feat.index("=") 29 if match <= 0: 32 key = feat[:match].strip() 33 val = feat[match + 1:].strip().strip('"') 38 elif re.match(r'[0-9]+', val): 55 match = feat.index("=") 56 key = feat[:match].strip() 57 val = feat[match + 1:].strip().strip('"') 62 elif re.match(r'[0-9]+', val):
|
/build/templates/rust/ |
H A D | run_build_script.py | 37 match = rustc_version.match(lines.rstrip()) 38 if match: 39 known_vars[match.group(1)] = match.group(2) 58 match = rustc_cfg.match(line.rstrip()) 59 if match: 60 flags = "%s--cfg\n%s\n" % (flags, match.group(1))
|
/build/tools/component_tools/static_check/ |
H A D | csct_online_prehandle.py | 62 if re.match(pattern, line) is None: 71 if re.match(pattern, line) is None: 77 res = re.match(pattern, line) 90 if control_block["match_flag"] is False or re.match(pattern, line) is None: 93 res = re.match(pattern, line) 102 if control_block["match_flag"] is False or re.match(pattern1, line) is None: 105 res = re.match(pattern2, line)
|
/build/toolchain/ |
H A D | get_concurrent_links.py | 44 match = memtotal_re.match(line) variable in _get_total_memory_in_bytes.MEMORYSTATUSEX 45 if not match: 47 return float(match.group(1)) * 2**10
|
H A D | rustc_wrapper.py | 76 matched = env_dep_re.match(line)
|
/build/scripts/ |
H A D | cargo2gn.py | 96 if designated_re.match(line): 98 return designated_re.match(line).group(1) 100 is_package = package.match(line) is not None 123 if VERSION_SUFFIX_RE.match(s): 124 return VERSION_SUFFIX_RE.match(s).group(1) 691 libname_groups = deps_libname.match(lib) 718 libname_groups = build_deps_libname.match(lib) 912 if cargo_test_list_start_re.match(line): 913 current_test_name = cargo_test_list_start_re.match(line).group(1) 914 elif current_test_name and cargo_test_list_end_re.match(lin [all...] |
/build/hb/util/ |
H A D | product_util.py | 386 match = feat.index("=") 387 if match <= 0: 390 key = feat[:match].strip() 391 val = feat[match + 1:].strip().strip('"') 396 elif re.match(r'[0-9]+', val): 413 match = feat.index("=") 414 key = feat[:match].strip() 415 val = feat[match + 1:].strip().strip('"') 420 elif re.match(r'[0-9]+', val):
|
H A D | monitor.py | 88 match = re.search(r'\d+', line)
89 return int(match.group()) * MEM_CONSTANT if match else RET_CONSTANT
|
H A D | log_util.py | 108 match = pattern.search(data) 109 if not match: 111 ratio = len(match.group()) / len(data)
|
/build/hb/services/ |
H A D | hpm.py | 88 match = re.match(pattern, line) 89 if match: 90 latest_hpm_version = match.group(1).strip()
|
/build/toolchain/mac/ |
H A D | filter_libtool.py | 29 if pattern.match(line):
|
/build/ohos/sdk/ |
H A D | parse_sdk_description.py | 120 match = re.search(r"(.*?):(.*?)", label) 121 if match: 122 gn = '{}/BUILD.gn'.format(match.group(1))
|
/build/scripts/util/ |
H A D | build_utils.py | 641 match = r.search(arg) 642 if not match: 645 if match.end() != len(arg): 649 lookup_path = match.group(1).split(':') 663 # This should match parse_gn_list. The output is either a GN-formatted list 666 new_args[i] = arg[:match.start()] + gn_helpers.to_gn_string( 669 new_args[i] = arg[:match.start()] + str(expansion)
|
/build/tools/component_tools/static_check/gn_check/ |
H A D | check_gn_online.py | 91 for match in abs_iter: 92 path = match.group().strip('"')
|
/build/templates/common/ |
H A D | generate_component_package.py | 325 match = re.match(pattern, bundle_data['version']) 326 if match: 327 a = match.group(1) 328 b = match.group(2) 329 suffix = match.group(3) if match.group(3) else ""
|
H A D | include_relative_path_check.py | 65 include = re.match(r'#include\s+"([^">]+)"', line)
|
/build/ohos/ndk/ |
H A D | scan_ndk_targets.py | 47 if re.match(r'.*?("\S*#\S*")', line):
|
/build/test/example/ |
H A D | performance_test.py | 307 item and re.match(r"[\d.]+", item[0])][ 310 item and re.match(r"[\d.]+", item[0])][:self.top_count]
|
/build/config/components/init/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 159 k = const_pattern.match(line)
|