HomeSort by relevance Sort by last modified time
    Searched refs:fileChannel (Results 1 - 5 of 5) sorted by null

  /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...]
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/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...]
  /libcore/luni/src/main/java/java/nio/channels/
Channels.java 226 if (channel instanceof FileChannel) {
227 FileChannel fileChannel = (FileChannel) channel;
228 long result = fileChannel.size() - fileChannel.position();
  /frameworks/base/core/java/android/speech/tts/
FileSynthesisCallback.java 28 import java.nio.channels.FileChannel;
49 private FileChannel mFileChannel;
55 FileSynthesisCallback(FileChannel fileChannel) {
56 mFileChannel = fileChannel;
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/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...]

Completed in 154 milliseconds