/build/soong/finder/ |
D | finder_test.go | 30 func newFs() *fs.MockFs { 31 return fs.NewMockFs(map[string][]byte{}) 34 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder { 38 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea… 46 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) … 84 fs.Create(t, filepath.Join(root, path), filesystem) 104 fs.AssertSameResponse(t, foundPaths, absoluteMatches) 155 fs.Create(t, filepath.Join(root, "findme.txt"), filesystem) 169 fs.AssertSameResponse(t, foundPaths, []string{}) 178 fs.Create(t, createdPath, filesystem) [all …]
|
/build/blueprint/pathtools/ |
D | fs.go | 42 fs := &mockFs{ 51 fs.symlinks[strings.TrimSpace(tokens[0])] = strings.TrimSpace(tokens[1]) 55 fs.files[filepath.Clean(f)] = b 58 fs.dirs[dir] = true 61 fs.dirs[dir] = true 64 fs.dirs["."] = true 65 fs.dirs["/"] = true 67 for f := range fs.files { 68 fs.all = append(fs.all, f) 71 for d := range fs.dirs { [all …]
|
D | fs_test.go | 106 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) { 111 run := func(t *testing.T, fs FileSystem) { 113 f(t, fs, "") 116 f(t, fs, absTestDataDir) 189 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 192 got, err := fs.IsDir(filepath.Join(dir, test.name)) 231 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 234 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks) 277 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 280 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks) [all …]
|
D | glob.go | 47 func startGlob(fs FileSystem, pattern string, excludes []string, 53 matches, deps, err = glob(fs, pattern, false, follow) 79 isSymlink, err := fs.IsSymlink(match) 84 isDir, err := fs.IsDir(match) 105 func glob(fs FileSystem, pattern string, hasRecursive bool, 112 matches, err = fs.glob(pattern) 123 matchDirs, err = fs.glob(pattern) 144 dirMatches, dirs, err := glob(fs, dir, hasRecursive, follow) 150 isDir, err := fs.IsDir(m) 152 if isSymlink, _ := fs.IsSymlink(m); isSymlink { [all …]
|
/build/soong/android/ |
D | neverallow_test.go | 31 fs map[string][]byte 46 fs: map[string][]byte{ 67 fs: map[string][]byte{ 80 fs: map[string][]byte{ 91 fs: map[string][]byte{ 107 fs: map[string][]byte{ 123 fs: map[string][]byte{ 145 fs: map[string][]byte{ 163 fs: map[string][]byte{ 180 fs: map[string][]byte{ [all …]
|
D | visibility_test.go | 12 fs map[string][]byte 18 fs: map[string][]byte{ 29 fs: map[string][]byte{ 40 fs: map[string][]byte{ 51 fs: map[string][]byte{ 62 fs: map[string][]byte{ 73 fs: map[string][]byte{ 84 fs: map[string][]byte{ 95 fs: map[string][]byte{ 116 fs: map[string][]byte{ [all …]
|
D | package_test.go | 9 fs map[string][]byte 15 fs: map[string][]byte{ 29 fs: map[string][]byte{ 43 fs: map[string][]byte{ 61 _, errs := testPackage(test.fs) 84 func testPackage(fs map[string][]byte) (*TestContext, []error) { 87 config := TestArchConfig(buildDir, nil, "", fs)
|
D | soong_config_modules_test.go | 102 run := func(t *testing.T, bp string, fs map[string][]byte) { 103 config := TestConfig(buildDir, nil, bp, fs)
|
D | config.go | 112 fs pathtools.FileSystem member 207 fs: pathtools.OsFs, 213 func TestConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) Config { 248 config.mockFileSystem(bp, fs) 257 func TestArchConfigNativeBridge(buildDir string, env map[string]string, bp string, fs map[string][]… 258 testConfig := TestArchConfig(buildDir, env, bp, fs) 271 func TestArchConfigFuchsia(buildDir string, env map[string]string, bp string, fs map[string][]byte)… 272 testConfig := TestConfig(buildDir, env, bp, fs) 288 func TestArchConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) Config… 289 testConfig := TestConfig(buildDir, env, bp, fs) [all …]
|
/build/make/tools/ |
D | fat16copy.py | 102 def __init__(self, fs, cluster, size=None): argument 109 self.fs = fs 114 self.size = fs.get_chain_size(cluster) 122 got = self.fs.read_file(self.start_cluster, self.idx, size) 128 self.fs.write_file(self.start_cluster, self.idx, data) 159 (dent, consumed) = self.backing.fs.read_dentry(self.backing) 181 new_dentry = dentry(self.backing.fs, attributes, shortname, ext, 226 chunk = self.backing.fs.allocate(size) if size > 0 else 0 233 data_file = fat_file(self.backing.fs, chunk, size) 247 chunk = self.backing.fs.allocate(1) [all …]
|
/build/soong/rust/ |
D | project_json_test.go | 33 fs := map[string][]byte{ 38 cc.GatherRequiredFilesForTest(fs) 40 config := android.TestArchConfig(buildDir, env, bp, fs)
|
D | rust_test.go | 60 fs := map[string][]byte{ 69 cc.GatherRequiredFilesForTest(fs) 71 return android.TestArchConfig(buildDir, nil, bp, fs)
|
/build/make/tools/fs_config/end_to_end_test/ |
D | run_test.sh | 10 ./config.fs 22 ./config.fs 33 ./config.fs 44 ./config.fs 55 ./config.fs 66 ./config.fs
|
/build/soong/finder/fs/ |
D | Android.bp | 20 name: "soong-finder-fs", 21 pkgPath: "android/soong/finder/fs", 23 "fs.go",
|
D | fs_linux.go | 15 package fs package
|
D | fs_darwin.go | 15 package fs package
|
/build/soong/apex/ |
D | vndk_test.go | 48 `+vndkLibrariesTxtFiles("current"), func(fs map[string][]byte, config android.Config) { 110 ctx, _ := testApex(t, bp, func(fs map[string][]byte, config android.Config) { 120 ctx, _ := testApex(t, bp, func(fs map[string][]byte, config android.Config) {
|
/build/soong/zip/ |
D | zip.go | 79 fs pathtools.FileSystem member 86 fs: pathtools.OsFs, 134 f, err := b.fs.Open(name) 195 fs pathtools.FileSystem member 287 fs: args.Filesystem, 290 if z.fs == nil { 291 z.fs = pathtools.OsFs 310 globbed, _, err := z.fs.Glob(s, nil, followSymlinks) 329 if exists, isDir, err := z.fs.Exists(fa.GlobDir); err != nil { 354 globbed, _, err := z.fs.Glob(filepath.Join(fa.GlobDir, "**/*"), nil, followSymlinks) [all …]
|
/build/soong/sdk/ |
D | testing.go | 32 func testSdkContext(bp string, fs map[string][]byte, extraOsTypes []android.OsType) (*android.TestC… 62 for k, v := range fs { 149 func testSdkWithFs(t *testing.T, bp string, fs map[string][]byte) *testSdkResult { 151 ctx, config := testSdkContext(bp, fs, nil) 334 fs := make(map[string][]byte) 336 fs[dest] = nil 340 testSdkWithFs(r.t, snapshotBuildInfo.androidBpContents, fs)
|
/build/soong/cc/ |
D | genrule_test.go | 33 fs := map[string][]byte{ 55 config := android.TestArchConfig(buildDir, nil, bp, fs)
|
D | testing.go | 533 func GatherRequiredFilesForTest(fs map[string][]byte) { 537 bp string, fs map[string][]byte) android.Config { 546 for k, v := range fs {
|
/build/soong/java/ |
D | testing.go | 30 func TestConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) android.Co… 104 for k, v := range fs {
|
/build/soong/xml/ |
D | xml_test.go | 52 fs := map[string][]byte{ 59 config := android.TestArchConfig(buildDir, nil, bp, fs)
|
/build/soong/sh/ |
D | sh_binary_test.go | 38 fs := map[string][]byte{ 44 config := android.TestArchConfig(buildDir, nil, bp, fs)
|
/build/make/tools/atree/ |
D | Android.bp | 10 "fs.cpp",
|