Home
last modified time | relevance | path

Searched refs:mWriteOffset (Results 1 – 2 of 2) 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 …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunk.java62 private long mWriteOffset; field in SampleChunk
317 if (mWriteFinished && mWriteOffset == 0) { in openRead()
320 mWriteOffset = mAccessFile.length(); in openRead()
369 return mWriteFinished && state.equals(this, mWriteOffset); in isReadFinished()
377 if (offset >= mWriteOffset) { in read()
381 if (offset != mWriteOffset) { in read()
423 if (mAccessFile == null || mNextChunk != null || !state.equals(this, mWriteOffset)) { in write()
427 mAccessFile.seek(mWriteOffset); in write()
436 mAccessFile.getChannel().position(mWriteOffset + SAMPLE_HEADER_LENGTH).write(sample.data); in write()
437 mWriteOffset += size + SAMPLE_HEADER_LENGTH; in write()
[all …]