Home
last modified time | relevance | path

Searched refs:randomAccessFile (Results 1 – 7 of 7) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DTeeAudioProcessor.java127 @Nullable private RandomAccessFile randomAccessFile; field in TeeAudioProcessor.WavFileAudioBufferSink
165 if (randomAccessFile != null) { in maybePrepareFile()
168 RandomAccessFile randomAccessFile = new RandomAccessFile(getNextOutputFileName(), "rw"); in maybePrepareFile() local
169 writeFileHeader(randomAccessFile); in maybePrepareFile()
170 this.randomAccessFile = randomAccessFile; in maybePrepareFile()
174 private void writeFileHeader(RandomAccessFile randomAccessFile) throws IOException { in writeFileHeader() argument
176 randomAccessFile.writeInt(WavUtil.RIFF_FOURCC); in writeFileHeader()
177 randomAccessFile.writeInt(-1); in writeFileHeader()
178 randomAccessFile.writeInt(WavUtil.WAVE_FOURCC); in writeFileHeader()
179 randomAccessFile.writeInt(WavUtil.FMT_FOURCC); in writeFileHeader()
[all …]
/external/xz-java/src/org/tukaani/xz/
DSeekableFileInputStream.java26 protected RandomAccessFile randomAccessFile; field in SeekableFileInputStream
32 randomAccessFile = new RandomAccessFile(file, "r"); in SeekableFileInputStream()
40 randomAccessFile = new RandomAccessFile(name, "r"); in SeekableFileInputStream()
47 public SeekableFileInputStream(RandomAccessFile randomAccessFile) { in SeekableFileInputStream() argument
48 this.randomAccessFile = randomAccessFile; in SeekableFileInputStream()
55 return randomAccessFile.read(); in read()
62 return randomAccessFile.read(buf); in read()
71 return randomAccessFile.read(buf, off, len); in read()
78 randomAccessFile.close(); in close()
85 return randomAccessFile.length(); in length()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSharedMemory.java55 try (RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw")) { in map() argument
58 return randomAccessFile.getChannel().map(MapMode.READ_WRITE, offset, length); in map()
84 RandomAccessFile randomAccessFile = new RandomAccessFile(sharedMemoryFile, "rw"); in nCreate() local
85 randomAccessFile.setLength(0); in nCreate()
86 randomAccessFile.setLength(size); in nCreate()
88 filesByFd.put(randomAccessFile.getFD(), sharedMemoryFile); in nCreate()
89 return randomAccessFile.getFD(); in nCreate()
DShadowLinux.java56 RandomAccessFile randomAccessFile = new RandomAccessFile(path, modeToString(mode)); in open() local
57 return randomAccessFile.getFD(); in open()
DShadowParcel.java847 RandomAccessFile randomAccessFile = in openFileDescriptor() local
849 return randomAccessFile.getFD(); in openFileDescriptor()
/external/downloader/src/test/java/com/google/android/downloader/
DMockWebServerUrlEngineTestHelper.java78 RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); in executeRequest_normalResponse_succeeds() local
79 FileChannel channel = randomAccessFile.getChannel(); in executeRequest_normalResponse_succeeds()
122 RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); in executeRequest_responseThrottled_succeeds() local
123 FileChannel channel = randomAccessFile.getChannel(); in executeRequest_responseThrottled_succeeds()
170 RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); in executeRequest_largeResponse_succeeds() local
171 FileChannel channel = randomAccessFile.getChannel(); in executeRequest_largeResponse_succeeds()
212 RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); in executeRequest_closeBeforeWrite_failsAborted() local
213 FileChannel channel = randomAccessFile.getChannel(); in executeRequest_closeBeforeWrite_failsAborted()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java1006 RandomAccessFile randomAccessFile = null; in parseBody() local
1017 randomAccessFile = getTmpBucket(); in parseBody()
1018 request_data_output = randomAccessFile; in parseBody()
1035 …fbuf = randomAccessFile.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, randomAccessFile.length… in parseBody()
1036 randomAccessFile.seek(0); in parseBody()
1079 safeClose(randomAccessFile); in parseBody()