HomeSort by relevance Sort by last modified time
    Searched refs:MapMode (Results 1 - 25 of 58) 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     [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/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...]
  /frameworks/support/compat/java/android/support/v4/graphics/
TypefaceCompatUtil.java 84 return channel.map(FileChannel.MapMode.READ_ONLY, 0, size);
101 return channel.map(FileChannel.MapMode.READ_ONLY, 0, size);
  /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);
  /libcore/benchmarks/src/benchmarks/regression/
ByteBufferBulkBenchmark.java 62 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
ByteBufferBenchmark.java 72 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 545 MappedByteBuffer dbb = map(MapMode.READ_ONLY, position, size);
666 MappedByteBuffer bb = src.map(MapMode.READ_ONLY, p, size);
888 public MappedByteBuffer map(MapMode mode, long position, long size)
904 if (mode == MapMode.READ_ONLY)
906 else if (mode == MapMode.READ_WRITE)
908 else if (mode == MapMode.PRIVATE)
911 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/graphics/java/android/graphics/
FontFamily.java 100 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize);
  /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/base/core/java/android/text/
Hyphenator.java 146 MappedByteBuffer buf = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
  /frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
LoaderRaw.java 114 MappedByteBuffer mbb = inputStream.getChannel().map(FileChannel.MapMode.READ_ONLY,
  /packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/
SampleChunk.java 377 sample.data.put(mAccessFile.getChannel().map(FileChannel.MapMode.READ_ONLY,
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BlobCache.java 272 mIndexBuffer = mIndexChannel.map(FileChannel.MapMode.READ_WRITE,

Completed in 1496 milliseconds

1 2 3