Home
last modified time | relevance | path

Searched refs:tmpFile (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java61 private File tmpFile; field in ChannelsTest
66 tmpFile = File.createTempFile("test","tmp"); in setUp()
67 tmpFile.deleteOnExit(); in setUp()
81 tmpFile.delete(); in tearDown()
87 this.fouts = new FileOutputStream(tmpFile); in writeFileSame()
129 this.fins = new FileInputStream(tmpFile); in testNewChannelInputStream_BufferNull()
156 this.fins = new FileInputStream(tmpFile); in testNewChannelInputStream()
207 this.fouts = new FileOutputStream(tmpFile); in testNewChannelOutputStream_BufNull()
231 this.fouts = new FileOutputStream(tmpFile); in testNewChannelOutputStream()
242 this.fins = new FileInputStream(tmpFile); in testNewChannelOutputStream()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DMappedByteBufferTest.java37 File tmpFile, emptyFile; field in MappedByteBufferTest
45 FileInputStream fis = new FileInputStream(tmpFile); in testasIntBuffer()
128 FileInputStream fileInputStream = new FileInputStream(tmpFile); in test_force()
135 FileInputStream inputStream = new FileInputStream(tmpFile); in test_force()
146 RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw"); in test_force()
154 RandomAccessFile random = new RandomAccessFile(tmpFile, "rw"); in test_force()
172 FileInputStream fileInputStream = new FileInputStream(tmpFile); in test_load()
179 RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw"); in test_load()
192 tmpFile = File.createTempFile("harmony", "test"); //$NON-NLS-1$//$NON-NLS-2$ in setUp()
193 tmpFile.deleteOnExit(); in setUp()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java56 File tmpFile = File.createTempFile("MappedByteBufferTest", ".tmp"); in newBuffer() local
57 tmpFile.createNewFile(); in newBuffer()
58 tmpFile.deleteOnExit(); in newBuffer()
59 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
DByteBufferBenchmark.java62 File tmpFile = new File("/sdcard/bm.tmp"); in newBuffer() local
65 tmpFile = File.createTempFile("MappedByteBufferTest", ".tmp"); in newBuffer()
67 tmpFile.createNewFile(); in newBuffer()
68 tmpFile.deleteOnExit(); in newBuffer()
69 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/
DCertBlocklistTest.java40 private File tmpFile; field in CertBlocklistTest
129 tmpFile = File.createTempFile("test", ""); in CertBlocklistTest()
132 tmpFile.delete(); in CertBlocklistTest()
138 tmpFile = File.createTempFile("test", ""); in setUp()
144 tmpFile.delete(); in tearDown()
192 return getPubkeyBlocklist(tmpFile.getCanonicalPath()); in getCurrentPubkeyBlocklist()
196 return getSerialBlocklist(tmpFile.getCanonicalPath()); in getCurrentSerialBlocklist()
200 FileOutputStream out = new FileOutputStream(tmpFile); in blocklistToFile()
250 CertBlocklist bl = new CertBlocklist(tmpFile.getCanonicalPath(), ""); in testLegitPubkeyIsntBlocklisted()
265 CertBlocklist bl = new CertBlocklist(tmpFile.getCanonicalPath(), ""); in testPubkeyIsBlocklisted()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DURLJarFile.java222 Path tmpFile = Files.createTempFile("jar_cache", null); in retrieve()
224 Files.copy(in, tmpFile, StandardCopyOption.REPLACE_EXISTING); in retrieve()
225 JarFile jarFile = new URLJarFile(tmpFile.toFile(), closeController); in retrieve()
226 tmpFile.toFile().deleteOnExit(); in retrieve()
230 Files.delete(tmpFile); in retrieve()
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java273 private final File tmpFile; field in FileSystemPreferences
468 tmpFile = new File(dir, "prefs.tmp"); in FileSystemPreferences()
478 tmpFile = new File(dir, "prefs.tmp"); in FileSystemPreferences()
506 tmpFile = new File(dir, "prefs.tmp"); in FileSystemPreferences()
620 try (FileOutputStream fos = new FileOutputStream(tmpFile)) { in writeBackCache()
623 if (!tmpFile.renameTo(prefsFile)) in writeBackCache()
625 tmpFile + " to " + prefsFile); in writeBackCache()
695 tmpFile.delete();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessManagerTest.java188 File tmpFile = File.createTempFile("testCloseNonStandardFds", ".txt"); in testCloseNonStandardFds() local
190 this.out = new FileOutputStream(tmpFile); in testCloseNonStandardFds()
200 tmpFile.delete(); in testCloseNonStandardFds()
/libcore/luni/src/test/java/libcore/java/io/
DOldRandomAccessFileTest.java54 File tmpFile = new File(fileName); in test_ConstructorLjava_io_FileLjava_lang_String() local
57 raf = new java.io.RandomAccessFile(tmpFile, "r"); in test_ConstructorLjava_io_FileLjava_lang_String()
65 tmpFile.createNewFile(); in test_ConstructorLjava_io_FileLjava_lang_String()
70 raf = new java.io.RandomAccessFile(tmpFile, "rwd"); in test_ConstructorLjava_io_FileLjava_lang_String()
76 raf = new java.io.RandomAccessFile(tmpFile, "rws"); in test_ConstructorLjava_io_FileLjava_lang_String()
82 raf = new java.io.RandomAccessFile(tmpFile, "rw"); in test_ConstructorLjava_io_FileLjava_lang_String()
90 raf = new java.io.RandomAccessFile(tmpFile, "i"); in test_ConstructorLjava_io_FileLjava_lang_String()
97 tmpFile.delete(); in test_ConstructorLjava_io_FileLjava_lang_String()
108 File tmpFile = new File(fileName); in test_ConstructorLjava_lang_StringLjava_lang_String() local
161 if (tmpFile.exists()) tmpFile.delete(); in test_ConstructorLjava_lang_StringLjava_lang_String()
DFileTest.java320 File tmpFile = File.createTempFile("testExistsOnSystem", ".tmp"); in testExistsOnSystem() local
325 stat(tmpFile.getAbsolutePath()); in testExistsOnSystem()
330 assertTrue(tmpFile.exists()); in testExistsOnSystem()
332 tmpFile.delete(); in testExistsOnSystem()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBlockGuardTest.java112 File tmpFile = File.createTempFile("inputFile", ".txt"); in testFileInputStream() local
113 try (FileOutputStream fos = new FileOutputStream(tmpFile)) { in testFileInputStream()
123 FileInputStream fis = new FileInputStream(tmpFile); in testFileInputStream()
137 tmpFile.delete(); in testFileInputStream()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileChannelTest.java264 File tmpFile = File.createTempFile("file", "txt"); in test_closeGuardSupport_open_without_append() local
265 try (FileInputStream fis = new FileInputStream(tmpFile)) { in test_closeGuardSupport_open_without_append()
273 File tmpFile = File.createTempFile("file", "txt"); in test_closeGuardSupport_open_with_append() local
274 try (FileOutputStream fos = new FileOutputStream(tmpFile)) { in test_closeGuardSupport_open_with_append()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileInputStreamTest.java250 File tmpFile = File.createTempFile("FileOutputStream", "tmp"); in test_read$BII() local
251 FileInputStream in = new FileInputStream(tmpFile); in test_read$BII()
259 tmpFile.delete(); in test_read$BII()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java94 File tmpFile = File.createTempFile("TestFileForScanner", ".tmp"); in test_ConstructorLjava_io_File() local
95 s = new Scanner(tmpFile); in test_ConstructorLjava_io_File()
98 assertTrue(tmpFile.delete()); in test_ConstructorLjava_io_File()
101 s = new Scanner(tmpFile); in test_ConstructorLjava_io_File()
106 tmpFile = File.createTempFile("TestFileForScanner", ".tmp"); in test_ConstructorLjava_io_File()
107 FileOutputStream fos = new FileOutputStream(tmpFile); in test_ConstructorLjava_io_File()
111 s = new Scanner(tmpFile); in test_ConstructorLjava_io_File()
113 tmpFile.delete(); in test_ConstructorLjava_io_File()
162 File tmpFile = File.createTempFile("TestFileForScanner", ".tmp"); in test_ConstructorLjava_io_FileLjava_lang_String() local
163 s = new Scanner(tmpFile, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
[all …]