/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidFileTest.java | 30 assertTrue(file.exists()); 32 assertFalse(file.exists());
|
H A D | FileTest.java | 62 // exists can see it, the code for coping with long paths (shared by all methods) works. 65 assertTrue(createDeepStructure(base).exists()); 79 assertFalse(source.exists()); 80 assertTrue(target.exists()); 83 assertTrue(source.exists()); 104 assertFalse(f.exists()); 244 // So we get false for a directory that already exists... 245 assertTrue(base.exists()); 249 assertFalse(a.exists()); 251 assertTrue(a.exists()); [all...] |
H A D | OldFileTest.java | 159 assertTrue(dir.exists()); 162 assertTrue(subDir.exists()); 178 assertFalse(dir.exists()); 179 assertFalse(subDir.exists());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | OpenRandomFileTest.java | 38 assertTrue(file.exists()); 51 assertTrue(file.exists());
|
H A D | FileTest.java | 302 // canRead only returns if the file exists so cannot be fully tested. 317 // canWrite only returns if the file exists so cannot be fully tested. 366 // If the directory exists, add one to the directory number 368 if (dir.exists()) { 407 // Test for creating a file that already exists. 429 // not IOE when the file exists (in this case it exists and is 559 // If the directory exists, add one to the directory number 562 if (dir.exists()) { 619 assertTrue("Directory does not exist", dir.exists()); [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FileURLMapper.java | 70 * Checks whether the file identified by the URL exists. 72 public boolean exists () { method in class:FileURLMapper 78 return f.exists();
|
H A D | MetaIndex.java | 164 if (indexFile.exists()) {
|
/libcore/tzdata/update/src/test/libcore/tzdata/update/ |
H A D | TzDataBundleInstallerTest.java | 53 if (testInstallDir.exists()) { 56 if (tempDir.exists()) { 168 assertTrue(testInstallDir.exists()); 171 assertTrue(currentTzDataDir.exists()); 174 assertTrue(checksumFile.exists()); 178 assertTrue(versionFile.exists()); 181 assertTrue(bionicFile.exists()); 184 assertTrue(icuFile.exists()); 188 assertFalse(workingDir.exists()); 193 assertFalse(currentTzDataDir.exists()); [all...] |
H A D | FileUtilsTest.java | 146 File exists = new File(dir, "exists"); 147 assertTrue(exists.mkdir()); 148 assertTrue(exists.setReadable(true /* readable */, true /* ownerOnly */)); 149 assertTrue(exists.setExecutable(true /* readable */, true /* ownerOnly */)); 150 FileUtils.ensureDirectoriesExist(exists, true /* makeWorldReadable */); 151 assertDirExistsAndIsAccessible(exists, false /* requireWorldReadable */); 154 assertFalse(subDir.exists()); 184 assertFalse(toCreate.exists()); 193 assertTrue(exists1.exists()); [all...] |
H A D | ConfigBundleTest.java | 123 assertTrue(f + " file expected to exist", f.exists() && f.isFile()); 129 assertTrue(dir + " directory expected to exist", dir.exists() && dir.isDirectory());
|
/libcore/tzdata/update/src/main/libcore/tzdata/update/ |
H A D | TzDataBundleInstaller.java | 50 if (oldTzDataDir.exists()) { 68 if (currentTzDataDir.exists()) { 86 if (dir.exists()) { 128 if (!file.exists()) {
|
H A D | FileUtils.java | 57 * Makes sure a directory exists. If it doesn't exist, it is created. Parent directories are 76 if (!dirToCheck.exists()) { 84 throw new IOException(dirToCheck + " exists but is not a directory"); 129 if (file.exists()) { 174 if (!file.exists()) {
|
H A D | ConfigBundle.java | 83 if (!entryFile.getParentFile().exists()) {
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
H A D | FileURLConnection.java | 61 boolean exists = false; field in class:FileURLConnection 86 throw new FileNotFoundException(filename + " exists, but is not accessible"); 111 exists = file.exists(); 114 if (!initializedHeaders || !exists) {
|
/libcore/tzdata/tools/src/main/libcore/tzdata/update/tools/ |
H A D | CreateTzDataBundle.java | 46 if (!f.exists()) { 95 if (!file.exists()) {
|
/libcore/dex/src/main/java/com/android/dex/util/ |
H A D | FileUtils.java | 50 if (!file.exists()) {
|
/libcore/support/src/test/java/tests/support/resource/ |
H A D | Support_Resources.java | 48 if (resource.exists()) { 101 if (!f.exists()) { 128 if (!dest.exists()) { 197 if (!dest.exists()) {
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
H A D | FileSystemPreferences.java | 103 if (!userRootDir.exists()) { 122 if (!userRootModFile.exists()) 165 if (!systemRootDir.exists()) { 171 if (!systemRootDir.exists()) { 192 if (!systemRootModFile.exists() && isSystemRootWritable) 479 newNode = !dir.exists(); 509 newNode = !dir.exists(); 617 if (!dir.exists() && !dir.mkdirs()) 692 if (!dir.exists()) 784 } else if (lastSyncTime != 0 && !dir.exists()) { [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ProcessBuilderTest.java | 33 return new File(deviceSh).exists() ? deviceSh : desktopSh;
|
/libcore/dex/src/main/java/com/android/dex/ |
H A D | TableOfContents.java | 196 if (section.exists()) { 203 if (section.exists()) { 222 public boolean exists() { method in class:TableOfContents.Section
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | HprofBinaryToAscii.java | 55 if (!file.exists()) {
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | PreferencesTest.java | 93 assertTrue("Expected to exist " + userPrefs, userPrefs.exists());
|
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | JceSecurity.java | 259 !exportJar.exists() || !importJar.exists()) {
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
H A D | OldFileHandlerTest.java | 425 assertFalse(file.exists()); 432 assertFalse(file.exists()); 440 assertFalse(file.exists());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ProcessTest.java | 41 boolean onDevice = new File("/system/bin").exists();
|