Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 45) 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.go43 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, deps []string, …
44 return startGlob(OsFs, pattern, excludes, follow)
47 func startGlob(fs FileSystem, pattern string, excludes []string,
50 if filepath.Base(pattern) == "**" {
53 matches, deps, err = glob(fs, pattern, false, follow)
74 if !isWild(pattern) {
105 func glob(fs FileSystem, pattern string, hasRecursive bool,
108 if !isWild(pattern) {
111 pattern = filepath.Clean(pattern)
112 matches, err = fs.glob(pattern)
[all …]
Dfs.go98 …Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, dirs []string, err …
99 glob(pattern string) (matches []string, err error)
197 func (fs *osFs) Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, dirs…
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) (matches, dir…
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 {
Dglob_test.go23 pattern, name string
148 t.Run(test.pattern+","+test.name, func(t *testing.T) {
149 match, err := Match(test.pattern, test.name)
Dtarget_files.go74 for _, pattern := range patterns {
75 match, _ := Match(pattern, f.Name)
/build/blueprint/
Dglob.go34 func verifyGlob(fileName, pattern string, excludes []string, g GlobPath) {
35 if pattern != g.Pattern {
36 panic(fmt.Errorf("Mismatched patterns %q and %q for glob file %q", pattern, g.Pattern, fileName))
49 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
50 fileName := globToFileName(pattern, excludes)
59 verifyGlob(fileName, pattern, excludes, g)
64 files, deps, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks)
72 c.globs[fileName] = GlobPath{pattern, excludes, files, deps, fileName}
78 verifyGlob(fileName, pattern, excludes, g)
100 func globToString(pattern string) string {
[all …]
Dsingleton_ctx.go145 GlobWithDeps(pattern string, excludes []string) ([]string, error)
345 func (s *singletonContext) GlobWithDeps(pattern string,
347 return s.context.glob(pattern, excludes)
/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/tools/warn/
Dother_warn_patterns.py45 def kotlin(description, pattern): argument
47 [r'.*\.kt:.*: warning: ' + pattern])
54 def rust(severity, description, pattern): argument
56 [r'.*\.rs:.*: warning: ' + pattern])
Dandroid_project_list.py19 def create_pattern(name, pattern=None): argument
20 if pattern is not None:
21 return [name, '(^|.*/)' + pattern + '/.*: warning:']
Dhtml_writer.py339 for pattern in warn_patterns:
340 if pattern['severity'] == sev and pattern['members']:
341 n = len(pattern['members'])
343 warning = kind + ': ' + (pattern['description'] or '?')
346 projects = sorted(pattern['projects'].keys())
348 csvwriter.writerow([pattern['projects'][project], project, warning])
Dtidy_warn_patterns.py24 def tidy_warn_pattern(description, pattern): argument
29 'patterns': [r'.*: .+\[' + pattern + r'\]$']
Dwarn_common.py511 pattern = warn_patterns[pattern_idx]
512 pattern['members'].append(line)
521 if pname in pattern['projects']:
522 pattern['projects'][pname] += 1
524 pattern['projects'][pname] = 1
/build/make/core/clang/
Dtidy.mk33 $(foreach pattern,$(DEFAULT_LOCAL_TIDY_CHECKS), \
34 $(call find_default_local_tidy_check,$(pattern),$(1)) \
/build/make/tools/
Dmk2bp_catalog.py26 def match_directory_group(pattern, filename): argument
29 if len(filename) < len(pattern):
31 for i in range(len(pattern)):
32 pattern_segment = pattern[i]
44 for pattern in DIRECTORY_PATTERNS:
45 match = match_directory_group(pattern, filename)
71 NORMAL_INCLUDES = [re.compile(pattern) for pattern in (
/build/soong/rust/
Drust_test.go108 func testRustError(t *testing.T, pattern string, bp string) {
122 android.FailIfNoMatchingErrors(t, pattern, errs)
128 android.FailIfNoMatchingErrors(t, pattern, errs)
132 t.Fatalf("missing expected error %q (0 errors are returned)", pattern)
/build/soong/cmd/zip2zip/
Dzip2zip.go286 func constantPartOfPattern(pattern string) string {
288 for pattern != "" {
290 first, pattern = splitFirst(pattern)
/build/blueprint/bootstrap/
Dglob.go69 func GlobFile(ctx GlobFileContext, pattern string, excludes []string,
76 "glob": pattern,
/build/soong/etc/
Dprebuilt_etc_test.go86 func testPrebuiltEtcError(t *testing.T, pattern, bp string) { argument
92 android.FailIfNoMatchingErrors(t, pattern, errs)
98 android.FailIfNoMatchingErrors(t, pattern, errs)
102 t.Fatalf("missing expected error %q (0 errors are returned)", pattern)
/build/soong/android/
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/dexpreopt/
Ddexpreopt.go562 func makefileMatch(pattern, s string) bool { argument
563 percent := strings.IndexByte(pattern, '%')
566 return pattern == s
567 case len(pattern) - 1:
568 return strings.HasPrefix(s, pattern[:len(pattern)-1])
570 panic(fmt.Errorf("unsupported makefile pattern %q", pattern))
/build/make/tools/releasetools/
Dmerge_target_files.py273 for pattern in extract_item_list:
274 matching_namelist = fnmatch.filter(target_files_namelist, pattern)
276 logger.warning('no match for %s', pattern)
278 filtered_extract_item_list.append(pattern)
296 for pattern in patterns:
297 filtered_file_paths.update(fnmatch.filter(file_paths, pattern))
/build/soong/sdk/
Dtesting.go155 func testSdkError(t *testing.T, pattern, bp string) { argument
160 android.FailIfNoMatchingErrors(t, pattern, errs)
165 android.FailIfNoMatchingErrors(t, pattern, errs)
169 t.Fatalf("missing expected error %q (0 errors are returned)", pattern)
/build/soong/cmd/merge_zips/
Dmerge_zips.go242 for _, pattern := range patterns {
243 match, err := pathtools.Match(pattern, name)
245 panic(fmt.Errorf("%s: %s", err.Error(), pattern))
261 for _, pattern := range oz.excludeFiles {
262 match, err := pathtools.Match(pattern, name)
264 panic(fmt.Errorf("%s: %s", err.Error(), pattern))

12