Home
last modified time | relevance | path

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

/packages/apps/TV/usbtuner/src/com/android/usbtuner/
DUsbTunerDataSource.java42 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 20000; // ~ 30MB field in UsbTunerDataSource
53 private final byte[] mCircularBuffer = new byte[CIRCULAR_BUFFER_SIZE];
188 int posInBuffer = (int) (mBytesFetched % CIRCULAR_BUFFER_SIZE); in run()
215 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) { in readAt()
241 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) { in readAt()
245 int posInBuffer = (int) (pos % CIRCULAR_BUFFER_SIZE); in readAt()
DFileDataSource.java48 private static final int CIRCULAR_BUFFER_SIZE = MIN_READ_UNIT * 4000; // ~ 8MB field in FileDataSource
59 private final byte[] mCircularBuffer = new byte[CIRCULAR_BUFFER_SIZE];
281 if (mBytesFetched - CIRCULAR_BUFFER_SIZE > pos) { in readAt()
285 int posInBuffer = (int) (pos % CIRCULAR_BUFFER_SIZE); in readAt()
350 while ((mBytesFetched - mLastReadPosition + PADDING_SIZE) > CIRCULAR_BUFFER_SIZE in run()
379 int posInBuffer = (int) (mBytesFetched % CIRCULAR_BUFFER_SIZE); in run()