Home
last modified time | relevance | path

Searched refs:RandomAccessFile (Results 1 – 25 of 29) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DRandomAccessFileTest.java26 import java.io.RandomAccessFile;
42 java.io.RandomAccessFile raf;
60 RandomAccessFile raf = new java.io.RandomAccessFile(f, "rw"); in test_ConstructorLjava_io_FileLjava_lang_String()
66 raf = new java.io.RandomAccessFile(f, "rwd"); in test_ConstructorLjava_io_FileLjava_lang_String()
72 raf = new java.io.RandomAccessFile(f, "rws"); in test_ConstructorLjava_io_FileLjava_lang_String()
81 raf = new RandomAccessFile(f, "rws"); in test_ConstructorLjava_io_FileLjava_lang_String()
86 raf = new RandomAccessFile(f, "rwd"); in test_ConstructorLjava_io_FileLjava_lang_String()
98 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_ConstructorLjava_lang_StringLjava_lang_String()
102 raf = new java.io.RandomAccessFile(fileName, "rwd"); in test_ConstructorLjava_lang_StringLjava_lang_String()
106 raf = new java.io.RandomAccessFile(fileName, "rws"); in test_ConstructorLjava_lang_StringLjava_lang_String()
[all …]
DOpenRandomFileTest.java22 import java.io.RandomAccessFile;
45 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenNonEmptyFile()
55 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenEmptyFile()
DFileDescriptorTest.java25 import java.io.RandomAccessFile;
36 RandomAccessFile raf = null; in test_sync()
54 raf = new RandomAccessFile(f, "r"); in test_sync()
DFileTest.java27 import java.io.RandomAccessFile;
1168 RandomAccessFile raf = new RandomAccessFile(f, "rwd"); in test_length()
/libcore/luni/src/test/java/libcore/java/io/
DRandomAccessFileTest.java22 import java.io.RandomAccessFile;
45 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) { in testSetLengthTooLarge()
55 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) { in testSetLength64()
67 try (RandomAccessFile accessFile = new RandomAccessFile(file, "rw")) { in testRandomAccessFileHasCleanupFinalizer()
74 RandomAccessFile raf = new RandomAccessFile(file, "rw"); in testCloseRaf_sameChannelReturned()
84 RandomAccessFile raf = new RandomAccessFile(file, "rw"); in testCloseRaf_channelIsClosed()
94 RandomAccessFile raf = new RandomAccessFile(file, "rw"); in testCloseFileChannel_sameChannelReturned()
105 RandomAccessFile raf = new RandomAccessFile(file, "rw"); in testCloseFileChannel_returnedFileChannelIsClosed()
117 RandomAccessFile raf = new RandomAccessFile(file, "rw"); in testCloseRafBeforeGetChannel_returnChannelWithCloseFdAfterClose()
129 new RandomAccessFile(file, "rw"); in createRandomAccessFile()
[all …]
DOldRandomAccessFileTest.java26 import java.io.RandomAccessFile;
37 java.io.RandomAccessFile raf;
53 RandomAccessFile raf = null; in test_ConstructorLjava_io_FileLjava_lang_String()
57 raf = new java.io.RandomAccessFile(tmpFile, "r"); 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()
107 RandomAccessFile raf = null; in test_ConstructorLjava_lang_StringLjava_lang_String()
111 raf = new java.io.RandomAccessFile(fileName, "r"); in test_ConstructorLjava_lang_StringLjava_lang_String()
[all …]
DFileDescriptorTest.java26 import java.io.RandomAccessFile;
35 new RandomAccessFile(f, "r").getFD().sync(); in testReadOnlyFileDescriptorSync()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBlockGuardTest.java27 import java.io.RandomAccessFile;
173 RandomAccessFile raf = new RandomAccessFile(f, "rw"); in testRandomAccessFile()
215 try (RandomAccessFile ras = new RandomAccessFile(f, "rw")) { in testUnbufferedIO()
226 try (RandomAccessFile ras = new RandomAccessFile(f, "rw")) { in testUnbufferedIO()
239 try (RandomAccessFile ras = new RandomAccessFile(f, "rw")) { in testUnbufferedIO()
252 try (RandomAccessFile ras = new RandomAccessFile(f, "rw")) { in testUnbufferedIO()
261 try (RandomAccessFile ras = new RandomAccessFile(f, "rw")) { in testUnbufferedIO()
274 try (RandomAccessFile ras = new RandomAccessFile(f, "rw")) { in testUnbufferedIO()
DInMemoryDexClassLoaderTest.java24 import java.io.RandomAccessFile;
106 try (RandomAccessFile raf = new RandomAccessFile(file, "r")) { in readFileToByteBufferDirect()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DMappedByteBufferTest.java24 import java.io.RandomAccessFile;
146 RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw"); in test_force()
154 RandomAccessFile random = new RandomAccessFile(tmpFile, "rw"); in test_force()
179 RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw"); in test_load()
215 RandomAccessFile f = new RandomAccessFile(tmp, "rw"); in test_position()
DByteBufferTest.java20 import java.io.RandomAccessFile;
2075 try (RandomAccessFile tempRAF = new RandomAccessFile(tempFile.toFile(), "rw")) { in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer()
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DZip64SizeTest.java145 try (RandomAccessFile largeFile = new RandomAccessFile(LARGE_FILE, "rw"); in createFiles()
146 RandomAccessFile smallFile = new RandomAccessFile(SMALL_FILE, "rw")) { in createFiles()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java22 import java.io.RandomAccessFile;
59 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
DByteBufferBenchmark.java22 import java.io.RandomAccessFile;
69 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
/libcore/ojluni/src/test/java/io/FileInputStream/
DReadXBytes.java39 import java.io.RandomAccessFile;
86 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) { in main()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelLockingTest.java24 import java.io.RandomAccessFile;
69 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFiles[2], in setUp()
DFileLockTest.java25 import java.io.RandomAccessFile;
63 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFile, "rw"); in setUp()
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java22 import java.io.RandomAccessFile;
54 try (RandomAccessFile fis = new RandomAccessFile("/dev/null", "r")) { in testRandomAccessFile()
/libcore/ojluni/annotations/hiddenapi/java/io/
DRandomAccessFile.java32 public class RandomAccessFile implements java.io.DataOutput, java.io.DataInput, java.io.Closeable { class
34 public RandomAccessFile(java.lang.String name, java.lang.String mode) in RandomAccessFile() method in RandomAccessFile
39 public RandomAccessFile(java.io.File file, java.lang.String mode) in RandomAccessFile() method in RandomAccessFile
/libcore/ojluni/src/main/java/java/io/
DRandomAccessFile.java71 public class RandomAccessFile implements DataOutput, DataInput, Closeable { class
151 public RandomAccessFile(String name, String mode) in RandomAccessFile() method in RandomAccessFile
233 public RandomAccessFile(File file, String mode) in RandomAccessFile() method in RandomAccessFile
248 public RandomAccessFile(File file, String mode, boolean setCloExecFlag) in RandomAccessFile() method in RandomAccessFile
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileChannelTest.java29 import java.io.RandomAccessFile;
290 fc = new RandomAccessFile(tmp, "rw").getChannel(); in createFileContainingBytes()
DOldFileChannelTest.java24 import java.io.RandomAccessFile;
94 readWriteFileChannel = new RandomAccessFile(fileOfReadWriteFileChannel, in setUp()
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java108 } else if (owner instanceof java.io.RandomAccessFile) { in generateFdOwnerId()
/libcore/ojluni/src/main/java/java/util/zip/
DZipFile.java35 import java.io.RandomAccessFile;
1228 private RandomAccessFile zfile; // zfile of the underlying zip file
1427 this.zfile = new RandomAccessFile(key.file, "r", /* setCloExecFlag= */ true); in Source()
1433 this.zfile = new RandomAccessFile(key.file, "r", /* setCloExecFlag= */ true); in Source()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java21 import java.io.RandomAccessFile;
54 RandomAccessFile raf = new RandomAccessFile(f, "rw"); in allocateMapped()

12