Searched refs:tempFile (Results 1 – 11 of 11) sorted by relevance
| /libcore/luni/src/test/java/libcore/dalvik/system/ |
| D | ZipPathValidatorTest.java | 76 final File tempFile = File.createTempFile("smdc", "zip"); in testZipFileCallback() local 78 FileOutputStream tempFileStream = new FileOutputStream(tempFile); in testZipFileCallback() 86 ZipFile zipFile = new ZipFile(tempFile); in testZipFileCallback() 95 tempFile.delete(); in testZipFileCallback() 138 final File tempFile = File.createTempFile("smdc", "zip"); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs() local 140 FileOutputStream tempFileStream = new FileOutputStream(tempFile); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs() 148 ZipFile zipFile = new ZipFile(tempFile, StandardCharsets.US_ASCII); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs() 151 tempFile.delete(); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs()
|
| /libcore/luni/src/test/java/libcore/java/util/zip/ |
| D | OldZipFileTest.java | 146 File tempFile = File.createTempFile("OldZipFileTest", "zip"); in setUp() local 147 tempFileName = tempFile.getAbsolutePath(); in setUp() 149 FileOutputStream fos = new FileOutputStream(tempFile); in setUp() 154 zfile = new ZipFile(tempFile); in setUp()
|
| D | ZipFileTest.java | 115 File tempFile = createTemporaryZipFile(); in readResource() local 117 FileOutputStream fos = new FileOutputStream(tempFile)) { in readResource() 127 return tempFile; in readResource()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
| D | ZipFileTest.java | 418 final File tempFile = File.createTempFile("smdc", "zip"); in test_sameNamesDifferentCase() local 422 FileOutputStream tempFileStream = new FileOutputStream(tempFile); in test_sameNamesDifferentCase() 436 ZipFile zipFile = new ZipFile(tempFile); in test_sameNamesDifferentCase() 441 tempFile.delete(); in test_sameNamesDifferentCase() 449 File tempFile = File.createTempFile("OldZipFileTest", "zip"); in setUp() local 450 tempFileName = tempFile.getAbsolutePath(); in setUp() 454 FileOutputStream fos = new FileOutputStream(tempFile); in setUp() 459 zfile = new ZipFile(tempFile); in setUp()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
| D | FileLockTest.java | 61 File tempFile = File.createTempFile("testing", "tmp"); in setUp() local 62 tempFile.deleteOnExit(); in setUp() 63 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFile, "rw"); in setUp()
|
| /libcore/dom/src/test/java/org/w3c/domts/ |
| D | DOMTest.java | 163 File tempFile = File.createTempFile("domts", ".xml"); in createTempURI() local 169 Object uri = method.invoke(tempFile, (Class<?>) null); in createTempURI() 176 URL url = tempFile.toURL(); in createTempURI()
|
| /libcore/ojluni/src/test/java/nio/Buffer/ |
| D | BasicByte.java | 547 Path tempFile = Files.createTempFile("mbb", null); in createMappedBuffer() local 548 tempFile.toFile().deleteOnExit(); in createMappedBuffer() 549 Files.write(tempFile, contents); in createMappedBuffer() 550 try (FileChannel fc = FileChannel.open(tempFile)) { in createMappedBuffer()
|
| D | Basic-X.java.template | 547 Path tempFile = Files.createTempFile("mbb", null); 548 tempFile.toFile().deleteOnExit(); 549 Files.write(tempFile, contents); 550 try (FileChannel fc = FileChannel.open(tempFile)) {
|
| /libcore/luni/src/test/java/libcore/java/io/ |
| D | FileTest.java | 415 File tempFile = File.createTempFile("foo", ".bar"); in testJavaIoTmpdirMutable() local 416 assertTrue(tempFile.getAbsolutePath().contains(directoryName)); in testJavaIoTmpdirMutable()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
| D | ByteBufferTest.java | 2070 Path tempFile = Files.createTempFile("mmap", "test"); in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer() local 2071 Files.write(tempFile, data); in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer() 2075 try (RandomAccessFile tempRAF = new RandomAccessFile(tempFile.toFile(), "rw")) { in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer() 2084 Files.delete(tempFile); in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
| D | ScannerTest.java | 385 File tempFile = File.createTempFile("harmony", "test"); in test_ConstructorLjava_nio_channels_ReadableByteChannel() local 386 tempFile.deleteOnExit(); in test_ConstructorLjava_nio_channels_ReadableByteChannel() 387 FileOutputStream os = new FileOutputStream(tempFile); in test_ConstructorLjava_nio_channels_ReadableByteChannel() 391 FileInputStream is = new FileInputStream(tempFile); in test_ConstructorLjava_nio_channels_ReadableByteChannel()
|