Home
last modified time | relevance | path

Searched refs:MapMode (Results 1 – 25 of 31) sorted by relevance

12

/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/bsdiff/
DRandomAccessObject.java358 FileChannel.MapMode mapMode; in RandomAccessMmapObject()
360 mapMode = FileChannel.MapMode.READ_ONLY; in RandomAccessMmapObject()
362 mapMode = FileChannel.MapMode.READ_WRITE; in RandomAccessMmapObject()
396 FileChannel.MapMode mapMode; in RandomAccessMmapObject()
398 mapMode = FileChannel.MapMode.READ_ONLY; in RandomAccessMmapObject()
400 mapMode = FileChannel.MapMode.READ_WRITE; in RandomAccessMmapObject()
445 FileChannel.MapMode mapMode; in RandomAccessMmapObject()
447 mapMode = FileChannel.MapMode.READ_ONLY; in RandomAccessMmapObject()
449 mapMode = FileChannel.MapMode.READ_WRITE; in RandomAccessMmapObject()
/external/guava/guava-tests/test/com/google/common/io/
DPackageSanityTests.java22 import java.nio.channels.FileChannel.MapMode;
36 setDefault(MapMode.class, MapMode.READ_ONLY); in PackageSanityTests()
DFilesTest.java42 import java.nio.channels.FileChannel.MapMode;
630 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE); in testMap_readWrite()
650 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE, size); in testMap_readWrite_creates()
666 Files.map(file, MapMode.READ_WRITE, (long) Integer.MAX_VALUE + 1); in testMap_readWrite_max_value_plus_1()
/external/turbine/java/com/google/turbine/zip/
DZip.java31 import java.nio.channels.FileChannel.MapMode;
166 MappedByteBuffer eocd = chan.map(MapMode.READ_ONLY, eocdOffset, ENDHDR); in ZipIterable()
173 eocd = chan.map(MapMode.READ_ONLY, start, (size - start)); in ZipIterable()
199 MappedByteBuffer zip64eocd = chan.map(MapMode.READ_ONLY, zip64eocdOffset, ZIP64_ENDHDR); in ZipIterable()
209 this.cd = chan.map(MapMode.READ_ONLY, eocdOffset - cdsize, cdsize); in ZipIterable()
289 MapMode.READ_ONLY, in getBytes()
300 fc = chan.map(MapMode.READ_ONLY, offset + LOCHDR + nameLength + locExtLength, size); in getBytes()
/external/guava/guava/src/com/google/common/io/
DFiles.java48 import java.nio.channels.FileChannel.MapMode;
615 return map(file, MapMode.READ_ONLY); in map()
636 public static MappedByteBuffer map(File file, MapMode mode) in map()
667 public static MappedByteBuffer map(File file, MapMode mode, long size) in map()
675 new RandomAccessFile(file, mode == MapMode.READ_ONLY ? "r" : "rw")); in map()
684 private static MappedByteBuffer map(RandomAccessFile raf, MapMode mode, in map()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSharedMemory.java13 import java.nio.channels.FileChannel.MapMode;
58 return randomAccessFile.getChannel().map(MapMode.READ_WRITE, offset, length); in map()
/external/brotli/java/org/brotli/dec/
DSetDictionaryTest.java67 ByteBuffer dictionary = dictionaryChannel.map(FileChannel.MapMode.READ_ONLY, 0, 122784).load(); in testSetDictionary()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DChannelHelper.java33 …ByteBuffer bb = ((FileChannel) channel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) channel)… in readFully()
/external/ImageMagick/MagickCore/
Dblob.h33 } MapMode; typedef
Dblob-private.h142 *MapBlob(int,const MapMode,const MagickOffsetType,const size_t),
Dcache-private.h157 MapMode
Dcache.c121 OpenPixelCache(Image *,const MapMode,ExceptionInfo *),
122 OpenPixelCacheOnDisk(CacheInfo *,const MapMode),
138 *SetPixelCacheNexusPixels(const CacheInfo *,const MapMode,
3507 const MapMode mode) in OpenPixelCacheOnDisk()
3638 static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, in OpenPixelCache()
5004 const MapMode mode) in PrefetchPixelCacheNexusPixels()
5018 const MapMode mode,const RectangleInfo *region, in SetPixelCacheNexusPixels()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DFreeBox.java98 …data = ((FileChannel) readableByteChannel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) reada… in parse()
/external/tensorflow/tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/
DSmartReplyClient.java98 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/
DOvicValidator.java101 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/tensorflow/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/
DOvicDetectorTest.java86 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
DOvicClassifierTest.java171 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
DMediaDataBox.java170 …cacheEntry = fileChannel.map(FileChannel.MapMode.READ_ONLY, startPosition + offset, Math.min(BUFFE… in getContent()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DTFLiteImageClassifier.java73 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
DTFLiteObjectDetectionAPIModel.java86 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
DSpeechActivity.java113 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/
DAbstractBox.java109 …content = ((FileChannel) readableByteChannel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) re… in parse()
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DInterpreterTest.java79 fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in testRunWithMappedByteBufferModel()
325 fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in testTurnOnNNAPI()
/external/tensorflow/tensorflow/lite/java/ovic/demo/app/
DOvicBenchmarkerActivity.java106 model = fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in initializeTest()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DImageClassifier.java222 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()

12