Home
last modified time | relevance | path

Searched refs:createNewFile (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java98 f.createNewFile(); in test_emptyFilename()
166 target.createNewFile(); // The RI won't follow a dangling symlink, which seems like a bug! in test_getCanonicalPath()
182 longer.createNewFile(); // The RI won't follow a dangling symlink, which seems like a bug! in test_getCanonicalPath()
201 assertFalse(f.createNewFile()); // EEXIST -> false in test_createNewFile()
202 assertFalse(f.getParentFile().createNewFile()); // EEXIST -> false, even if S_ISDIR in test_createNewFile()
204 new File(f, "poop").createNewFile(); // ENOTDIR -> throw in test_createNewFile()
209 new File("").createNewFile(); // ENOENT -> throw in test_createNewFile()
269 existsAsFile.createNewFile(); in test_mkdirs()
291 assertTrue(subFile.createNewFile()); in testFilesWithSurrogatePairs()
DOldRandomAccessFileTest.java65 tmpFile.createNewFile(); in test_ConstructorLjava_io_FileLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DPreferencesTest.java44 assertTrue(userLockFile.createNewFile()); in TestPreferencesFactory()
45 assertTrue(systemLockFile.createNewFile()); in TestPreferencesFactory()
81 assertTrue(userPrefs.createNewFile()); in testPreferencesClobbersExistingFiles()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java57 tmpFile.createNewFile(); in newBuffer()
DByteBufferBenchmark.java67 tmpFile.createNewFile(); in newBuffer()
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
DSerializationTest.java140 goldenFile.createNewFile(); in produceGoldenFiles()
459 goldenFile.createNewFile(); in createGoldenFile()
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java125 userRootModFile.createNewFile(); in setupUserRoot()
195 systemRootModFile.createNewFile(); in setupSystemRoot()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java349 f.createNewFile(); in test_createNewFile_EmptyString()
381 f1.createNewFile(); in test_createNewFile()
395 f1.createNewFile(); in test_createNewFile()
409 f2.createNewFile()); in test_createNewFile()
415 f1.createNewFile(); in test_createNewFile()
422 f1.createNewFile(); in test_createNewFile()
680 assertTrue(f1.createNewFile()); in test_equalsLjava_lang_Object()
DRandomAccessFileTest.java993 f.createNewFile(); in testRandomAccessFile_String_String()
/libcore/ojluni/src/main/java/java/io/
DFile.java942 public boolean createNewFile() throws IOException { in createNewFile() method in File
1862 if (!f.createNewFile()) in createTempFile()
/libcore/luni/src/test/java/libcore/java/net/
DOldURLClassLoaderTest.java223 tempFile1.createNewFile(); in test_findResource_String()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DPreferencesTest.java434 assertTrue(backendFile.createNewFile()); in testReadingFromBackendCache()
DAbstractPreferencesTest.java57 assertTrue(userLockFile.createNewFile()); in TestPreferencesFactory()
58 assertTrue(systemLockFile.createNewFile()); in TestPreferencesFactory()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DControlTest.java388 copy.createNewFile(); in copyFile()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java559 assertTrue(target.createNewFile()); in test_realpath()