Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DPipeShort.java46 int rear = mRear & (mMaxValues - 1); in write() local
47 int written = mMaxValues - rear; in write()
51 System.arraycopy(buffer, offset, mBuffer, rear, written); in write()
52 if (rear + written == mMaxValues) { in write()
53 if ((count -= written) > rear) { in write()
54 count = rear; in write()
68 int rear = mVolatileRear; in availableToRead() local
69 int avail = rear - mFront; in availableToRead()
73 mFront = rear - mMaxValues + (mMaxValues >> 4); in availableToRead()
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/
Dfifo.c66 static inline size_t audio_utils_fifo_diff(struct audio_utils_fifo *fifo, int32_t rear, in audio_utils_fifo_diff() argument
69 int32_t diff = rear - front; in audio_utils_fifo_diff()
72 int32_t genDiff = (rear & mask) - (front & mask); in audio_utils_fifo_diff()
86 int32_t rear = fifo->mRear; in audio_utils_fifo_write() local
87 size_t availToWrite = fifo->mFrameCount - audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_write()
91 rear &= fifo->mFrameCountP2 - 1; in audio_utils_fifo_write()
92 size_t part1 = fifo->mFrameCount - rear; in audio_utils_fifo_write()
97 memcpy((char *) fifo->mBuffer + (rear * fifo->mFrameSize), buffer, in audio_utils_fifo_write()
112 int32_t rear = android_atomic_acquire_load(&fifo->mRear); in audio_utils_fifo_read() local
114 size_t availToRead = audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_read()