Searched refs:READ_ONLY (Results 1 – 7 of 7) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | MapModeTest.java | 33 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()
|
D | FileChannelTest.java | 1631 writeOnlyFileChannel.map(MapMode.READ_ONLY, 0, CONTENT_LENGTH); in test_map_AbnormalMode() 1682 readOnlyFileChannel.map(MapMode.READ_ONLY, 0, CONTENT_LENGTH + 1); in test_map_AbnormalMode() 1688 readOnlyFileChannel.map(MapMode.READ_ONLY, 2, CONTENT_LENGTH - 1); in test_map_AbnormalMode() 1702 readOnlyFileChannel.map(MapMode.READ_ONLY, 2, CONTENT_LENGTH - 1); in test_map_AbnormalMode() 1723 MappedByteBuffer mapped = readWriteFileChannel.map(MapMode.READ_ONLY, in test_map_ReadOnly_CloseChannel() 1749 mapped = readOnlyFileChannel.map(MapMode.READ_ONLY, 0, CONTENT_LENGTH); in test_map_ReadOnly() 1762 mapped = readWriteFileChannel.map(MapMode.READ_ONLY, 0, CONTENT in test_map_ReadOnly() 1778 MappedByteBuffer mapped = readOnlyFileChannel.map(MapMode.READ_ONLY, in test_map_ReadOnly_NonZeroPosition() 1893 MappedByteBuffer mapped = readOnlyFileChannel.map(MapMode.READ_ONLY, in test_map_LargePosition()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | MappedByteBufferTest.java | 47 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/luni/src/main/java/java/nio/ |
D | FileChannelImpl.java | 230 if (mapMode != MapMode.READ_ONLY) { in map() 258 … return new DirectByteBuffer(block, (int) size, offset, (mapMode == MapMode.READ_ONLY), mapMode); in map() 387 ByteBuffer buffer = fileSrc.map(MapMode.READ_ONLY, filePosition, count); in transferFrom() 446 buffer = map(MapMode.READ_ONLY, position, count); in transferTo()
|
D | MemoryBlock.java | 114 } else if (mapMode == MapMode.READ_ONLY) { in mmap()
|
/libcore/luni/src/main/java/java/nio/channels/ |
D | FileChannel.java | 94 public static final MapMode READ_ONLY = new MapMode("READ_ONLY"); field in FileChannel.MapMode
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 61 MappedByteBuffer mbb = raf.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, 65536); in testDevZeroMap()
|