/system/extras/tests/storage/ |
opentest.c | 31 char *dir; local 41 dir = argv[1]; 49 if (stat(dir, &statbuf)) { 50 fprintf(stderr, "Cannot stat %s\n", dir); 55 fprintf(stderr, "%s is not a directory!\n", dir); 59 if (access(dir, R_OK | W_OK)) { 60 fprintf(stderr, "No access to %s\n", dir); 70 if (chdir(dir)) { 71 fprintf(stderr, "Cannot chdir to %s\n", dir);
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
BaseBootReceiver.java | 52 File dir = file.getParentFile(); local 54 dir.setExecutable(true, false); 55 dir.setExecutable(true, true); 56 dir = dir.getParentFile(); 57 } while (dir != null);
|
/external/vogar/src/vogar/android/ |
DeviceFilesystem.java | 46 File dir = name; local 48 // trying to create /sdcard or /. This might reach dir == null if given a relative path, 50 while (dir != null && !dir.getPath().equals("/sdcard") && !dir.getPath().equals("/")) { 51 directoryStack.addFirst(dir); 52 dir = dir.getParentFile(); 82 public List<File> ls(File dir) throws FileNotFoundException { 86 args.add(dir.getPath()) [all...] |
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
MediaStoreSaver.java | 42 File dir = new File(file_path); local 44 if (!dir.exists()) { 45 System.out.println("make directory: " + dir.getAbsolutePath()); 46 dir.mkdirs(); 48 //int n = dir.listFiles().length; 49 //File file = new File(dir, imageName + n + ".png"); 50 File file = new File(dir, imageName + ".png");
|
/art/runtime/base/ |
file_utils_test.cc | 73 char* dir = dirname(root_dup); local 74 ASSERT_EQ(0, setenv("ANDROID_ROOT", dir, 1 /* overwrite */)); 76 EXPECT_STREQ(dir, android_root2.c_str());
|
/bionic/tests/ |
sys_sem_test.cpp | 43 TemporaryDir dir; local 44 key_t key = ftok(dir.dirname, 1);
|
/build/soong/zip/cmd/ |
main.go | 61 type dir struct{} type 104 func (d *dir) String() string { 108 func (d *dir) Set(s string) error { 130 fmt.Fprintf(os.Stderr, "usage: zip -o zipfile [-m manifest] -C dir [-f|-l file]...\n") 167 flags.Var(&dir{}, "D", "directory to include in zip")
|
/cts/tests/tests/security/src/android/security/cts/ |
SELinuxTest.java | 75 File dir = new File("/cache"); local 76 if (dir.exists()) {
|
/device/google/cuttlefish_common/guest/commands/vport_trigger/ |
main.cpp | 58 DIR *dir = opendir(sysfs_base); local 59 if (dir) { 61 while ((dp = readdir(dir)) != nullptr) {
|
/external/adhd/cras/src/server/ |
cras_alsa_mixer_name.h | 25 enum CRAS_STREAM_DIRECTION dir; member in struct:mixer_name 35 * dir - The direction for this control. 44 enum CRAS_STREAM_DIRECTION dir, 53 * dir - The direction for these controls. 63 enum CRAS_STREAM_DIRECTION dir, 79 * dir - The direction to match. 89 enum CRAS_STREAM_DIRECTION dir,
|
cras_alsa_ucm_section.h | 20 enum CRAS_STREAM_DIRECTION dir; /* Output or Input. */ member in struct:ucm_section 35 * dir - Device direction: INPUT or OUTPUT. 44 enum CRAS_STREAM_DIRECTION dir,
|
/external/annotation-tools/annotation-file-utilities/tests/ |
VerifyDiffs.java | 35 File dir = new File("."); local 38 gatherDiffs(allDiffs, dir); 76 * Recursively adds all files in directory dir ending in .diff to 80 * @param dir the directory to start gathering diffs 82 private static void gatherDiffs(List<File> diffs, File dir) { 83 for (File f : dir.listFiles()) {
|
/external/dtc/ |
srcpos.h | 30 char *dir; member in struct:srcfile_state
|
/external/e2fsprogs/e2fsck/ |
dx_dirinfo.c | 18 struct dx_dir_info *dir; local 65 dir = &ctx->dx_dir_info[i]; 66 if (dir->ino != ino) 70 dir = &ctx->dx_dir_info[ctx->dx_dir_info_count++]; 72 dir->ino = ino; 73 dir->numblocks = num_blocks; 74 dir->hashversion = 0; 75 dir->dx_block = e2fsck_allocate_memory(ctx, num_blocks 118 struct dx_dir_info *dir; local 121 dir = ctx->dx_dir_info [all...] |
/external/e2fsprogs/lib/ext2fs/ |
expanddir.c | 28 ext2_ino_t dir; member in struct:expand_dir_struct 69 es->dir); 87 errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir) 101 retval = ext2fs_check_directory(fs, dir); 105 retval = ext2fs_read_inode(fs, dir, &inode); 111 es.goal = ext2fs_find_inode_goal(fs, dir, &inode, 0); 113 es.dir = dir; 115 retval = ext2fs_block_iterate3(fs, dir, BLOCK_FLAG_APPEND, 118 return ext2fs_inline_data_expand(fs, dir); [all...] |
/external/google-breakpad/src/common/dwarf/ |
functioninfo.cc | 79 string dir = dirs_->at(dir_num); local 84 if (dir == "") { 87 s.name = dir + "/" + name;
|
/external/google-breakpad/src/common/tests/ |
auto_tempdir.h | 70 // First remove any files in the dir 71 DIR* dir = opendir(path.c_str()); local 72 if (!dir) 76 while ((entry = readdir(dir)) != NULL) { 87 EXPECT_TRUE(closedir(dir) == 0);
|
/external/guava/guava-tests/test/com/google/common/io/ |
PatternFilenameFilterTest.java | 42 File dir = new File("foo"); local 44 assertTrue(filter.accept(dir, "a")); 45 assertTrue(filter.accept(dir, "aaaa")); 46 assertFalse(filter.accept(dir, "b")); 48 // Show that dir is ignored
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
TestCharFromDirProp.java | 34 int dir = UCharacter.getDirection(c); local 36 + "] == U+" + Utility.hex(c) + ") failed", i, dir);
|
/external/iproute2/lib/ |
fs.c | 104 char *dir, *delim; local 107 delim = dir = strdup(path); 108 if (dir == NULL) { 122 rc = mkdir(dir, mode); 123 if (mkdir(dir, mode) != 0 && errno != EEXIST) { 125 dir, strerror(errno)); 139 free(dir);
|
namespace.c | 23 DIR *dir; local 26 dir = opendir(etc_netns_path); 27 if (!dir) 30 while ((entry = readdir(dir)) != NULL) { 42 closedir(dir); 108 DIR *dir; local 111 dir = opendir(NETNS_RUN_DIR); 112 if (!dir) [all...] |
/external/jacoco/org.jacoco.ant/src/org/jacoco/ant/ |
AntResourcesLocator.java | 54 final FileResource dir = (FileResource) resource; local 55 super.add(new DirectorySourceFileLocator(dir.getFile(), encoding,
|
/external/jline/src/src/main/java/jline/ |
FileNameCompletor.java | 58 final File dir; local 61 dir = f; 63 dir = f.getParentFile(); 66 final File[] entries = (dir == null) ? new File[0] : dir.listFiles();
|
/external/libcups/cups/ |
dir.c | 22 #include "dir.h" 39 HANDLE dir; /* Directory handle */ member in struct:_cups_dir_s 85 if (dp->dir != INVALID_HANDLE_VALUE) 86 FindClose(dp->dir); 127 dp->dir = INVALID_HANDLE_VALUE; 162 if (dp->dir == INVALID_HANDLE_VALUE) 168 dp->dir = FindFirstFile(dp->directory, &entry); 169 if (dp->dir == INVALID_HANDLE_VALUE) 172 else if (!FindNextFile(dp->dir, &entry)) 219 if (dp->dir != INVALID_HANDLE_VALUE 244 DIR *dir; \/* Directory file *\/ member in struct:_cups_dir_s [all...] |
/external/libcxx/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));
|