/build/test/example/ |
H A D | performance_test.py | 25 import re namespace 135 self.gn_exec_flag = re.compile(r"File execute times") 136 self.gn_script_flag = re.compile(r"Script execute times") 137 self.gn_end_flag = re.compile(r"Done\. Made \d+ targets from \d+ files in (\d+)ms") 138 self.root_dir_flag = re.compile(r"""loader args.*source_root_dir="([a-zA-Z\d/\\_]+)""""") 139 self.gn_dir_flag = re.compile(r"""loader args.*gn_root_out_dir="([a-zA-Z\d/\\_]+)""""") 140 self.ccache_start_flag = re.compile(r"ccache_dir =") 141 self.ccache_end_flag = re.compile(r"c targets overlap rate statistics") 142 self.c_targets_flag = re.compile(r"c overall build overlap rate") 143 self.build_error = re [all...] |
/build/tools/component_tools/ |
H A D | component_node.py | 18 import re namespace 84 module_pattern = re.compile(r'(?<=ohos_shared_library\(").+(?="\))') if is_so else \ 85 re.compile(r'(?<=ohos_executable\(").+(?="\))') 92 subsystem_pattern = re.compile(r'(?<=subsystem_name = ").+?(?="\n)') 96 part_pattern = re.compile(r'(?<=part_name = ").+?(?="\n)') 100 deps_pattern = re.compile(r'(?<=deps = \[).+?(?=])', re.DOTALL) 109 external_deps_pattern = re.compile(r'(?<=external_deps = \[).+?(?=])', re.DOTALL)
|
H A D | components_dependence_analysis.py | 22 import re namespace 71 pattern = re.compile(r'ohos_shared_library.*?\}', re.DOTALL) 77 pattern = re.compile(r'ohos_executable.*?\}', re.DOTALL)
|
/build/tools/component_tools/static_check/ |
H A D | csct_online_prehandle.py | 18 import re namespace 62 if re.match(pattern, line) is None: 71 if re.match(pattern, line) is None: 75 if re.search(key, line) is not 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/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_check_common.py | 17 import re namespace 45 match = re.match(r'^[~]?(\d+)([a-zA-Z]*)$', string) 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 | 17 import re namespace 65 match = re.match(r'"(\w+)"\s*:\s*"(.*)"', line) 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)
|
/build/tools/component_tools/static_check/gn_check/ |
H A D | gn_common_tools.py | 18 import re namespace 102 ptrn = re.compile(pattern, flags=re.S | re.M) 103 result = re.finditer(ptrn, content)
|
H A D | check_gn_online.py | 16 import re namespace 90 abs_iter = re.finditer(abs_path_pattern, line[1]) 110 targets = re.finditer(target_pattern, line[2], re.M)
|
/build/hb/util/ |
H A D | device_util.py | 19 import re namespace 65 return re.search(kernel_pattern, data) and\ 66 re.search(version_pattern, data) 76 kernel_list = re.findall(kernel_pattern, data) 77 version_list = re.findall(version_pattern, data) 100 compiler_list = re.findall(compiler_pattern, data)
|
H A D | log_util.py | 20 import re namespace 107 pattern = re.compile(choice, re.DOTALL) 147 failed_pattern = re.compile(r'(ninja: error:.*?)\n', re.DOTALL) 167 failed_pattern = re.compile( 169 'ninja: build stopped)', re.DOTALL)
|
H A D | system_util.py | 21 import re namespace 37 useful_info_pattern = re.compile(r'\[\d+/\d+\].+') 64 info = re.findall(useful_info_pattern, line)
|
/build/ohos/ndk/ |
H A D | scan_ndk_targets.py | 22 import re namespace 47 if re.match(r'.*?("\S*#\S*")', line): 50 line = re.sub(r'(#.*?)\n', '', line) 62 contents = re.sub(r'\r\n', '\n', contents.decode()) 85 pattern = re.escape(template_name) + r"\(\"(.*)\"\)" 86 targets = re.findall(pattern, ''.join(contents))
|
H A D | generate_ndk_docs.py | 19 import re namespace 64 contents = re.sub(k, v, contents)
|
/build/toolchain/mac/ |
H A D | filter_libtool.py | 8 import re namespace 14 BLOCKLIST_PATTERNS = map(re.compile, [
|
/build/scripts/ |
H A D | cargo2gn.py | 25 import re namespace 62 VERSION_SUFFIX_RE = re.compile(r'^(.*)-[0-9]+\.[0-9]+\.[0-9]+(?:\+.*)?$') 91 package = re.compile(r'^ *\[package\]') 92 designated_re = re.compile('^ *' + designated + ' *= * "([^"]*)') 130 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s) 300 deps = re.sub('=/[^ ]*/deps/', ' = ', arg) 302 self.core_deps.append(re.sub(' = .*', '', deps)) 307 self.root_pkg_name = re.sub('^.*/', '', 308 re.sub('/' + TARGET_TEMP + '/.*/deps$', '', arg)) 310 self.root_pkg_name = re [all...] |
H A D | get_warnings.py | 28 import re namespace 42 if len(re.findall(_key, line_info, re.S)) >= 1:
|
/build/misc/mac/ |
H A D | find_sdk.py | 16 import re namespace 33 return map(int, re.findall(r'(\d+)', version_str)) 77 sdks = [re.findall('^MacOSX(1[0,1,2,3,4]\.\d+)\.sdk$', s) for s in
|
/build/toolchain/ |
H A D | get_concurrent_links.py | 14 import re namespace 42 memtotal_re = re.compile(r'^MemTotal:\s*(\d*)\s*kB')
|
H A D | rustc_wrapper.py | 26 import re namespace 71 env_dep_re = re.compile("# env-dep:(.*)=.*")
|
/build/hb/util/preloader/ |
H A D | parse_vendor_product_config.py | 19 import re namespace 38 elif re.match(r'[0-9]+', val): 62 elif re.match(r'[0-9]+', val):
|
/build/templates/rust/ |
H A D | run_build_script.py | 17 import re namespace 36 rustc_version = re.compile(r"(\w+): (.*)") 57 rustc_cfg = re.compile("cargo:rustc-cfg=(.*)")
|
/build/lite/ndk/doc/ |
H A D | gen_doc.py | 23 import re namespace 52 contents = re.sub(key, value, contents)
|
/build/ohos/packages/ |
H A D | system_notice_info.py | 20 import re namespace 29 return re.split('[:|()]', label)[1]
|
/build/tools/module_dependence/ |
H A D | dependence_analysis.py | 17 import re namespace 41 _filename_snippet = re.search(r'(.*).json', _filename).group(1)
|
/build/templates/common/ |
H A D | include_relative_path_check.py | 19 import re namespace 65 include = re.match(r'#include\s+"([^">]+)"', line) 103 path = re.findall('path="(.*?)"', line)[0]
|