Home
last modified time | relevance | path

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

12

/external/guava/guava-tests/test/com/google/common/io/
DPackageSanityTests.java22 import java.nio.channels.FileChannel.MapMode;
37 setDefault(MapMode.class, MapMode.READ_ONLY); in PackageSanityTests()
DFilesTest.java36 import java.nio.channels.FileChannel.MapMode;
574 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE); in testMap_readWrite()
594 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE, size); in testMap_readWrite_creates()
610 Files.map(file, MapMode.READ_WRITE, (long) Integer.MAX_VALUE + 1); in testMap_readWrite_max_value_plus_1()
/external/guava/android/guava-tests/test/com/google/common/io/
DPackageSanityTests.java22 import java.nio.channels.FileChannel.MapMode;
37 setDefault(MapMode.class, MapMode.READ_ONLY); in PackageSanityTests()
DFilesTest.java36 import java.nio.channels.FileChannel.MapMode;
574 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE); in testMap_readWrite()
594 MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE, size); in testMap_readWrite_creates()
610 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/android/guava/src/com/google/common/io/
DFiles.java48 import java.nio.channels.FileChannel.MapMode;
640 return map(file, MapMode.READ_ONLY); in map()
661 public static MappedByteBuffer map(File file, MapMode mode) throws IOException { in map()
685 public static MappedByteBuffer map(File file, MapMode mode, long size) throws IOException { in map()
690 private static MappedByteBuffer mapInternal(File file, MapMode mode, long size) in mapInternal()
698 closer.register(new RandomAccessFile(file, mode == MapMode.READ_ONLY ? "r" : "rw")); in mapInternal()
/external/guava/guava/src/com/google/common/io/
DFiles.java48 import java.nio.channels.FileChannel.MapMode;
640 return map(file, MapMode.READ_ONLY); in map()
661 public static MappedByteBuffer map(File file, MapMode mode) throws IOException { in map()
685 public static MappedByteBuffer map(File file, MapMode mode, long size) throws IOException { in map()
690 private static MappedByteBuffer mapInternal(File file, MapMode mode, long size) in mapInternal()
698 closer.register(new RandomAccessFile(file, mode == MapMode.READ_ONLY ? "r" : "rw")); in mapInternal()
/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/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DTestUtils.java33 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in getTestFileAsBuffer()
/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.h34 } MapMode; typedef
Dblob-private.h143 *MapBlob(int,const MapMode,const MagickOffsetType,const size_t),
Dcache-private.h160 MapMode
Dcache.c122 OpenPixelCache(Image *,const MapMode,ExceptionInfo *),
123 OpenPixelCacheOnDisk(CacheInfo *,const MapMode),
139 *SetPixelCacheNexusPixels(const CacheInfo *magick_restrict,const MapMode,
3482 const MapMode mode) in OpenPixelCacheOnDisk()
3613 static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, in OpenPixelCache()
4996 const MapMode mode) in PrefetchPixelCacheNexusPixels()
5010 const CacheInfo *magick_restrict cache_info,const MapMode mode, in SetPixelCacheNexusPixels()
/external/tensorflow/tensorflow/lite/experimental/support/java/src/java/org/tensorflow/lite/support/common/
DFileUtil.java93 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadMappedFile()
/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/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.java172 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/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/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.java231 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/flatbuffers/tests/
DJavaTest.java242 … new RandomAccessFile("javatest.bin", "rw").getChannel().map(FileChannel.MapMode.READ_WRITE, 0, ca… in TestByteBufferFactory()

12