/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
MapModeTest.java | 24 * Tests for FileChannel.MapMode 29 * java.nio.channels.FileChannel.MapMode#PRIVATE,READONLY,READWRITE 32 assertNotNull(FileChannel.MapMode.PRIVATE); 33 assertNotNull(FileChannel.MapMode.READ_ONLY); 34 assertNotNull(FileChannel.MapMode.READ_WRITE); 36 assertFalse(FileChannel.MapMode.PRIVATE 37 .equals(FileChannel.MapMode.READ_ONLY)); 38 assertFalse(FileChannel.MapMode.PRIVATE 39 .equals(FileChannel.MapMode.READ_WRITE)); 40 assertFalse(FileChannel.MapMode.READ_ONL [all...] |
FileChannelTest.java | 44 import java.nio.channels.FileChannel.MapMode; [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
FileChannel.java | 83 * {@code MapMode} defines file mapping mode constants. 85 public static class MapMode { 89 public static final MapMode PRIVATE = new MapMode("PRIVATE"); 94 public static final MapMode READ_ONLY = new MapMode("READ_ONLY"); 99 public static final MapMode READ_WRITE = new MapMode("READ_WRITE"); 107 private MapMode(String displayName) { 280 public abstract MappedByteBuffer map(FileChannel.MapMode mode [all...] |
/libcore/luni/src/main/java/java/nio/ |
MappedByteBuffer.java | 19 import java.nio.channels.FileChannel.MapMode; 30 * {@link java.nio.channels.FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long) FileChannel.map}. 40 final MapMode mapMode; 42 MappedByteBuffer(MemoryBlock block, int capacity, MapMode mapMode) { 44 this.mapMode = mapMode; 105 if (mapMode == MapMode.READ_WRITE) [all...] |
MemoryBlock.java | 23 import java.nio.channels.FileChannel.MapMode; 94 public static MemoryBlock mmap(FileDescriptor fd, long offset, long size, MapMode mapMode) throws IOException { 105 if (mapMode == MapMode.PRIVATE) { 108 } else if (mapMode == MapMode.READ_ONLY) { 111 } else { // mapMode == MapMode.READ_WRITE
|
FileChannelImpl.java | 216 public final MappedByteBuffer map(MapMode mapMode, long position, long size) throws IOException { 218 if (mapMode == null) { 219 throw new NullPointerException("mapMode == null"); 226 if (mapMode != MapMode.READ_ONLY) { 253 MemoryBlock block = MemoryBlock.mmap(fd, alignment, size + offset, mapMode); 254 return new DirectByteBuffer(block, (int) size, offset, (mapMode == MapMode.READ_ONLY), mapMode); [all...] |
DirectByteBuffer.java | 20 import java.nio.channels.FileChannel.MapMode; 32 protected DirectByteBuffer(MemoryBlock block, int capacity, int offset, boolean isReadOnly, MapMode mapMode) { 33 super(block, capacity, mapMode); 52 DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); 79 return new DirectByteBuffer(block, remaining(), offset + position, isReadOnly, mapMode);
|
/art/runtime/base/unix_file/ |
mapped_file.h | 83 enum MapMode { 90 MapMode map_mode_;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
MappedByteBufferTest.java | 31 import java.nio.channels.FileChannel.MapMode; 47 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc 77 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); 104 mmb = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); 113 mmb = fc.map(FileChannel.MapMode.PRIVATE, 0, fc.size()); 130 MappedByteBuffer mmbRead = fileChannelRead.map(MapMode.READ_ONLY, 0, 137 MappedByteBuffer resultRead = fileChannelR.map(MapMode.READ_ONLY, 0, 149 FileChannel.MapMode.READ_WRITE, 0, fileChannelReadWrite.size()); 157 FileChannel.MapMode.READ_WRITE, 0, fileChannelRW.size()); 174 MappedByteBuffer mmbRead = fileChannelRead.map(MapMode.READ_ONLY, 0 [all...] |
/external/guava/guava/src/com/google/common/io/ |
Files.java | 41 import java.nio.channels.FileChannel.MapMode; 594 * {@link FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}. 605 * @see FileChannel#map(MapMode, long, long) 609 return map(file, MapMode.READ_ONLY); 614 * {@link FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)} 615 * using the requested {@link MapMode}. 627 * @see FileChannel#map(MapMode, long, long) 630 public static MappedByteBuffer map(File file, MapMode mode) 640 * {@link FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)} 641 * using the requested {@link MapMode} [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
DictDecoder.java | 161 buffer = inStream.getChannel().map(FileChannel.MapMode.READ_ONLY, 217 buffer = raFile.getChannel().map(FileChannel.MapMode.READ_WRITE, 0, file.length());
|
BinaryDictDecoderUtils.java | 605 FileChannel.MapMode.READ_ONLY, 0, file.length());
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
ChannelHelper.java | 33 ByteBuffer bb = ((FileChannel) channel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) channel).position(), size);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
FreeBox.java | 98 data = ((FileChannel) readableByteChannel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) readableByteChannel).position(), contentSize);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
MediaDataBox.java | 170 cacheEntry = fileChannel.map(FileChannel.MapMode.READ_ONLY, startPosition + offset, Math.min(BUFFER_SIZE, contentSize - offset));
|
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfoDB.java | 23 import java.nio.channels.FileChannel.MapMode;
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
AbstractBox.java | 109 content = ((FileChannel) readableByteChannel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) readableByteChannel).position(), contentSize);
|
/libcore/luni/src/test/java/libcore/java/nio/ |
BufferTest.java | 33 MappedByteBuffer result = ch.map(FileChannel.MapMode.READ_WRITE, 0, size); 45 MappedByteBuffer mbb = raf.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, 65536); 71 .map(FileChannel.MapMode.READ_WRITE, 65536, 131072);
|
/libcore/benchmarks/src/benchmarks/regression/ |
ByteBufferBenchmark.java | 68 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BlobCache.java | 272 mIndexBuffer = mIndexChannel.map(FileChannel.MapMode.READ_WRITE,
|
/packages/apps/Mms/src/com/android/mms/util/ |
BlobCache.java | 271 mIndexBuffer = mIndexChannel.map(FileChannel.MapMode.READ_WRITE,
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
ExifInterface.java | 37 import java.nio.channels.FileChannel.MapMode; [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
ExifInterface.java | 37 import java.nio.channels.FileChannel.MapMode; [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
ExifInterface.java | 37 import java.nio.channels.FileChannel.MapMode; [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
ExifInterface.java | 37 import java.nio.channels.FileChannel.MapMode; [all...] |