Home
last modified time | relevance | path

Searched refs:dirs (Results 1 – 25 of 26) sorted by relevance

12

/build/make/tools/
Dfindleaves.py32 for root, dirs, files in os.walk(rootdir, followlinks=True):
35 for d in dirs:
41 while i < len(dirs):
42 if dirs[i] in prune:
43 del dirs[i]
55 del dirs[:]
59 while i < len(dirs):
60 st = os.stat(os.path.join(root, dirs[i]))
63 del dirs[i]
Dmk2bp_catalog.py140 for root, dirs, files in os.walk(cwd):
145 if ignore in dirs:
146 dirs.remove(ignore)
Djava-layers.py179 for root, dirs, files in os.walk(d):
/build/blueprint/pathtools/
Dfs.go44 dirs: make(map[string]bool),
58 fs.dirs[dir] = true
61 fs.dirs[dir] = true
64 fs.dirs["."] = true
65 fs.dirs["/"] = true
71 for d := range fs.dirs {
98 …Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, dirs []string, err …
116 ListDirsRecursive(name string, follow ShouldFollowSymlinks) (dirs []string, err error)
197 func (fs *osFs) Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, dirs
216 func (fs *osFs) ListDirsRecursive(name string, follow ShouldFollowSymlinks) (dirs []string, err err…
[all …]
Dglob.go106 follow ShouldFollowSymlinks) (matches, dirs []string, err error) {
114 return matches, dirs, err
125 return matches, dirs, err
128 dirs = append(dirs, matchDirs...)
130 return matches, dirs, err
137 return matches, dirs, GlobMultipleRecursiveErr
141 return matches, dirs, GlobInvalidRecursiveErr
144 dirMatches, dirs, err := glob(fs, dir, hasRecursive, follow)
168 dirs = append(dirs, m)
181 return matches, dirs, nil
Dfs_test.go205 dirs []string
236 want := append([]string(nil), test.dirs...)
251 dirs []string
282 want := append([]string(nil), test.dirs...)
/build/soong/ui/build/
Dconfig_test.go335 func createDirectories(t *testing.T, topDir string, dirs []string) {
336 for _, dir := range dirs {
359 dirs []string
374 dirs: []string{"1/2/3"},
381 dirs: []string{"1/2/3"},
388 dirs: []string{"1/2/3:t1:t2"},
395 dirs: []string{"1/2/3:"},
402 dirs: []string{"1/2/3:t1,t2"},
409 dirs: []string{"1/2/3:,"},
416 dirs: []string{"1/2/3:,t1"},
[all …]
Dutil.go62 func ensureDirectoriesExist(ctx Context, dirs ...string) {
63 for _, dir := range dirs {
72 func ensureEmptyDirectoriesExist(ctx Context, dirs ...string) {
74 for _, dir := range dirs {
96 ensureDirectoriesExist(ctx, dirs...)
Dconfig.go333 newConfigArgs, dirs := splitArgs(configArgs)
335 targets = getTargetsFromDirs(ctx, relDir, dirs, targetNamePrefix)
412 func splitArgs(args []string) (newArgs []string, dirs []string) {
421 dirs = []string{}
435 dirs = append(dirs, arg)
438 return newArgs, dirs
445 func getTargetsFromDirs(ctx Context, relDir string, dirs []string, targetNamePrefix string) (target…
446 for _, dir := range dirs {
/build/soong/cc/
Dlibrary_sdk_member.go161 dirs bool member
173 dirs: true,
183 dirs: true,
194 dirs: true,
205 dirs: false,
246 if propertyInfo.dirs {
263 if propertyInfo.dirs {
277 for property, dirs := range includeDirs {
278 outputProperties.AddProperty(property, dirs)
386 dirs := append(android.Paths(nil), ccModule.ExportedSystemIncludeDirs()...)
[all …]
Dutil.go28 func includeDirsToFlags(dirs android.Paths) string {
29 return android.JoinWithPrefix(dirs.Strings(), "-I")
32 func ldDirsToFlags(dirs []string) string {
33 return android.JoinWithPrefix(dirs, "-L")
Dmakevars.go320 extract := func(flags string, dirs []string, prefix string) (string, []string, bool) {
325 dirs = append(dirs, s[0])
327 return strings.TrimLeft(s[1], " "), dirs, true
329 return "", dirs, true
331 return flags, dirs, false
Dlibrary.go243 dirs android.Paths member
259 f.dirs = append(f.dirs, f.exportedIncludes(ctx)...)
269 func (f *flagExporter) reexportDirs(dirs ...android.Path) {
270 f.dirs = append(f.dirs, dirs...)
273 func (f *flagExporter) reexportSystemDirs(dirs ...android.Path) {
274 f.systemDirs = append(f.systemDirs, dirs...)
296 return f.dirs
Dcc.go2253 dirs := genRule.GeneratedHeaderDirs()
2254 depPaths.IncludeDirs = append(depPaths.IncludeDirs, dirs...)
2256 depPaths.ReexportedDirs = append(depPaths.ReexportedDirs, dirs...)
2261 …c.sabi.Properties.ReexportedIncludes = append(c.sabi.Properties.ReexportedIncludes, dirs.Strings()…
/build/soong/java/
Djava_resources.go42 dirs := ctx.Glob(android.PathForSource(ctx, ctx.ModuleDir()).Join(ctx, exclude).String(), nil)
43 for _, dir := range dirs {
55dirs := ctx.Glob(android.PathForSource(ctx, ctx.ModuleDir()).Join(ctx, resourceDir).String(), excl…
56 for _, dir := range dirs {
Dlint.go448 var dirs []string
465 dirs = android.SortedUniqueStrings(dirs)
/build/make/tools/atree/
Dfs.cpp55 vector<string> dirs; in remove_recursively() local
68 dirs.push_back(full); in remove_recursively()
82 for (vector<string>::iterator it=dirs.begin(); it!=dirs.end(); it++) { in remove_recursively()
Dfiles.cpp436 vector<string> dirs; in list_dir() local
451 dirs.push_back(entry); in list_dir()
456 for (vector<string>::iterator it=dirs.begin(); it!=dirs.end(); it++) { in list_dir()
/build/make/tools/fs_config/
Dtest_fs_config_generator.py267 dirs = parser.dirs
271 self.assertEqual(len(dirs), 1)
276 dcap = dirs[0]
Dfs_config_generator.py739 def dirs(self): member in FSConfigFileParser
1091 dirs = self._oem_parser.dirs
1102 for dir_entry in dirs:
/build/soong/androidmk/androidmk/
Dandroid.go896 dirs := []string{""}
898 dirs = strings.Fields(args[0])
901 paths := make([]string, len(dirs))
903 paths[i] = fmt.Sprintf("%s/**/"+wildcard, dirs[i])
/build/soong/apex/
Dapex_test.go1981 dirs := strings.Split(generateFsRule.Args["exec_paths"], " ")
1984 ensureListContains(t, dirs, "etc")
1985 ensureListContains(t, dirs, "etc/foo")
1986 ensureListContains(t, dirs, "etc/foo/bar")
1987 ensureListContains(t, dirs, "lib64")
1988 ensureListContains(t, dirs, "lib64/foo")
1989 ensureListContains(t, dirs, "lib64/foo/bar")
1990 ensureListContains(t, dirs, "lib")
1991 ensureListContains(t, dirs, "lib/foo")
1992 ensureListContains(t, dirs, "lib/foo/bar")
[all …]
/build/soong/rust/
Drust.go310 func (flagExporter *flagExporter) exportLinkDirs(dirs ...string) {
311 flagExporter.linkDirs = android.FirstUniqueStrings(append(flagExporter.linkDirs, dirs...))
/build/soong/android/
Dmodule.go2346 dirs := SortedStringKeys(modulesInDir)
2347 for _, dir := range dirs {
2359 for _, dir := range dirs {
2369 for _, dir := range dirs {
/build/soong/docs/
Dbest_practices.md72 `LOCAL_EXPORT_*_HEADERS` instead. Non-local exported include dirs are not

12