/external/apache-commons-io/src/main/java/org/apache/commons/io/input/ |
D | BufferedFileChannelInputStream.java | 45 private final FileChannel fileChannel; field in BufferedFileChannelInputStream 87 fileChannel = FileChannel.open(path, StandardOpenOption.READ); in BufferedFileChannelInputStream() 129 fileChannel.close(); in close() 167 nRead = fileChannel.read(byteBuffer); in refill() 194 final long currentFilePosition = fileChannel.position(); in skipFromFileChannel() 195 final long size = fileChannel.size(); in skipFromFileChannel() 197 fileChannel.position(size); in skipFromFileChannel() 200 fileChannel.position(currentFilePosition + n); in skipFromFileChannel()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
D | MediaDataBox.java | 59 private FileChannel fileChannel; field in MediaDataBox 97 if (fileChannel != null) { in getBox() 99 …transfer(fileChannel, startPosition - header.limit(), contentSize + header.limit(), writableByteCh… in getBox() 117 fileChannel.position(startPosition - header.limit()); in checkStillOk() 119 fileChannel.read(h2); in checkStillOk() 143 this.fileChannel = ((FileChannel) readableByteChannel); in parse() 170 …cacheEntry = fileChannel.map(FileChannel.MapMode.READ_ONLY, startPosition + offset, Math.min(BUFFE… in getContent()
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | MappedByteBufferOpener.java | 51 FileChannel fileChannel = ((FileChannelConvertible) stream).toFileChannel(); in open() local 52 return fileChannel.map(MapMode.READ_ONLY, 0, fileChannel.size()); in open()
|
/external/downloader/src/main/java/com/google/android/downloader/ |
D | ProtoFileDownloadDestination.java | 62 FileChannel fileChannel = new RandomAccessFile(targetFile, "rw").getChannel(); in openByteChannel() local 64 fileChannel.position(offsetBytes); in openByteChannel() 65 return fileChannel; in openByteChannel()
|
D | SimpleFileDownloadDestination.java | 66 FileChannel fileChannel = new RandomAccessFile(targetFile, "rw").getChannel(); in openByteChannel() local 68 fileChannel.position(offsetBytes); in openByteChannel() 69 return fileChannel; in openByteChannel()
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | NioTest.java | 53 FileChannel fileChannel = FileChannel.open(file.toPath(), StandardOpenOption.WRITE); in writableChannelNioFile() local 54 testWritableByteChannel(fileChannel); in writableChannelNioFile() 81 FileChannel fileChannel = FileChannel.open(file.toPath(), StandardOpenOption.READ); in readableChannelNioFile() local 82 testReadableByteChannel(fileChannel); in readableChannelNioFile()
|
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/ |
D | OvicValidator.java | 98 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local 100 long declaredLength = fileChannel.size(); in loadModelFile() 101 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
|
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/ |
D | TestUtils.java | 37 try (FileChannel fileChannel = in getTestFileAsBuffer() argument 40 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in getTestFileAsBuffer()
|
/external/tensorflow/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/ |
D | OvicDetectorTest.java | 83 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local 85 long declaredLength = fileChannel.size(); in loadModelFile() 86 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
|
D | OvicClassifierTest.java | 169 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local 171 long declaredLength = fileChannel.size(); in loadModelFile() 172 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowNativeSystemFonts.java | 87 final FileChannel fileChannel = file.getChannel(); in mmap() local 88 final long fontSize = fileChannel.size(); in mmap() 89 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in mmap()
|
D | ShadowNativeTypeface.java | 100 FileChannel fileChannel = file.getChannel(); in makeFamilyFromParsed() local 101 long fontSize = fileChannel.size(); in makeFamilyFromParsed() 102 fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in makeFamilyFromParsed()
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/core/ |
D | TaskJniUtils.java | 142 FileChannel fileChannel = inputStream.getChannel(); 145 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/filefilter/ |
D | MagicNumberFileFilter.java | 296 try (FileChannel fileChannel = FileChannel.open(file)) { in accept() argument 298 final int read = fileChannel.read(byteBuffer); in accept()
|
/external/skia/platform_tools/android/apps/skottie/skottielib/src/main/java/org/skia/skottie/ |
D | SkottieAnimation.java | 81 FileChannel fileChannel = ((FileInputStream)is).getChannel(); in convertToByteBuffer() local 82 return fileChannel.map(FileChannel.MapMode.READ_ONLY, in convertToByteBuffer() 83 fileChannel.position(), fileChannel.size()); in convertToByteBuffer()
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/common/ |
D | FileUtil.java | 161 FileChannel fileChannel = inputStream.getChannel(); in loadMappedFile() local 164 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadMappedFile()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | IOUtilsTest.java | 1292 final FileChannel fileChannel = fileInputStream.getChannel(); in testSkip_ReadableByteChannel() local 1294 assertEquals(FILE_SIZE - 10, IOUtils.skip(fileChannel, FILE_SIZE - 10)); in testSkip_ReadableByteChannel() 1295 assertEquals(10, IOUtils.skip(fileChannel, 20)); in testSkip_ReadableByteChannel() 1296 assertEquals(0, IOUtils.skip(fileChannel, 10)); in testSkip_ReadableByteChannel() 1298 IOUtils.closeQuietly(fileChannel, fileInputStream); in testSkip_ReadableByteChannel() 1320 final FileChannel fileChannel = fileInputStream.getChannel(); in testSkipFully_ReadableByteChannel() local 1322 assertThrows(IllegalArgumentException.class, ()->IOUtils.skipFully(fileChannel, -1), in testSkipFully_ReadableByteChannel() 1324 IOUtils.skipFully(fileChannel, 0); in testSkipFully_ReadableByteChannel() 1325 IOUtils.skipFully(fileChannel, FILE_SIZE - 1); in testSkipFully_ReadableByteChannel() 1326 assertThrows(IOException.class, ()->IOUtils.skipFully(fileChannel, 2), in testSkipFully_ReadableByteChannel() [all …]
|
/external/tensorflow/tensorflow/lite/java/ovic/demo/app/ |
D | OvicBenchmarkerActivity.java | 104 FileChannel fileChannel = modelInputStream.getChannel(); in initializeTest() local 107 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/ |
D | ImageClassifier.java | 231 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local 234 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
|