Home
last modified time | relevance | path

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

12

/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/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/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;
652 return map(file, MapMode.READ_ONLY); in map()
673 public static MappedByteBuffer map(File file, MapMode mode) throws IOException { in map()
697 public static MappedByteBuffer map(File file, MapMode mode, long size) throws IOException { in map()
702 private static MappedByteBuffer mapInternal(File file, MapMode mode, long size) in mapInternal()
710 closer.register(new RandomAccessFile(file, mode == MapMode.READ_ONLY ? "r" : "rw")); in mapInternal()
/external/guava/android/guava/src/com/google/common/io/
DFiles.java48 import java.nio.channels.FileChannel.MapMode;
652 return map(file, MapMode.READ_ONLY); in map()
673 public static MappedByteBuffer map(File file, MapMode mode) throws IOException { in map()
697 public static MappedByteBuffer map(File file, MapMode mode, long size) throws IOException { in map()
702 private static MappedByteBuffer mapInternal(File file, MapMode mode, long size) in mapInternal()
710 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/skia/src/gpu/dawn/
DGrDawnBuffer.cpp118 fBuffer.MapAsync(wgpu::MapMode::Write, 0, 0, callback_write, this); in mapWriteAsync()
122 fBuffer.MapAsync(wgpu::MapMode::Read, 0, 0, callback_read, this); in mapReadAsync()
/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
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/core/
DTaskJniUtils.java145 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);
/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/src/test/java/org/tensorflow/lite/
DTestUtils.java40 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in getTestFileAsBuffer()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/common/
DFileUtil.java164 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadMappedFile()
/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/jacoco/org.jacoco.core/src/org/jacoco/core/data/
DMappedExecutionData.java82 probeBuffer = channel.map(FileChannel.MapMode.READ_WRITE, channel.position(), byteCount); in createMemoryMappedProbeArray()
/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.java107 model = fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in initializeTest()

12