Searched refs:CIRCULAR_BUFFER_SIZE (Results 1 – 2 of 2) sorted by relevance
47 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 20000; // ~ 30MB field in TunerTsStreamer56 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()
51 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 4000; // ~ 8MB field in FileTsStreamer62 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()