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

/packages/apps/TV/src/com/android/tv/tuner/source/
H A DTunerTsStreamer.java44 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 20000; // ~ 30MB field in class:TunerTsStreamer
50 private final byte[] mCircularBuffer = new byte[CIRCULAR_BUFFER_SIZE];
294 int posInBuffer = (int) (mBytesFetched % CIRCULAR_BUFFER_SIZE);
330 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) {
350 int startPos = (int) (pos % CIRCULAR_BUFFER_SIZE);
351 int endPos = (int) ((pos + amount) % CIRCULAR_BUFFER_SIZE);
352 int firstLength = (startPos > endPos ? CIRCULAR_BUFFER_SIZE : endPos) - startPos;
H A DFileTsStreamer.java50 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 4000; // ~ 8MB field in class:FileTsStreamer
61 private final byte[] mCircularBuffer = new byte[CIRCULAR_BUFFER_SIZE];
365 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) {
369 int posInBuffer = (int) (pos % CIRCULAR_BUFFER_SIZE);
421 while ((mBytesFetched - mLastReadPosition + PADDING_SIZE) > CIRCULAR_BUFFER_SIZE
450 int posInBuffer = (int) (mBytesFetched % CIRCULAR_BUFFER_SIZE);

Completed in 32 milliseconds