/frameworks/base/core/java/android/speech/tts/ |
FileSynthesisCallback.java | 26 import java.nio.channels.FileChannel; 47 private FileChannel mFileChannel; 57 FileSynthesisCallback(@NonNull FileChannel fileChannel, 60 mFileChannel = fileChannel; 116 FileChannel fileChannel = null; 136 fileChannel = mFileChannel; 140 fileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH)); 158 FileChannel fileChannel = null [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
MediaDataBox.java | 29 import java.nio.channels.FileChannel; 58 // These fields are for the special case of a FileChannel as input. 59 private FileChannel fileChannel; 85 private static void transfer(FileChannel from, long position, long count, WritableByteChannel to) throws IOException { 97 if (fileChannel != null) { 99 transfer(fileChannel, startPosition - header.limit(), contentSize + header.limit(), writableByteChannel); 117 fileChannel.position(startPosition - header.limit()); 119 fileChannel.read(h2); 142 if (readableByteChannel instanceof FileChannel && (contentSize > AbstractBox.MEM_MAP_THRESHOLD)) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileLockTest.java | 24 import java.nio.channels.FileChannel; 34 private FileChannel readWriteChannel; 42 protected MockFileLock(FileChannel channel, long position, long size, 72 * @tests java.nio.channels.FileLock#FileLock(FileChannel, long, long, 176 FileChannel fileChannel = fout.getChannel(); 177 FileLock fileLock = fileChannel.lock(); 178 fileChannel.close(); 188 fileChannel = fout.getChannel(); 189 fileLock = fileChannel.lock() [all...] |
/frameworks/base/graphics/java/android/graphics/ |
FontFamily.java | 32 import java.nio.channels.FileChannel; 110 FileChannel fileChannel = file.getChannel(); 111 long fontSize = fileChannel.size(); 112 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize);
|
Typeface.java | 60 import java.nio.channels.FileChannel; 585 FileChannel channel = fis.getChannel(); 587 ByteBuffer buffer = channel.map(FileChannel.MapMode.READ_ONLY, 0, size); [all...] |
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
RandomAccessFileDataSource.java | 25 import java.nio.channels.FileChannel; 130 // FileChannel.read(ByteBuffer) reads up to dest.remaining(). Thus, we need to adjust 133 FileChannel fileChannel = mFile.getChannel(); 137 fileChannel.position(offsetInFile); 138 chunkSize = fileChannel.read(dest);
|
/external/tensorflow/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/ |
SmartReplyClient.java | 28 import java.nio.channels.FileChannel; 96 FileChannel fileChannel = inputStream.getChannel(); 99 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);
|
/external/tensorflow/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/ |
InterpreterTest.java | 23 import java.nio.channels.FileChannel; 54 FileChannel fileChannel = 55 (FileChannel) Files.newByteChannel(path, EnumSet.of(StandardOpenOption.READ)); 57 fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); 69 fileChannel.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
MappedByteBufferTest.java | 29 import java.nio.channels.FileChannel; 31 import java.nio.channels.FileChannel.MapMode; 46 FileChannel fc = fis.getChannel(); 47 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc 68 * Regression for HARMONY-6315 - FileChannel.map throws IOException 76 FileChannel fc = fis.getChannel(); 77 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); 104 mmb = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); 113 mmb = fc.map(FileChannel.MapMode.PRIVATE, 0, fc.size()); 129 FileChannel fileChannelRead = fileInputStream.getChannel() [all...] |
/external/tensorflow/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ |
ImageClassifier.java | 33 import java.nio.channels.FileChannel; 165 FileChannel fileChannel = inputStream.getChannel(); 168 return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
FileIOInterruptTest.java | 30 import java.nio.channels.FileChannel; 194 FileChannel fileInputChannel = fis.getChannel(); 226 FileChannel fileInputChannel = fis.getChannel(); 263 FileChannel fileInputChannel = fis.getChannel(); 271 // Now close the FileChannel to see what happens. 294 FileChannel fileChannel = new FileInputStream(fifoFile).getChannel(); 296 ChannelReader channelReader = new ChannelReader(fileChannel, method); 326 FileChannel fileOutputChannel = new FileOutputStream(fifoFile).getChannel(); 358 FileChannel fileInputChannel = fos.getChannel() [all...] |
/cts/tests/camera/src/android/hardware/camera2/cts/ |
DngCreatorTest.java | 54 import java.nio.channels.FileChannel; 381 FileChannel fileChannel = null; 425 fileChannel = new FileOutputStream(jpegFilePath).getChannel(); 427 fileChannel.write(jPlane); 428 fileChannel.close(); 450 if (fileChannel != null) { 451 fileChannel.close(); [all...] |
/frameworks/base/core/java/android/provider/ |
FontsContract.java | 57 import java.nio.channels.FileChannel; 673 final FileChannel fileChannel = fis.getChannel(); 674 final long size = fileChannel.size(); 675 buffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, size); [all...] |
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
ZFile.java | 52 import java.nio.channels.FileChannel; [all...] |
/prebuilts/tools/common/m2/repository/io/netty/netty-codec-http/4.1.0.CR3/ |
netty-codec-http-4.1.0.CR3.jar | |
/prebuilts/tools/common/m2/repository/io/netty/netty-codec-http/4.1.3.Final/ |
netty-codec-http-4.1.3.Final.jar | |
/prebuilts/tools/common/m2/repository/io/netty/netty-codec-http/4.1.6.Final/ |
netty-codec-http-4.1.6.Final.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.0/ |
apksig-2.3.0.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.0-alpha1/ |
apksig-2.3.0-alpha1.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.0-beta1/ |
apksig-2.3.0-beta1.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.0-beta2/ |
apksig-2.3.0-beta2.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.0-beta3/ |
apksig-2.3.0-beta3.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.0-beta4/ |
apksig-2.3.0-beta4.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.1/ |
apksig-2.3.1.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/apksig/2.3.3/ |
apksig-2.3.3.jar | |