/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | RandomAccessFileTest.java | 42 java.io.RandomAccessFile raf; field in RandomAccessFileTest 60 RandomAccessFile raf = new java.io.RandomAccessFile(f, "rw"); in test_ConstructorLjava_io_FileLjava_lang_String() local 61 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 62 raf.seek(0); in test_ConstructorLjava_io_FileLjava_lang_String() 63 assertEquals("Incorrect int read/written", 20, raf.read()); in test_ConstructorLjava_io_FileLjava_lang_String() 64 raf.close(); in test_ConstructorLjava_io_FileLjava_lang_String() 66 raf = new java.io.RandomAccessFile(f, "rwd"); in test_ConstructorLjava_io_FileLjava_lang_String() 67 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String() 68 raf.seek(0); in test_ConstructorLjava_io_FileLjava_lang_String() 69 assertEquals("Incorrect int read/written", 20, raf.read()); in test_ConstructorLjava_io_FileLjava_lang_String() [all …]
|
D | OpenRandomFileTest.java | 45 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenNonEmptyFile() local 46 raf.close(); in testOpenNonEmptyFile() 55 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenEmptyFile() local 56 raf.close(); in testOpenEmptyFile()
|
D | FileDescriptorTest.java | 36 RandomAccessFile raf = null; in test_sync() local 54 raf = new RandomAccessFile(f, "r"); in test_sync() 55 fd = raf.getFD(); in test_sync() 64 if (raf != null) { in test_sync() 65 raf.close(); in test_sync()
|
D | FileTest.java | 1163 RandomAccessFile raf = new RandomAccessFile(f, "rwd"); in test_length() local 1164 raf.write(0x41); in test_length()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldRandomAccessFileTest.java | 37 java.io.RandomAccessFile raf; field in OldRandomAccessFileTest 53 RandomAccessFile raf = null; in test_ConstructorLjava_io_FileLjava_lang_String() local 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() 74 raf.close(); in test_ConstructorLjava_io_FileLjava_lang_String() 76 raf = new java.io.RandomAccessFile(tmpFile, "rws"); in test_ConstructorLjava_io_FileLjava_lang_String() 80 raf.close(); in test_ConstructorLjava_io_FileLjava_lang_String() 82 raf = new java.io.RandomAccessFile(tmpFile, "rw"); in test_ConstructorLjava_io_FileLjava_lang_String() 86 raf.close(); in test_ConstructorLjava_io_FileLjava_lang_String() 90 raf = new java.io.RandomAccessFile(tmpFile, "i"); in test_ConstructorLjava_io_FileLjava_lang_String() [all …]
|
D | RandomAccessFileTest.java | 45 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) { in testSeekTooLarge() argument 47 raf.seek(Long.MAX_VALUE); in testSeekTooLarge() 55 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) { in testSetLengthTooLarge() argument 57 raf.setLength(Long.MAX_VALUE); in testSetLengthTooLarge() 65 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) { in testSetLength64() argument 66 raf.setLength(0); in testSetLength64() 69 raf.setLength(moreThanFourGig); in testSetLength64() 84 RandomAccessFile raf = new RandomAccessFile(file, "rw"); in testCloseRaf_sameChannelReturned() local 86 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseRaf_sameChannelReturned() 87 raf.close(); in testCloseRaf_sameChannelReturned() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBulkBenchmark.java | 59 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer() local 60 raf.setLength(size); in newBuffer() 61 FileChannel fc = raf.getChannel(); in newBuffer()
|
D | ByteBufferBenchmark.java | 69 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer() local 70 raf.setLength(8192*8); in newBuffer() 71 FileChannel fc = raf.getChannel(); in newBuffer()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | BlockGuardTest.java | 173 RandomAccessFile raf = new RandomAccessFile(f, "rw"); in testRandomAccessFile() local 176 raf.seek(0); in testRandomAccessFile() 179 raf.length(); in testRandomAccessFile() 182 raf.read(); in testRandomAccessFile() 185 raf.write(42); in testRandomAccessFile() 188 raf.close(); in testRandomAccessFile()
|
D | InMemoryDexClassLoaderTest.java | 106 try (RandomAccessFile raf = new RandomAccessFile(file, "r")) { in readFileToByteBufferDirect() argument 111 done += raf.getChannel().read(buffer); in readFileToByteBufferDirect()
|
/libcore/luni/src/main/java/libcore/net/ |
D | android.mime.types | 55 image/x-fuji-raf raf
|