HomeSort by relevance Sort by last modified time
    Searched refs:MapMode (Results 1 - 25 of 56) sorted by null

1 2 3

  /libcore/harmony-tests/src/test/java/org/apache/harmony/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...]
  /external/guava/guava-tests/test/com/google/common/io/
PackageSanityTests.java 22 import java.nio.channels.FileChannel.MapMode;
36 setDefault(MapMode.class, MapMode.READ_ONLY);
FilesTest.java 42 import java.nio.channels.FileChannel.MapMode;
630 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE);
650 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE, size);
666 Files.map(file, MapMode.READ_WRITE, (long) Integer.MAX_VALUE + 1);
  /libcore/ojluni/src/main/java/java/nio/channels/
FileChannel.java 612 public static class MapMode {
617 public static final MapMode READ_ONLY
618 = new MapMode("READ_ONLY");
623 public static final MapMode READ_WRITE
624 = new MapMode("READ_WRITE");
629 public static final MapMode PRIVATE
630 = new MapMode("PRIVATE");
634 private MapMode(String name) {
659 * ({@link MapMode#READ_ONLY MapMode.READ_ONLY}) </p></li
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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...]
  /frameworks/base/tools/layoutlib/bridge/src/libcore/io/
MemoryMappedFile_Delegate.java 30 import java.nio.channels.FileChannel.MapMode;
105 mMappedByteBuffer = file.getChannel().map(MapMode.READ_ONLY, 0, mSize);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DictDecoder.java 149 buffer = inStream.getChannel().map(FileChannel.MapMode.READ_ONLY,
205 buffer = raFile.getChannel().map(FileChannel.MapMode.READ_WRITE, 0, file.length());
  /external/ImageMagick/MagickCore/
blob.h 35 } MapMode;
blob-private.h 142 *MapBlob(int,const MapMode,const MagickOffsetType,const size_t),
cache-private.h 158 MapMode
  /external/guava/guava/src/com/google/common/io/
Files.java 48 import java.nio.channels.FileChannel.MapMode;
599 * {@link FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}.
610 * @see FileChannel#map(MapMode, long, long)
615 return map(file, MapMode.READ_ONLY);
620 * {@link FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}
621 * using the requested {@link MapMode}.
633 * @see FileChannel#map(MapMode, long, long)
636 public static MappedByteBuffer map(File file, MapMode mode)
648 * {@link FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}
649 * using the requested {@link MapMode}
    [all...]
  /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);
  /frameworks/base/graphics/java/android/graphics/
FontFamily.java 75 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize);
  /libcore/benchmarks/src/benchmarks/regression/
ByteBufferBulkBenchmark.java 62 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.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);
  /libcore/ojluni/src/main/java/sun/nio/ch/
FileChannelImpl.java 492 MappedByteBuffer dbb = map(MapMode.READ_ONLY, position, size);
613 MappedByteBuffer bb = src.map(MapMode.READ_ONLY, p, size);
839 public MappedByteBuffer map(MapMode mode, long position, long size)
852 if (mode == MapMode.READ_ONLY)
854 else if (mode == MapMode.READ_WRITE)
856 else if (mode == MapMode.PRIVATE)
859 if ((mode != MapMode.READ_ONLY) && !writable)
    [all...]
  /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));
  /frameworks/base/core/java/android/text/
Hyphenator.java 121 MappedByteBuffer buf = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
  /external/jetty/src/java/org/eclipse/jetty/io/nio/
DirectNIOBuffer.java 83 _buf = fc.map(FileChannel.MapMode.READ_ONLY, 0, file.length());
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/
AbstractBox.java 109 content = ((FileChannel) readableByteChannel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) readableByteChannel).position(), contentSize);
  /frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/loaders/
LoaderRaw.java 114 MappedByteBuffer mbb = inputStream.getChannel().map(FileChannel.MapMode.READ_ONLY,
  /external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
ZipResourceFile.java 369 FileChannel.MapMode.READ_ONLY, dirOffset, dirSize);
  /packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/
SampleCache.java 249 sample.data.put(mRaf.getChannel().map(FileChannel.MapMode.READ_ONLY,
  /libcore/luni/src/test/java/libcore/java/nio/
BufferTest.java 55 MappedByteBuffer result = ch.map(FileChannel.MapMode.READ_WRITE, 0, size);
67 MappedByteBuffer mbb = raf.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, 65536);
93 .map(FileChannel.MapMode.READ_WRITE, 65536, 131072);
    [all...]

Completed in 1158 milliseconds

1 2 3