Home
last modified time | relevance | path

Searched refs:raf (Results 1 – 11 of 11) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DRandomAccessFileTest.java42 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 …]
DOpenRandomFileTest.java45 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()
DFileDescriptorTest.java36 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()
DFileTest.java1163 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/
DOldRandomAccessFileTest.java37 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 …]
DRandomAccessFileTest.java45 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/
DByteBufferBulkBenchmark.java59 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer() local
60 raf.setLength(size); in newBuffer()
61 FileChannel fc = raf.getChannel(); in newBuffer()
DByteBufferBenchmark.java69 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/
DBlockGuardTest.java173 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()
DInMemoryDexClassLoaderTest.java106 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/
Dandroid.mime.types55 image/x-fuji-raf raf