Home
last modified time | relevance | path

Searched refs:READ_ONLY (Results 1 – 6 of 6) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMapModeTest.java33 assertNotNull(FileChannel.MapMode.READ_ONLY); in test_PRIVATE_READONLY_READWRITE()
37 .equals(FileChannel.MapMode.READ_ONLY)); in test_PRIVATE_READONLY_READWRITE()
40 assertFalse(FileChannel.MapMode.READ_ONLY in test_PRIVATE_READONLY_READWRITE()
49 assertNotNull(FileChannel.MapMode.READ_ONLY.toString()); in test_toString()
DFileChannelTest.java1729 writeOnlyFileChannel.map(MapMode.READ_ONLY, 0, CONTENT_LENGTH); in test_map_AbnormalMode()
1780 readOnlyFileChannel.map(MapMode.READ_ONLY, 0, CONTENT_LENGTH + 1); in test_map_AbnormalMode()
1786 readOnlyFileChannel.map(MapMode.READ_ONLY, 2, CONTENT_LENGTH - 1); in test_map_AbnormalMode()
1800 readOnlyFileChannel.map(MapMode.READ_ONLY, 2, CONTENT_LENGTH - 1); in test_map_AbnormalMode()
1821 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.READ_ONLY, in test_map_ReadOnly_CloseChannel()
1847 mapped = readOnlyFileChannel.map(MapMode.READ_ONLY, 0, CONTENT_LENGTH); in test_map_ReadOnly()
1860 mapped = readWriteFileChannel.map(MapMode.READ_ONLY, 0, CONTENT in test_map_ReadOnly()
1876 MappedByteBuffer mapped = readOnlyFileChannel.map(MapMode.READ_ONLY, in test_map_ReadOnly_NonZeroPosition()
1991 MappedByteBuffer mapped = readOnlyFileChannel.map(MapMode.READ_ONLY, in test_map_LargePosition()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DMappedByteBufferTest.java47 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc in testasIntBuffer()
77 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); in testEmptyBuffer()
130 MappedByteBuffer mmbRead = fileChannelRead.map(MapMode.READ_ONLY, 0, in test_force()
137 MappedByteBuffer resultRead = fileChannelR.map(MapMode.READ_ONLY, 0, in test_force()
174 MappedByteBuffer mmbRead = fileChannelRead.map(MapMode.READ_ONLY, 0, in test_load()
/libcore/ojluni/src/main/java/java/nio/channels/
DFileChannel.java795 public static final MapMode READ_ONLY field in FileChannel.MapMode
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileChannelImpl.java545 MappedByteBuffer dbb = map(MapMode.READ_ONLY, position, size); in transferToTrustedChannel()
666 MappedByteBuffer bb = src.map(MapMode.READ_ONLY, p, size); in transferFromFileChannel()
904 if (mode == MapMode.READ_ONLY) in map()
911 if ((mode != MapMode.READ_ONLY) && !writable) in map()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java67 MappedByteBuffer mbb = raf.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, 65536); in testDevZeroMap()