/build/blueprint/pathtools/ |
D | glob_test.go | 28 pattern string member 38 pattern: "*", 43 pattern: "*.ext", 48 pattern: "*/a", 53 pattern: "*/*/a", 58 pattern: "*/a/a", 63 pattern: "c/*/?", 68 pattern: "c/*/[gh]*", 73 pattern: "c/*/[fgh]*", 78 pattern: "c/*/[f-h]*", [all …]
|
D | glob.go | 92 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error) { 93 return startGlob(OsFs, pattern, excludes, follow) 96 func startGlob(fs FileSystem, pattern string, excludes []string, 99 if filepath.Base(pattern) == "**" { 103 matches, deps, err := glob(fs, pattern, false, follow) 123 if !isWild(pattern) { 144 Pattern: pattern, 153 func glob(fs FileSystem, pattern string, hasRecursive bool, 156 if !isWild(pattern) { 159 pattern = filepath.Clean(pattern) [all …]
|
D | fs.go | 98 Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, error) 99 glob(pattern string) (matches []string, err error) 197 func (fs *osFs) Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, e… 198 return startGlob(fs, pattern, excludes, follow) 201 func (fs *osFs) glob(pattern string) ([]string, error) { 202 paths, err := filepath.Glob(fs.toAbs(pattern)) 349 func (m *mockFs) Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (GlobResult, … 350 return startGlob(m, pattern, excludes, follow) 365 func (m *mockFs) glob(pattern string) ([]string, error) { 366 dir, file := saneSplit(pattern) [all …]
|
/build/soong/cmd/diff_target_files/ |
D | glob.go | 25 func Match(pattern, name string) (bool, error) { argument 26 if filepath.Base(pattern) == "**" { 30 patternDir := pattern[len(pattern)-1] == '/' 39 pattern = pattern[:len(pattern)-1] 44 pattern, patternFile = filepath.Dir(pattern), filepath.Base(pattern) 47 if strings.Contains(pattern, "**") { 53 return name == pattern, nil 55 if match, err := filepath.Match(pattern, name); err != nil {
|
D | target_files.go | 74 for _, pattern := range patterns { 75 match, _ := Match(pattern, f.Name)
|
/build/blueprint/ |
D | glob.go | 25 func verifyGlob(key globKey, pattern string, excludes []string, g pathtools.GlobResult) { 26 if pattern != g.Pattern { 27 panic(fmt.Errorf("Mismatched patterns %q and %q for glob key %q", pattern, g.Pattern, key)) 40 func (c *Context) glob(pattern string, excludes []string) ([]string, error) { 46 key := globToKey(pattern, excludes) 55 verifyGlob(key, pattern, excludes, g) 61 result, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks) 75 verifyGlob(key, pattern, excludes, g) 91 if keys[i].pattern != keys[j].pattern { 92 return keys[i].pattern < keys[j].pattern [all …]
|
/build/make/tools/rbcrun/testdata/ |
D | regex.star | 6 pattern = "^(foo.*bar|abc.*d|1.*)$" 8 assert.true(rblf_regex(pattern, w), "%s should match %s" % (w, pattern)) 10 assert.true(not rblf_regex(pattern, w), "%s should not match %s" % (w, pattern))
|
/build/make/tools/warn/ |
D | html_writer.py | 148 for pattern in warn_patterns: 149 value = pattern['severity'].value 150 for project in pattern['projects']: 151 warnings[project][value] += pattern['projects'][project] 339 for pattern in warn_patterns: 340 if pattern['severity'] == sev and pattern['members']: 341 num_members = len(pattern['members']) 343 warning = kind + ': ' + (pattern['description'] or '?') 346 projects = sorted(pattern['projects'].keys()) 348 csvwriter.writerow([pattern['projects'][project], project, warning]) [all …]
|
D | other_warn_patterns.py | 47 def kotlin(description, pattern): argument 49 [r'.*\.kt:.*: warning: ' + pattern]) 56 def rust(severity, description, pattern): argument 58 [r'.*\.rs:.*: warning: ' + pattern])
|
D | warn_common.py | 119 for idx, pattern in enumerate(project_patterns): 120 if pattern.match(line): 128 for idx, pattern in enumerate(warn_patterns): 129 for cpat in pattern['compiled_patterns']: 457 for pattern in warn_patterns: 458 pattern['members'] = [] 461 pattern['projects'] = {} 518 pattern = warn_patterns[pattern_idx] 519 pattern['members'].append(line) 528 if pname in pattern['projects']: [all …]
|
D | android_project_list.py | 19 def create_pattern(name, pattern=None): argument 21 if pattern is not None: 22 return [name, '(^|.*/)' + pattern + '/.*: warning:']
|
D | tidy_warn_patterns.py | 26 def tidy_warn_pattern(description, pattern): argument 31 'patterns': [r'.*: .+\[' + pattern + r'\]$']
|
/build/soong/jar/ |
D | jar.go | 51 func patternMatch(pattern, name string) bool { argument 52 if strings.HasSuffix(pattern, "*") { 53 return strings.HasPrefix(name, strings.TrimSuffix(pattern, "*")) 55 return name == pattern 67 for i, pattern := range jarOrder { 68 if patternMatch(pattern, name) {
|
/build/make/core/clang/ |
D | tidy.mk | 33 $(foreach pattern,$(DEFAULT_LOCAL_TIDY_CHECKS), \ 34 $(call find_default_local_tidy_check,$(pattern),$(1)) \
|
/build/make/tools/rbcrun/ |
D | host.go | 130 var pattern, s string 131 if err := starlark.UnpackPositionalArgs(b.Name(), args, kwargs, 2, &pattern, &s); err != nil { 134 match, err := regexp.MatchString(pattern, s) 148 var pattern string 151 if err := starlark.UnpackPositionalArgs(b.Name(), args, kwargs, 1, &pattern, &top); err != nil { 158 if files, err = filepath.Glob(pattern); err != nil { 163 if files, err = filepath.Glob(prefix + pattern); err != nil {
|
/build/blueprint/bootstrap/bpglob/ |
D | bpglob.go | 97 pattern string member 108 pattern: s, 203 result, err := pathtools.Glob(glob.pattern, glob.excludes, pathtools.FollowSymlinks)
|
/build/make/core/ |
D | product_config.rbc | 364 """Return True if there are files matching given bash pattern.""" 367 def _find_and_copy(pattern, from_dir, to_dir): 368 """Return a copy list for the files matching the pattern.""" 369 return ["%s/%s:%s/%s" % (from_dir, f, to_dir, f) for f in rblf_wildcard(pattern, from_dir)] 371 def _filter_out(pattern, text): 372 """Return all the words from `text' that do not match any word in `pattern'. 375 pattern: string or list of words. '%' stands for wildcard (in regex terms, '.*') 380 rex = __mk2regex(__words(pattern)) 387 def _filter(pattern, text): 388 """Return all the words in `text` that match `pattern`. [all …]
|
/build/soong/scripts/ |
D | manifest_check.py | 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):
|
/build/soong/android/ |
D | defs.go | 218 func GlobToListFileRule(ctx ModuleContext, pattern string, excludes []string, file WritablePath) { 219 bootstrap.GlobFile(ctx.blueprintModuleContext(), pattern, excludes, file.String())
|
D | visibility_test.go | 36 expectedErrors: []string{`visibility: invalid visibility pattern ""`}, 47 expectedErrors: []string{`visibility: invalid visibility pattern "target"`}, 58 expectedErrors: []string{`visibility: invalid visibility pattern "//"`}, 69 expectedErrors: []string{`visibility: invalid visibility pattern ":"`}, 80 expectedErrors: []string{`visibility: invalid visibility pattern "//:"`}, 1091 `module "parent": child.visibility: invalid visibility pattern "top/other"`, 1113 …`module "libchild" \(created by module "parent"\): visibility: invalid visibility pattern "top/oth…
|
/build/soong/cmd/zip2zip/ |
D | zip2zip.go | 286 func constantPartOfPattern(pattern string) string { 288 for pattern != "" { 290 first, pattern = splitFirst(pattern)
|
/build/soong/dexpreopt/ |
D | dexpreopt.go | 514 func makefileMatch(pattern, s string) bool { argument 515 percent := strings.IndexByte(pattern, '%') 518 return pattern == s 519 case len(pattern) - 1: 520 return strings.HasPrefix(s, pattern[:len(pattern)-1]) 522 panic(fmt.Errorf("unsupported makefile pattern %q", pattern))
|
/build/make/tools/releasetools/ |
D | find_shareduid_violation.py | 86 pattern = re.compile(r"sharedUserId.*=\"([^\"]*)") 89 match = pattern.search(line)
|
/build/soong/rust/ |
D | rust_test.go | 106 func testRustError(t *testing.T, pattern string, bp string) { 112 ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)). 117 func testRustVndkError(t *testing.T, pattern string, bp string) { 130 ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)).
|
/build/bazel/rules_cc/examples/ |
D | experimental_cc_shared_library.bzl | 154 def _check_if_target_under_path(value, pattern): 155 if pattern.workspace_name != value.workspace_name: 157 if pattern.name == "__pkg__": 158 return pattern.package == value.package 159 if pattern.name == "__subpackages__": 160 return _same_package_or_above(pattern, value) 162 return pattern.package == value.package and pattern.name == value.name
|