Home
last modified time | relevance | path

Searched refs:fileChannel (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DInterpreterTest.java76 FileChannel fileChannel = in testRunWithMappedByteBufferModel() local
79 fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in testRunWithMappedByteBufferModel()
91 fileChannel.close(); in testRunWithMappedByteBufferModel()
97 FileChannel fileChannel = in testRunWithDirectByteBufferModel() local
99 ByteBuffer byteBuffer = ByteBuffer.allocateDirect((int) fileChannel.size()); in testRunWithDirectByteBufferModel()
101 fileChannel.read(byteBuffer); in testRunWithDirectByteBufferModel()
113 fileChannel.close(); in testRunWithDirectByteBufferModel()
119 FileChannel fileChannel = in testRunWithInvalidByteBufferModel() local
121 ByteBuffer byteBuffer = ByteBuffer.allocate((int) fileChannel.size()); in testRunWithInvalidByteBufferModel()
123 fileChannel.read(byteBuffer); in testRunWithInvalidByteBufferModel()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
DMediaDataBox.java59 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/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/
DOvicValidator.java98 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/ovic/src/test/java/org/tensorflow/ovic/
DOvicDetectorTest.java83 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()
DOvicClassifierTest.java168 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local
170 long declaredLength = fileChannel.size(); in loadModelFile()
171 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/tensorflow/tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/
DSmartReplyClient.java95 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local
98 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DTFLiteImageClassifier.java70 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local
73 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
DTFLiteObjectDetectionAPIModel.java83 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local
86 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
DSpeechActivity.java110 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local
113 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/tensorflow/tensorflow/lite/java/ovic/demo/app/
DOvicBenchmarkerActivity.java103 FileChannel fileChannel = modelInputStream.getChannel(); in initializeTest() local
106 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.java219 FileChannel fileChannel = inputStream.getChannel(); in loadModelFile() local
222 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); in loadModelFile()
/external/tensorflow/tensorflow/lite/g3doc/models/image_classification/
Dandroid.md138 FileInputStream(fileDescriptor.getFileDescriptor()); FileChannel fileChannel =
141 fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);