Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 41) sorted by relevance

12

/build/blueprint/
Dglob_test.go28 matches, err := ctx.glob("a/*", nil)
32 if len(matches) != 2 || matches[0] != "a/a" || matches[1] != "a/b" {
33 t.Error(`expected ["a/a", "a/b"], got`, matches)
39 matches, err = ctx.glob("a/*", []string{})
43 if len(matches) != 2 || matches[0] != "a/a" || matches[1] != "a/b" {
44 t.Error(`expected ["a/a", "a/b"], got`, matches)
48 matches, err = ctx.glob("a/*", []string{"a/b"})
52 if len(matches) != 1 || matches[0] != "a/a" {
53 t.Error(`expected ["a/a"], got`, matches)
/build/blueprint/pathtools/
Dglob_test.go29 matches []string member
39 matches: []string{"a/", "b/", "c/", "d.ext", "e.ext"},
44 matches: []string{"d.ext", "e.ext"},
49 matches: []string{"a/a/", "b/a"},
54 matches: []string{"a/a/a"},
59 matches: []string{"a/a/a"},
64 matches: []string{"c/h/h"},
69 matches: []string{"c/g/g.ext", "c/h/h"},
74 matches: []string{"c/f/f.ext", "c/g/g.ext", "c/h/h"},
79 matches: []string{"c/f/f.ext", "c/g/g.ext", "c/h/h"},
[all …]
Dglob.go103 matches, deps, err := glob(fs, pattern, false, follow)
109 matches, err = filterExcludes(matches, excludes)
124 deps = append(deps, matches...)
127 for i, match := range matches {
139 matches[i] = match + "/"
146 Matches: matches,
154 follow ShouldFollowSymlinks) (matches, dirs []string, err error) {
160 matches, err = fs.glob(pattern)
162 return matches, dirs, err
165 if len(matches) == 0 {
[all …]
Dfs.go99 glob(pattern string) (matches []string, err error)
371 var matches []string
384 matches = append(matches, filepath.Join(dir, fFile))
388 return matches, nil
/build/soong/scripts/
Dmanifest_check_test.py78 matches = self.run_test(xml, apk, uses_libraries=['foo'])
79 self.assertTrue(matches)
84 matches = self.run_test(xml, apk, uses_libraries=['foo'])
85 self.assertTrue(matches)
90 matches = self.run_test(xml, apk, optional_uses_libraries=['foo'])
91 self.assertTrue(matches)
96 matches = self.run_test(xml, apk, uses_libraries=['foo'])
97 self.assertFalse(matches)
102 matches = self.run_test(xml, apk, optional_uses_libraries=['foo'])
103 self.assertFalse(matches)
[all …]
/build/soong/cmd/extract_apks/
Dmain.go99 func (m abiTargetingMatcher) matches(config TargetConfig) bool { func
134 func (m apkDescriptionMatcher) matches(config TargetConfig) bool { func
135 return m.ApkDescription == nil || (apkTargetingMatcher{m.Targeting}).matches(config)
142 func (m apkTargetingMatcher) matches(config TargetConfig) bool { func
144 (abiTargetingMatcher{m.AbiTargeting}.matches(config) &&
145 languageTargetingMatcher{m.LanguageTargeting}.matches(config) &&
146 screenDensityTargetingMatcher{m.ScreenDensityTargeting}.matches(config) &&
147 sdkVersionTargetingMatcher{m.SdkVersionTargeting}.matches(config) &&
148 multiAbiTargetingMatcher{m.MultiAbiTargeting}.matches(config))
155 func (m languageTargetingMatcher) matches(_ TargetConfig) bool { func
[all …]
/build/soong/ui/status/
Dkati.go70 if matches := katiIncludeRe.FindStringSubmatch(line); len(matches) > 0 {
74 matches := katiIncludeRe.FindStringSubmatch(line)
75 if matches[2] != "" {
76 idx, err := strconv.Atoi(matches[2])
87 if matches[3] != "" {
88 tot, err := strconv.Atoi(matches[3])
97 Description: matches[4],
/build/soong/cmd/zip2zip/
Dzip2zip.go116 matches := []pair{}
118 sortMatches := func(matches []pair) {
120 sort.SliceStable(matches, func(i, j int) bool {
121 return jar.EntryNamesLess(matches[i].newName, matches[j].newName)
124 sort.SliceStable(matches, func(i, j int) bool {
125 return matches[i].newName < matches[j].newName
168 matches = append(matches, includeMatches...)
174 matches = append(matches, pair{file, file.Name, false})
176 sortMatches(matches)
182 for _, match := range matches {
/build/soong/cc/config/
Dbp2build.go111 matches := r.FindStringSubmatch(v)
112 if len(matches) == 0 {
116 if len(matches) != 2 {
120 len(matches)-1))
125 variable := matches[1]
/build/soong/finder/cmd/
Dfinder.go131 matches := []string{}
133 matches, err = runFind(params, logger)
139 logger.Printf("Found these %v inodes in %v :\n", len(matches), findDuration)
140 sort.Strings(matches)
141 for _, match := range matches {
144 logger.Printf("End of %v inodes\n", len(matches))
/build/soong/android/
Dvisibility.go66 matches(m qualifiedModuleName) bool methodSpec
113 func (c compositeRule) matches(m qualifiedModuleName) bool { func
115 if r.matches(m) {
139 func (r packageRule) matches(m qualifiedModuleName) bool { func
153 func (r subpackagesRule) matches(m qualifiedModuleName) bool { func
168 func (r publicRule) matches(_ qualifiedModuleName) bool { func
179 func (r privateRule) matches(_ qualifiedModuleName) bool { func
406 matches := visibilityRuleRegexp.FindStringSubmatch(ruleExpression)
407 if ruleExpression == "" || matches == nil {
419 pkg := matches[1]
[all …]
Dutil.go392 matches := shlibVersionPattern.FindAllStringIndex(name, -1)
393 if len(matches) > 0 {
394 lastMatch := matches[len(matches)-1]
Dneverallow.go515 matches := false
517 if !matches {
519 matches = r.directDeps[name]
523 return matches
Dandroidmk.go713 matches := buf.Len() == len(data)
715 if matches {
718 matches = false
724 if matches {
/build/make/tools/product_config/src/com/android/build/config/
DRegexSet.java34 public boolean matches(String s) { in matches() method in RegexSet
36 if (p.matcher(s).matches()) { in matches()
DPosition.java78 if (!m.matches()) { in parse()
/build/soong/ui/build/
Dfinder.go103 matches := []string{}
106 matches = append(matches, foundName)
109 return entries.DirNames, matches
/build/soong/java/
Dapp_import_test.go265 matches := jniRuleRe.FindStringSubmatch(jniRuleCommand)
266 if len(matches) != 2 {
269 if strings.HasSuffix(matches[1], test.expected) {
270 t.Errorf("wrong src apk, expected: %q got: %q", test.expected, matches[1])
398 matches := jniRuleRe.FindStringSubmatch(jniRuleCommand)
399 if len(matches) != 2 {
402 if strings.HasSuffix(matches[1], test.expected) {
403 t.Errorf("wrong src apk, expected: %q got: %q", test.expected, matches[1])
/build/make/core/
Ddevice.mk65 $(error No matches for device "$(dn)"), \
66 $(error Device "$(dn)" ambiguous: matches $(d)) \
/build/soong/finder/
Dfinder.go245 matches := []string{}
248 matches = append(matches, foundName)
251 return entries.DirNames, matches
267 matches := []string{}
270 matches = append(matches, foundName)
274 if len(matches) > 0 {
275 return []string{}, matches
277 return entries.DirNames, matches
1542 matches := []string{}
1552 matches = append(matches, filePaths...)
[all …]
/build/soong/cc/
Dutil.go49 matches := libNameRegexp.FindStringSubmatch(module)
50 if matches == nil {
53 return matches[1], nil
/build/blueprint/microfactory/
Dmicrofactory.go237 func parseBuildComment(comment string) (matches, ok bool) {
247 matches = false
249 matches = matches || matchBuildTag(tok)
251 return matches, true
299 if matches, ok := parseBuildComment(comment.Text); ok && !matches {
/build/make/tools/releasetools/
Dsign_target_files_apks.py1143 matches = re.match(
1151 if not matches:
1154 name = matches.group('NAME')
1155 payload_private_key = matches.group("PAYLOAD_PRIVATE_KEY")
1167 container_cert = matches.group("CONTAINER_CERT")
1168 container_private_key = matches.group("CONTAINER_PRIVATE_KEY")
Dsign_target_files_apks1143 matches = re.match(
1151 if not matches:
1154 name = matches.group('NAME')
1155 payload_private_key = matches.group("PAYLOAD_PRIVATE_KEY")
1167 container_cert = matches.group("CONTAINER_CERT")
1168 container_private_key = matches.group("CONTAINER_PRIVATE_KEY")
/build/make/tools/
Djava-layers.py48 def matches(self, imp): member in Dependency
230 if dep.matches(imp):

12