Searched refs:exists (Results 1 - 25 of 56) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/io/
H A DOldAndroidFileTest.java30 assertTrue(file.exists());
32 assertFalse(file.exists());
H A DFileTest.java62 // 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 DOldFileTest.java159 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 DOpenRandomFileTest.java38 assertTrue(file.exists());
51 assertTrue(file.exists());
H A DFileTest.java302 // 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 DFileURLMapper.java70 * Checks whether the file identified by the URL exists.
72 public boolean exists () { method in class:FileURLMapper
78 return f.exists();
H A DMetaIndex.java164 if (indexFile.exists()) {
/libcore/tzdata/update/src/test/libcore/tzdata/update/
H A DTzDataBundleInstallerTest.java53 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 DFileUtilsTest.java146 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 DConfigBundleTest.java123 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 DTzDataBundleInstaller.java50 if (oldTzDataDir.exists()) {
68 if (currentTzDataDir.exists()) {
86 if (dir.exists()) {
128 if (!file.exists()) {
H A DFileUtils.java57 * 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 DConfigBundle.java83 if (!entryFile.getParentFile().exists()) {
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java61 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 DCreateTzDataBundle.java46 if (!f.exists()) {
95 if (!file.exists()) {
/libcore/dex/src/main/java/com/android/dex/util/
H A DFileUtils.java50 if (!file.exists()) {
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java48 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 DFileSystemPreferences.java103 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 DProcessBuilderTest.java33 return new File(deviceSh).exists() ? deviceSh : desktopSh;
/libcore/dex/src/main/java/com/android/dex/
H A DTableOfContents.java196 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 DHprofBinaryToAscii.java55 if (!file.exists()) {
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DPreferencesTest.java93 assertTrue("Expected to exist " + userPrefs, userPrefs.exists());
/libcore/ojluni/src/main/java/javax/crypto/
H A DJceSecurity.java259 !exportJar.exists() || !importJar.exists()) {
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldFileHandlerTest.java425 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 DProcessTest.java41 boolean onDevice = new File("/system/bin").exists();

Completed in 1508 milliseconds

123