/frameworks/base/core/tests/coretests/src/android/os/ |
EnvironmentTest.java | 40 private File dir; field in class:EnvironmentTest 48 dir = getContext().getDir("testing", Context.MODE_PRIVATE); 49 FileUtils.deleteContents(dir); 54 FileUtils.deleteContents(dir); 59 assertEquals(0, classifyExternalStorageDirectory(dir)); 64 Environment.buildPath(dir, "DCIM").mkdirs(); 65 Environment.buildPath(dir, "DCIM", "January").mkdirs(); 66 Environment.buildPath(dir, "Downloads").mkdirs(); 67 Environment.buildPath(dir, "LOST.DIR").mkdirs() [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
EntropyMixerTest.java | 31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE); local 32 File file = File.createTempFile("testInitialWrite", "dat", dir);
|
/frameworks/base/tools/aapt/ |
DirectoryWalker.h | 59 dir = NULL; 60 dir = opendir(mBasePath.string() ); 62 if (dir == NULL) 74 struct dirent* entryPtr = readdir(dir); 89 closedir(dir); 95 DIR* dir; member in class:SystemDirectoryWalker
|
/frameworks/compile/mclinker/lib/MC/ |
SearchDirs.cpp | 41 iterator dir, dirEnd = end(); local 42 for (dir = begin(); dir != dirEnd; ++dir) { 43 delete (*dir); 48 MCLDDirectory* dir = new MCLDDirectory(pPath); local 49 if (dir->isInSysroot()) 50 dir->setSysroot(m_SysRoot); 52 if (exists(dir->path()) && is_directory(dir->path())) [all...] |
/hardware/interfaces/drm/1.0/vts/functional/ |
vendor_modules.cpp | 36 DIR* dir = opendir(directory.c_str()); local 37 if (dir == NULL) { 41 while ((entry = readdir(dir))) { 48 closedir(dir);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldFileTest.java | 49 private void deleteTempFolder(File dir) { 50 String files[] = dir.list(); 52 File f = new File(dir, files[i]); 59 dir.delete(); 138 File dir = new File(base, platformId); local 139 dir.mkdir(); 140 File f = new File(dir, "xxx.xxx"); 150 File dir = new File(""); // current directory local 151 String newDirURL = dir.toURL().toString(); 157 File dir = new File(cts + "/hello") local [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
UnixMountEntry.java | 34 private byte[] dir; // directory (mount point) field in class:UnixMountEntry 55 byte[] dir() { method in class:UnixMountEntry 56 return dir;
|
/prebuilts/go/darwin-x86/src/go/types/ |
resolver.go | 135 func (check *Checker) importPackage(pos token.Pos, path, dir string) *Package { 136 // If we already have a package for the given (path, dir) 141 key := importKey{path, dir} 157 imp, err = importerFrom.ImportFrom(path, dir, 0) 159 err = fmt.Errorf("Config.Importer.ImportFrom(%s, %s, 0) returned nil but no error", path, dir) 237 fileDir := dir(check.fset.Position(file.Name.Pos()).Filename) 532 // dir makes a good-faith attempt to return the directory 535 // path/filepath and simply use filepath.Dir.) 536 func dir(path string) string { func
|
/prebuilts/go/linux-x86/src/go/types/ |
resolver.go | 135 func (check *Checker) importPackage(pos token.Pos, path, dir string) *Package { 136 // If we already have a package for the given (path, dir) 141 key := importKey{path, dir} 157 imp, err = importerFrom.ImportFrom(path, dir, 0) 159 err = fmt.Errorf("Config.Importer.ImportFrom(%s, %s, 0) returned nil but no error", path, dir) 237 fileDir := dir(check.fset.Position(file.Name.Pos()).Filename) 532 // dir makes a good-faith attempt to return the directory 535 // path/filepath and simply use filepath.Dir.) 536 func dir(path string) string { func
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_symlink/ |
copy_symlink.pass.cpp | 62 const path dir = env.create_dir("dir"); local 72 fs::copy_symlink(dir, dne, ec); 74 TEST_CHECK(checkThrow(dir, dne, ec)); 86 const path dir = env.create_dir("dir"); local 87 const path dir_sym = env.create_symlink(dir, "dir_sym"); 96 TEST_CHECK(equivalent(dest, dir));
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/ |
create_directory.pass.cpp | 59 const path dir = env.create_dir("dir1"); local 61 TEST_CHECK(fs::create_directory(dir, ec) == false); 63 TEST_CHECK(is_directory(dir)); 65 TEST_CHECK(fs::create_directory(dir) == false); 71 const path dir = env.make_env_path("dir1"); local 73 TEST_CHECK(fs::create_directory(dir, ec) == true); 75 TEST_CHECK(is_directory(dir)); 77 auto st = status(dir); 85 const path dir = env.make_env_path("dir1/dir2"); local 88 TEST_CHECK(fs::create_directory(dir, ec) == false) [all...] |
create_directory_with_attributes.pass.cpp | 43 const path dir = env.create_dir("dir1"); local 46 const perms orig_p = status(dir).permissions(); 50 TEST_CHECK(fs::create_directory(dir, dir2, ec) == false); 54 TEST_CHECK(orig_p == status(dir).permissions()); 57 TEST_CHECK(fs::create_directory(dir, dir2) == false); 66 const path dir = env.make_env_path("dir1"); local 71 TEST_CHECK(fs::create_directory(dir, attr_dir, ec) == true); 73 TEST_CHECK(is_directory(dir)); 76 auto st = status(dir); 83 const path dir = env.make_env_path("dir1/dir2") local [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_symlink/ |
create_symlink.pass.cpp | 56 const path dir = env.create_dir("dir"); local 57 const path dir_sym = env.create_symlink(dir, "dir_sym"); 72 TEST_CHECK(equivalent(dest, dir));
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.exists/ |
exists.pass.cpp | 77 const path dir = env.create_dir("dir"); local 78 const path file = env.create_file("dir/file", 42); 79 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_block_file/ |
is_block_file.pass.cpp | 73 const path dir = env.create_dir("dir"); local 74 const path file = env.create_file("dir/file", 42); 75 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_char_file/ |
is_character_file.pass.cpp | 73 const path dir = env.create_dir("dir"); local 74 const path file = env.create_file("dir/file", 42); 75 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_directory/ |
is_directory.pass.cpp | 72 TEST_CHECK(is_directory(StaticEnv::Dir)); 80 const path dir = env.create_dir("dir"); local 81 const path dir2 = env.create_dir("dir/dir2"); 82 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_fifo/ |
is_fifo.pass.cpp | 73 const path dir = env.create_dir("dir"); local 74 const path file = env.create_file("dir/file", 42); 75 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_other/ |
is_other.pass.cpp | 73 const path dir = env.create_dir("dir"); local 74 const path file = env.create_file("dir/file", 42); 75 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_regular_file/ |
is_regular_file.pass.cpp | 76 const path dir = env.create_dir("dir"); local 77 const path file = env.create_file("dir/file", 42); 78 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_socket/ |
is_socket.pass.cpp | 73 const path dir = env.create_dir("dir"); local 74 const path file = env.create_file("dir/file", 42); 75 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_symlink/ |
is_symlink.pass.cpp | 72 {StaticEnv::Dir, false}, 94 const path dir = env.create_dir("dir"); local 95 const path file = env.create_file("dir/file", 42); 96 permissions(dir, perms::none);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.resize_file/ |
resize_file.pass.cpp | 62 const path dir = env.create_dir("dir1"); local 64 dne, bad_sym, dir
|
/system/extras/libpagemap/ |
pm_kernel.c | 63 DIR *proc; 64 struct dirent *dir; local 80 while ((dir = readdir(proc))) { 81 if (sscanf(dir->d_name, "%d", &pid) < 1)
|
/external/guava/guava-tests/test/com/google/common/io/ |
FileTreeTraverserTest.java | 34 private File dir; field in class:FileTreeTraverserTest 38 dir = Files.createTempDir(); 43 File[] files = dir.listFiles(); 53 dir.delete(); 79 File file = new File(dir, name); 85 File file = new File(dir, name); 92 ImmutableSet.copyOf(Files.fileTreeTraverser().children(dir)));
|