Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamer.java47 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 20000; // ~ 30MB field in TunerTsStreamer
56 private final byte[] mCircularBuffer = new byte[CIRCULAR_BUFFER_SIZE];
387 int posInBuffer = (int) (mBytesFetched % CIRCULAR_BUFFER_SIZE); in run()
427 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) { in readAt()
441 int startPos = (int) (pos % CIRCULAR_BUFFER_SIZE); in readAt()
442 int endPos = (int) ((pos + amount) % CIRCULAR_BUFFER_SIZE); in readAt()
443 int firstLength = (startPos > endPos ? CIRCULAR_BUFFER_SIZE : endPos) - startPos; in readAt()
DFileTsStreamer.java51 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 4000; // ~ 8MB field in FileTsStreamer
62 private final byte[] mCircularBuffer = new byte[CIRCULAR_BUFFER_SIZE];
390 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) { in readAt()
394 int posInBuffer = (int) (pos % CIRCULAR_BUFFER_SIZE); in readAt()
450 while ((mBytesFetched - mLastReadPosition + PADDING_SIZE) > CIRCULAR_BUFFER_SIZE in run()
479 int posInBuffer = (int) (mBytesFetched % CIRCULAR_BUFFER_SIZE); in run()