/libcore/luni/src/test/java/libcore/java/io/ |
D | FileTest.java | 73 assertTrue(createDeepStructure(base).exists()); in test_longPath() 87 assertFalse(source.exists()); in test_longReadlink() 88 assertTrue(target.exists()); in test_longReadlink() 91 assertTrue(source.exists()); in test_longReadlink() 112 assertFalse(f.exists()); in test_emptyFilename() 253 assertTrue(base.exists()); in test_mkdirs() 257 assertFalse(a.exists()); in test_mkdirs() 259 assertTrue(a.exists()); in test_mkdirs() 265 assertTrue(a.exists()); in test_mkdirs() 266 assertFalse(b.exists()); in test_mkdirs() [all …]
|
D | OldAndroidFileTest.java | 30 assertTrue(file.exists()); in testFile() 32 assertFalse(file.exists()); in testFile()
|
D | OldFileTest.java | 159 assertTrue(dir.exists()); in test_deleteOnExit() 162 assertTrue(subDir.exists()); in test_deleteOnExit() 178 assertFalse(dir.exists()); in test_deleteOnExit() 179 assertFalse(subDir.exists()); in test_deleteOnExit()
|
D | OldFileWriterTest.java | 147 if (f.exists()) in setUp()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FileURLMapper.java | 72 public boolean exists () { in exists() method in FileURLMapper 78 return f.exists(); in exists()
|
D | MetaIndex.java | 163 if (indexFile.exists()) { in registerDirectory()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | WatchServiceTest.java | 126 assertFalse(Files.exists(file)); in test_singleFile() 170 assertFalse(Files.exists(file)); in test_EventMask() 192 assertFalse(Files.exists(dirInDir)); in test_singleDirectory() 221 assertFalse(Files.exists(file)); in test_cancel() 251 assertFalse(Files.exists(file)); in test_removeTarget() 285 assertFalse(Files.exists(dir1file1)); in test_multipleKeys() 287 assertFalse(Files.exists(dir2file1)); in test_multipleKeys() 325 assertFalse(Files.exists(dir1file1)); in test_multipleServices() 327 assertFalse(Files.exists(dir2file1)); in test_multipleServices()
|
D | DefaultSecureDirectoryStreamTest.java | 269 assertFalse(Files.exists(path_f1)); in test_deleteFile() 305 assertFalse(Files.exists(path_dir2)); in test_deleteDirectory() 348 assertTrue(Files.exists(Paths.get(path_dir1.toString(), "f1"))); in test_move() 349 assertFalse(Files.exists(path_f1)); in test_move() 353 assertTrue(Files.exists(Paths.get(path_dir4.toString(), "path_dir2"))); in test_move() 354 assertFalse(Files.exists(path_dir2)); in test_move() 358 assertTrue(Files.exists(Paths.get(path_dir1.toString(), "path_dir2"))); in test_move() 359 assertFalse(Files.exists(path_dir3)); in test_move() 364 assertTrue(Files.exists(Paths.get(path_root.getParent().toString(), "path_dir1"))); in test_move() 365 assertFalse(Files.exists(path_dir1)); in test_move()
|
D | FilesTest.java | 124 assertFalse(Files.exists(filesSetup.getTestPath())); in test_createFile() 126 assertTrue(Files.exists(filesSetup.getTestPath())); in test_createFile() 131 Files.exists(unicodeFilePath); in test_createFile() 182 assertFalse(Files.exists(dirPath)); in test_createDirectories() 203 assertFalse(Files.exists(dirPath)); in test_createDirectories$Path$Attr()
|
D | DefaultFileSystemProviderTest.java | 403 assertFalse(Files.exists(newDirectory)); in test_createDirectory() 408 assertTrue(Files.exists(newDirectory)); in test_createDirectory() 421 assertTrue(Files.exists(unicodeFilePath)); in test_createDirectory() 540 assertFalse(Files.exists(filesSetup.getDataFilePath())); in test_delete() 554 assertFalse(Files.exists(dirPath)); in test_delete() 578 assertFalse(Files.exists(filesSetup.getDataFilePath())); in test_deleteIfExist() 587 assertFalse(Files.exists(dirPath)); in test_deleteIfExist() 636 assertTrue(Files.exists(newFile)); in test_copy() 710 assertTrue(Files.exists(dirPath2)); in test_copy_directory()
|
D | DefaultFileSystemProvider2Test.java | 96 assertFalse(Files.exists(filesSetup.getDataFilePath())); in test_move() 184 assertFalse(Files.exists(dirPath)); in test_move_directory() 411 assertTrue(Files.exists(filesSetup.getTestPath())); in test_newFileChannel() 420 assertFalse(Files.exists(filesSetup.getTestPath())); in test_newFileChannel() 424 assertTrue(Files.exists(filesSetup.getTestPath())); in test_newFileChannel()
|
D | Files2Test.java | 346 assertTrue(Files.exists(deviceFilePath)); in test_isRegularFile() 440 assertTrue(Files.exists(filesSetup.getDataFilePath())); in test_exists() 443 assertFalse(Files.exists(filesSetup.getTestPath())); in test_exists() 448 assertTrue(Files.exists(filesSetup.getTestPath())); in test_exists() 451 assertTrue(Files.exists(filesSetup.getTestPath(), LinkOption.NOFOLLOW_LINKS)); in test_exists() 455 assertTrue(Files.exists(filesSetup.getTestPath(), LinkOption.NOFOLLOW_LINKS)); in test_exists() 456 assertFalse(Files.exists(filesSetup.getTestPath())); in test_exists() 462 assertFalse(Files.exists(filesSetup.getTestPath())); in test_exists() 463 assertTrue(Files.exists(filesSetup.getTestPath(), LinkOption.NOFOLLOW_LINKS)); in test_exists() 469 Files.exists(null); in test_exists_NPE() [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | FileURLConnection.java | 61 boolean exists = false; field in FileURLConnection 111 exists = file.exists(); in initializeHeaders() 114 if (!initializedHeaders || !exists) { in initializeHeaders()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | FileSystemPreferences.java | 103 if (!userRootDir.exists()) { in setupUserRoot() 122 if (!userRootModFile.exists()) in setupUserRoot() 165 if (!systemRootDir.exists()) { in setupSystemRoot() 171 if (!systemRootDir.exists()) { in setupSystemRoot() 192 if (!systemRootModFile.exists() && isSystemRootWritable) in setupSystemRoot() 479 newNode = !dir.exists(); in FileSystemPreferences() 509 newNode = !dir.exists(); in FileSystemPreferences() 617 if (!dir.exists() && !dir.mkdirs()) in writeBackCache() 692 if (!dir.exists()) 784 } else if (lastSyncTime != 0 && !dir.exists()) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OpenRandomFileTest.java | 38 assertTrue(file.exists()); in testOpenNonEmptyFile() 51 assertTrue(file.exists()); in testOpenEmptyFile()
|
D | FileTest.java | 368 if (dir.exists()) { in test_createNewFile() 562 if (dir.exists()) { in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() 619 assertTrue("Directory does not exist", dir.exists()); in test_delete() 624 assertTrue("Error Creating File For Delete Test", f.exists()); in test_delete() 626 assertTrue("Directory Should Not Have Been Deleted.", dir.exists()); in test_delete() 628 assertTrue("File Was Not Deleted", !f.exists()); in test_delete() 630 assertTrue("Directory Was Not Deleted", !dir.exists()); in test_delete() 690 assertTrue("Exists returned true for non-existent file", !f.exists()); in test_exists() 693 assertTrue("Exists returned false file", f.exists()); in test_exists() 779 if (canonicalf2.exists()) { in test_getCanonicalFile() [all …]
|
/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 48 if (resource.exists()) { in getStream() 101 if (!f.exists()) { in copyFile() 128 if (!dest.exists()) { in copyLocalFileto() 197 if (!dest.exists()) { in copyLocalFileTo()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | CopyUpstreamFiles.java | 39 if (outputDir.toFile().exists()) { in run() 69 if (!toDir.toFile().exists()) { in copyFile()
|
D | Util.java | 43 if (!result.toFile().exists()) { in pathFromEnvOrThrow()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | ClassLoaderTestSupport.java | 79 assertFalse(destination.exists()); in copyResource()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipFileTest.java | 82 assertFalse(nonExistentFile.exists()); in test_FileNotFound()
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | PreferencesTest.java | 94 assertTrue("Expected to exist " + userPrefs, userPrefs.exists()); in testPreferencesClobbersExistingFiles()
|
/libcore/tools/testmapping/ |
D | save_logs.py | 124 if os.path.exists(destination):
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | CopyMoveHelper.java | 118 } else if (Files.exists(target)) in copyToForeignTarget()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldFileHandlerTest.java | 430 assertFalse(file.exists()); in testInvalidParams() 437 assertFalse(file.exists()); in testInvalidParams() 445 assertFalse(file.exists()); in testInvalidParams()
|