/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | RandomAccessFileTest.java | 26 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 …]
|
D | OpenRandomFileTest.java | 22 import java.io.RandomAccessFile; 45 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenNonEmptyFile() 55 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenEmptyFile()
|
D | FileDescriptorTest.java | 25 import java.io.RandomAccessFile; 36 RandomAccessFile raf = null; in test_sync() 54 raf = new RandomAccessFile(f, "r"); in test_sync()
|
D | FileTest.java | 27 import java.io.RandomAccessFile; 1168 RandomAccessFile raf = new RandomAccessFile(f, "rwd"); in test_length()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | RandomAccessFileTest.java | 22 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 …]
|
D | OldRandomAccessFileTest.java | 26 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 …]
|
D | FileDescriptorTest.java | 26 import java.io.RandomAccessFile; 35 new RandomAccessFile(f, "r").getFD().sync(); in testReadOnlyFileDescriptorSync()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | BlockGuardTest.java | 27 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()
|
D | InMemoryDexClassLoaderTest.java | 24 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/ |
D | MappedByteBufferTest.java | 24 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()
|
D | ByteBufferTest.java | 20 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/ |
D | Zip64SizeTest.java | 145 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/ |
D | ByteBufferBulkBenchmark.java | 22 import java.io.RandomAccessFile; 59 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
|
D | ByteBufferBenchmark.java | 22 import java.io.RandomAccessFile; 69 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
|
/libcore/ojluni/src/test/java/io/FileInputStream/ |
D | ReadXBytes.java | 39 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/ |
D | FileChannelLockingTest.java | 24 import java.io.RandomAccessFile; 69 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFiles[2], in setUp()
|
D | FileLockTest.java | 25 import java.io.RandomAccessFile; 63 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFile, "rw"); in setUp()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | FdsanTest.java | 22 import java.io.RandomAccessFile; 54 try (RandomAccessFile fis = new RandomAccessFile("/dev/null", "r")) { in testRandomAccessFile()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | RandomAccessFile.java | 32 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/ |
D | RandomAccessFile.java | 71 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/ |
D | FileChannelTest.java | 29 import java.io.RandomAccessFile; 290 fc = new RandomAccessFile(tmp, "rw").getChannel(); in createFileContainingBytes()
|
D | OldFileChannelTest.java | 24 import java.io.RandomAccessFile; 94 readWriteFileChannel = new RandomAccessFile(fileOfReadWriteFileChannel, in setUp()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoUtils.java | 108 } else if (owner instanceof java.io.RandomAccessFile) { in generateFdOwnerId()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipFile.java | 35 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/ |
D | BufferTest.java | 21 import java.io.RandomAccessFile; 54 RandomAccessFile raf = new RandomAccessFile(f, "rw"); in allocateMapped()
|