Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java48 private long mWriteOffset; field in SampleChunk
298 if (mWriteFinished && mWriteOffset == 0) { in openRead()
301 mWriteOffset = mAccessFile.length(); in openRead()
350 return mWriteFinished && state.equals(this, mWriteOffset); in isReadFinished()
358 if (offset >= mWriteOffset) { in read()
362 if (offset != mWriteOffset) { in read()
389 if (mAccessFile == null || mNextChunk != null || !state.equals(this, mWriteOffset)) { in write()
393 mAccessFile.seek(mWriteOffset); in write()
398 mAccessFile.getChannel().position(mWriteOffset + SAMPLE_HEADER_LENGTH).write(sample.data); in write()
399 mWriteOffset += sample.size + SAMPLE_HEADER_LENGTH; in write()
[all …]