Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 46) sorted by relevance

12

/build/blueprint/pathtools/
Dglob_test.go28 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 …]
Dglob.go92 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 …]
Dfs.go98 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/
Dglob.go25 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 {
Dtarget_files.go74 for _, pattern := range patterns {
75 match, _ := Match(pattern, f.Name)
/build/blueprint/
Dglob.go25 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/
Dregex.star6 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/
Dhtml_writer.py148 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 …]
Dother_warn_patterns.py47 def kotlin(description, pattern): argument
49 [r'.*\.kt:.*: warning: ' + pattern])
56 def rust(severity, description, pattern): argument
58 [r'.*\.rs:.*: warning: ' + pattern])
Dwarn_common.py119 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 …]
Dandroid_project_list.py19 def create_pattern(name, pattern=None): argument
21 if pattern is not None:
22 return [name, '(^|.*/)' + pattern + '/.*: warning:']
Dtidy_warn_patterns.py26 def tidy_warn_pattern(description, pattern): argument
31 'patterns': [r'.*: .+\[' + pattern + r'\]$']
/build/soong/jar/
Djar.go51 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/
Dtidy.mk33 $(foreach pattern,$(DEFAULT_LOCAL_TIDY_CHECKS), \
34 $(call find_default_local_tidy_check,$(pattern),$(1)) \
/build/make/tools/rbcrun/
Dhost.go130 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/
Dbpglob.go97 pattern string member
108 pattern: s,
203 result, err := pathtools.Glob(glob.pattern, glob.excludes, pathtools.FollowSymlinks)
/build/make/core/
Dproduct_config.rbc364 """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/
Dmanifest_check.py124 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/
Ddefs.go218 func GlobToListFileRule(ctx ModuleContext, pattern string, excludes []string, file WritablePath) {
219 bootstrap.GlobFile(ctx.blueprintModuleContext(), pattern, excludes, file.String())
Dvisibility_test.go36 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/
Dzip2zip.go286 func constantPartOfPattern(pattern string) string {
288 for pattern != "" {
290 first, pattern = splitFirst(pattern)
/build/soong/dexpreopt/
Ddexpreopt.go514 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/
Dfind_shareduid_violation.py86 pattern = re.compile(r"sharedUserId.*=\"([^\"]*)")
89 match = pattern.search(line)
/build/soong/rust/
Drust_test.go106 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/
Dexperimental_cc_shared_library.bzl154 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

12