/build/blueprint/ |
D | glob_test.go | 28 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/ |
D | glob_test.go | 29 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 …]
|
D | glob.go | 103 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 …]
|
D | fs.go | 99 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/ |
D | manifest_check_test.py | 78 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/ |
D | main.go | 99 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/ |
D | kati.go | 70 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/ |
D | zip2zip.go | 116 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/ |
D | bp2build.go | 111 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/ |
D | finder.go | 131 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/ |
D | visibility.go | 66 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 …]
|
D | util.go | 392 matches := shlibVersionPattern.FindAllStringIndex(name, -1) 393 if len(matches) > 0 { 394 lastMatch := matches[len(matches)-1]
|
D | neverallow.go | 515 matches := false 517 if !matches { 519 matches = r.directDeps[name] 523 return matches
|
D | androidmk.go | 713 matches := buf.Len() == len(data) 715 if matches { 718 matches = false 724 if matches {
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | RegexSet.java | 34 public boolean matches(String s) { in matches() method in RegexSet 36 if (p.matcher(s).matches()) { in matches()
|
D | Position.java | 78 if (!m.matches()) { in parse()
|
/build/soong/ui/build/ |
D | finder.go | 103 matches := []string{} 106 matches = append(matches, foundName) 109 return entries.DirNames, matches
|
/build/soong/java/ |
D | app_import_test.go | 265 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/ |
D | device.mk | 65 $(error No matches for device "$(dn)"), \ 66 $(error Device "$(dn)" ambiguous: matches $(d)) \
|
/build/soong/finder/ |
D | finder.go | 245 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/ |
D | util.go | 49 matches := libNameRegexp.FindStringSubmatch(module) 50 if matches == nil { 53 return matches[1], nil
|
/build/blueprint/microfactory/ |
D | microfactory.go | 237 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/ |
D | sign_target_files_apks.py | 1143 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")
|
D | sign_target_files_apks | 1143 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/ |
D | java-layers.py | 48 def matches(self, imp): member in Dependency 230 if dep.matches(imp):
|