Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 49) sorted by relevance

12

/build/make/tools/
Dcheckowners.py6 import re
62 patterns = re.compile(pats)
63 address_pattern = re.compile('([^@ ]+@[^ @]+)')
64 perfile_pattern = re.compile('per-file +.*=(.*)')
72 stripped_line = re.sub('#.*$', '', line).strip()
Devent_log_tags.py17 import re
65 line = re.sub('#.*$', '', line) # strip trailing comments
68 parts = re.split(r"\s+", line, 2)
97 if not re.match(r"\(.*\)\s*$", description):
Dfilter-product-graph.py4 import re
32 (dependency, re.compile(r'"(.*)"\s*->\s*"(.*)"')),
33 (info, re.compile(r'"(.*)"(\s*\[.*\])')),
Dgenerate-notice-files.py32 import re
79 SRC_DIR_STRIP_RE = re.compile("(?:" + "|".join(input_dirs) + ")(/.*).txt")
137 SRC_DIR_STRIP_RE = re.compile("(?:" + "|".join(input_dirs) + ")(/.*).txt")
152 SRC_DIR_STRIP_RE = re.compile("(?:" + "|".join(input_dirs) + ")(/.*).txt")
Dcheck_elf_file.py30 import re
96 pattern = re.compile('clang-r([0-9]+)([a-z]?)')
217 _DYNAMIC_SECTION_NEEDED_PATTERN = re.compile(
220 _DYNAMIC_SECTION_SONAME_PATTERN = re.compile(
257 _SYMBOL_ENTRY_PATTERN = re.compile('^ ([A-Za-z0-9_]+): (.*)$')
258 _SYMBOL_ENTRY_PAREN_PATTERN = re.compile(
418 modules = [re.sub('\\.so$', '', lib) for lib in dt_needed]
Dproduct_debug.py18 import re
53 groups = re.split("(\\$\\(call " + func_name + ",.*\\))", text)
Djava-layers.py4 import re
184 COMMENTS = re.compile("//.*?\n|/\*.*?\*/", re.S)
185 PACKAGE = re.compile("package\s+(.*)")
186 IMPORT = re.compile("import\s+(.*)")
Djava-event-log-tags.py30 import re
134 out = name[0].lower() + re.sub(r"[^A-Za-z0-9]", "", name.title())[1:]
Dextract_kernel.py24 import re
54 mo = re.match(LINUX_BANNER_REGEX, linux_banner)
/build/make/tools/warn/
Dwarn_common.py52 import re
236 warning_pattern = re.compile('^/[^ ]*/[^ ]*: warning: .*')
247 path = os.path.normpath(re.sub(':.*$', '', line))
287 line = re.sub(u'[\u2018\u2019]', '\'', line)
289 line = re.sub(u'[^\x00-\x7f]', ' ', line)
305 warning_pattern = re.compile(chrome_warning_pattern)
318 result = re.match(r'.+Package:.+chromeos-base/chromeos-chrome-', line)
322 result = re.match(r'.+Source\sunpacked\sin\s(.+)', line)
326 result = re.match(r'.+USE:\s*([^\s]*).*', line)
362 warning_pattern = re.compile('(^[^ ]*/[^ ]*: warning: .*)|(^warning: .*)')
[all …]
/build/make/core/
Dchecktree3 import sys, os, re
14 excludes_compiled = map(re.compile, excludes)
59 regex_compiled = re.compile(regex)
60 filt_compiled = re.compile(filt)
/build/soong/scripts/
Dmanifest_check.py23 import re
124 pattern = re.compile("^uses-library(-not-required)?:'(.*)'$", re.MULTILINE)
129 for match in re.finditer(pattern, badging):
214 pattern = re.compile("^targetSdkVersion?:'(.*)'$", re.MULTILINE)
216 for match in re.finditer(pattern, badging):
Dgenerate-notice-files.py32 import re
79 SRC_DIR_STRIP_RE = re.compile(input_dir + "(/.*).txt")
137 SRC_DIR_STRIP_RE = re.compile(input_dir + "(/.*).txt")
152 SRC_DIR_STRIP_RE = re.compile(input_dir + "(/.*).txt")
/build/soong/scripts/check_boot_jars/
Dcheck_boot_jars.py10 import re
33 allow_list_re = re.compile(combined_re)
34 except re.error:
/build/soong/cmd/javac_wrapper/
Djavac_wrapper.go170 if line, matched = applyColor(line, p.color, p.re); matched {
179 func applyColor(line, color string, re *regexp.Regexp) (string, bool) {
180 if m := re.FindStringSubmatchIndex(line); m != nil {
191 re *regexp.Regexp
/build/make/tools/droiddoc/
DREADME1 If you're looking for the templates-sdk/ files, they've moved
/build/make/tools/releasetools/
Dfind_shareduid_violation.py43 import re
86 pattern = re.compile(r"sharedUserId.*=\"([^\"]*)")
Dvalidate_target_files.py37 import re
180 check_cmd = re.search(r'if ! applypatch --check (\w+:.+:\w+:\w+);',
190 target = re.search(r'--target (.+) &&', lines[4].strip())
207 source = re.search(r'--source (\w+:.+:\w+:\w+) \\', lines[4].strip())
220 target = re.search(r'--target (\w+:.+:\w+:\w+) && \\', lines[5].strip())
Dcheck_ota_package_signature.py25 import re
43 algorithm = re.search(r'Signature Algorithm: ([a-zA-Z0-9]+)', cert_dump)
Dtest_apex_utils.py17 import re
169 match = re.search(r"^package:.* name='([\w|\.]+)'", line, re.IGNORECASE)
Dtest_utils.py25 import re
249 if dirpath == base_path and re.match('test_.*\\.py$', fn):
/build/soong/android/
Dneverallow.go304 re *regexp.Regexp member
308 return m.re.MatchString(value)
312 return ".regexp(" + m.re.String() + ")"
562 func Regexp(re string) ValueMatcher {
563 r, err := regexp.Compile(re)
/build/make/tools/fs_config/
Dfs_config_generator.py16 import re
262 _CAP_DEFINE = re.compile(r'\s*#define\s+(CAP_\S+)\s+(\S+)')
309 re.compile(r'%sUNUSED[0-9].*' % AID.PREFIX),
310 re.compile(r'%sAPP' % AID.PREFIX),
311 re.compile(r'%sUSER' % AID.PREFIX)
313 _AID_DEFINE = re.compile(r'\s*#define\s+%s.*' % AID.PREFIX)
314 _RESERVED_RANGE = re.compile(
498 _AID_MATCH = re.compile('%s[A-Z0-9_]+' % AID.PREFIX)
/build/soong/cc/
Dtidy.go168 re := regexp.MustCompile(`'?-?-warnings-as-errors=[^ ]* *`)
/build/make/tools/droiddoc/templates-pdk/assets/
Dsearch_autocomplete.js168 var _lastSearch = function(s, re) { argument
173 while ((tmp = s.search(re)) >= 0) {

12