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

  /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...]
  /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/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...]
  /frameworks/base/core/java/android/speech/tts/
FileSynthesisCallback.java 25 import java.nio.channels.FileChannel;
46 private FileChannel mFileChannel;
57 FileSynthesisCallback(FileChannel fileChannel, UtteranceProgressDispatcher dispatcher,
60 mFileChannel = fileChannel;
110 FileChannel fileChannel = null;
132 fileChannel = mFileChannel;
136 fileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH));
154 FileChannel fileChannel = null
    [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();
  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DngCreatorTest.java 51 import java.nio.channels.FileChannel;
290 FileChannel fileChannel = null;
370 fileChannel = new FileOutputStream(jpegFilePath).getChannel();
372 fileChannel.write(jPlane);
373 fileChannel.close();
469 if (fileChannel != null) {
470 fileChannel.close();
  /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...]

Completed in 2085 milliseconds