/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppTransferAdapter.java | 72 int dir = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); local 76 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { 109 if (dir == BluetoothShare.DIRECTION_INBOUND) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
SaveVideoFileUtils.java | 75 final File[] dir = new File[1]; local 81 dir[0] = new File(cursor.getString(0)).getParentFile(); 84 return dir[0];
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
file_utils.cpp | 46 DIR *const dir = opendir(dirPath); local 47 if (dir == NULL) { 50 closedir(dir); 61 DIR *const dir = opendir(dirPath); local 62 if (dir == NULL) { 63 AKLOGE("Cannot open dir %s.", dirPath); 67 while ((dirent = readdir(dir)) != NULL) { 79 closedir(dir); [all...] |
/prebuilts/go/darwin-x86/src/runtime/cgo/ |
gcc_darwin_arm.c | 126 char *dir = &buf[0] + sizeof("file://")-1; local 128 if (chdir(dir) != 0) { 129 fprintf(stderr, "runtime/cgo: chdir(%s) failed\n", dir);
|
gcc_darwin_arm64.c | 128 char *dir = &buf[0] + sizeof("file://")-1; local 130 if (chdir(dir) != 0) { 131 fprintf(stderr, "runtime/cgo: chdir(%s) failed\n", dir);
|
/prebuilts/go/linux-x86/src/runtime/cgo/ |
gcc_darwin_arm.c | 126 char *dir = &buf[0] + sizeof("file://")-1; local 128 if (chdir(dir) != 0) { 129 fprintf(stderr, "runtime/cgo: chdir(%s) failed\n", dir);
|
gcc_darwin_arm64.c | 128 char *dir = &buf[0] + sizeof("file://")-1; local 130 if (chdir(dir) != 0) { 131 fprintf(stderr, "runtime/cgo: chdir(%s) failed\n", dir);
|
/prebuilts/jdk/jdk8/darwin-x86/sample/nio/file/ |
WatchDir.java | 66 private void register(Path dir) throws IOException { 67 WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY); 70 System.out.format("register: %s\n", dir); 81 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) 84 register(dir); 93 WatchDir(Path dir, boolean recursive) throws IOException { 98 System.out.format("Scanning %s ...\n", dir); 99 registerAll(dir); 102 register(dir); 164 System.err.println("usage: java WatchDir [-r] dir"); 182 Path dir = Paths.get(args[dirArg]); local [all...] |
/prebuilts/jdk/jdk8/linux-x86/sample/nio/file/ |
WatchDir.java | 66 private void register(Path dir) throws IOException { 67 WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY); 70 System.out.format("register: %s\n", dir); 81 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) 84 register(dir); 93 WatchDir(Path dir, boolean recursive) throws IOException { 98 System.out.format("Scanning %s ...\n", dir); 99 registerAll(dir); 102 register(dir); 164 System.err.println("usage: java WatchDir [-r] dir"); 182 Path dir = Paths.get(args[dirArg]); local [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/ |
permissions.pass.cpp | 82 const path dir = env.create_dir("dir1"); local 99 {dir, perms::none, perms::none}, 100 {dir, perms::owner_all, perms::owner_all}, 101 {dir, perms::group_all | AP, perms::owner_all | perms::group_all}, 102 {dir, perms::group_all | RP, perms::owner_all}, 108 // test non-symlink with symlink_nofollow. The last test on file/dir 111 {dir, perms::group_all | AP | NF, perms::owner_all | perms::group_all}
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.remove_all/ |
remove_all.pass.cpp | 58 const path non_empty_dir = env.create_dir("dir"); 103 const path dir = env.create_dir("dir"); local 104 const path file = env.create_file(dir / "file", 42); 105 const path link = env.create_symlink(dir, "sym"); 112 TEST_CHECK(exists(dir)); 121 const path dir = env.create_dir("dir"); local 122 const path dir1 = env.create_dir(dir / "dir1"); 125 dir, dir1 [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
ProjectLintConfiguration.java | 51 File dir = AdtUtils.getAbsolutePath(project).toFile(); local 52 Project lintProject = client.getProject(dir, dir);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/ |
NdkManager.java | 49 File dir = new File(location); local 50 if (!dir.isDirectory()) 54 if (!new File(dir, "ndk-build").isFile()) //$NON-NLS-1$
|
/system/core/init/ |
init_test.cpp | 142 // 3: dir_a - file named 'a.rc' in dir; dir is imported after first_import 144 // 5: dir_b - file named 'b.rc' in dir 145 // 6: last_import - imported after dir is imported 159 TemporaryDir dir; local 166 ASSERT_TRUE(WriteFile(std::string(dir.path) + "/a.rc", dir_a_script)); 168 ASSERT_TRUE(WriteFile(std::string(dir.path) + "/b.rc", "on boot\nexecute 5")); 172 "import " + std::string(dir.path) + "\n"
|
ueventd_test.cpp | 76 TemporaryDir dir; local 80 std::generate_n(std::back_inserter(files_and_gids), 100, [&gid, &dir]() { 82 return std::pair(dir.path + "/gid_"s + std::to_string(gid), gid); 111 TemporaryDir dir; local 114 files_and_contexts.emplace_back(dir.path + "/context_"s + context, context);
|
/system/core/libcutils/tests/ |
fs_config.cpp | 40 bool dir; member in struct:fs_config_cmp_test 139 match = __for_testing_only__fs_config_cmp(tests[idx].dir, tests[idx].prefix,
|
/system/libhidl/base/ |
HidlInternal.cpp | 155 DIR *dir = opendir(path.c_str()); local 156 if (dir == 0) { 162 while ((file = readdir(dir)) != nullptr) { 208 closedir(dir);
|
/system/tools/hidl/build/ |
fqName.go | 84 func (f *fqName) dir() string { func
|
/test/vts-testcase/fuzz/iface_fuzzer/ |
ProtoFuzzerUtils.cpp | 87 DIR *dir; local 89 if (!(dir = opendir(dir_path.c_str()))) { 93 while ((ent = readdir(dir))) {
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
SystemUtil.java | 66 // List order matters. ConfigurationFactory caller uses first dir with test config. 72 File dir = new File(testCasesDirName); local 73 if (dir.exists() && dir.isDirectory()) { 74 CLog.d("Found test case dir: %s", testCasesDirName); 75 testCasesDirs.add(dir); 98 File dir = new File(var); local 99 if (dir.exists() && dir.isDirectory()) { 100 CLog.d("Found test case dir: %s for %s.", dir.getAbsolutePath(), envVariable.name()) [all...] |
TarUtil.java | 59 CLog.i(String.format("Untaring %s to dir %s.", inputFile.getAbsolutePath(), 111 CLog.i(String.format("Ungzipping %s to dir %s.", inputFile.getAbsolutePath(), 174 File dir = FileUtil.createTempDir("tmp_tar_dir"); local 177 ungzipLog = TarUtil.unGzip(targzFile, dir); 178 List<File> logs = TarUtil.unTar(ungzipLog, dir); 191 FileUtil.recursiveDelete(dir);
|
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
StorageTest.java | 179 final File dir = makeUniqueFile(getContext().getCacheDir()); local 180 dir.mkdir(); 181 assertFalse(sm.isCacheBehaviorGroup(dir)); 182 assertFalse(sm.isCacheBehaviorTombstone(dir)); 193 final File dir = makeUniqueFile(getContext().getCacheDir()); local 194 dir.mkdir(); 195 sm.setCacheBehaviorGroup(dir, true); 196 assertTrue(sm.isCacheBehaviorGroup(dir)); 207 final File dir = makeUniqueFile(getContext().getCacheDir()); local 208 dir.mkdir() [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_AlbumsTest.java | 170 File dir = path.getParentFile(); local 171 dir.mkdirs();
|
/cts/tests/tests/security/src/android/security/cts/ |
BrowserTest.java | 219 File dir = file.getParentFile(); local 221 dir.setExecutable(true, false); 222 dir.setExecutable(true, true); 223 dir = dir.getParentFile(); 224 } while (dir != null);
|
/development/apps/Development/src/com/android/development/ |
CacheAbuser.java | 58 File dir = new File(cacheDir, quick ? "quick" : "slow"); local 59 mBaseDir = new File(dir, Long.toString(System.currentTimeMillis())); 70 File dir = new File(mBaseDir, Long.toString(dir1num)); local 71 File file = new File(dir, Long.toString(dir2num)); 74 dir.mkdirs();
|