Home
last modified time | relevance | path

Searched refs:newFront (Results 1 – 7 of 7) sorted by relevance

/frameworks/wilhelm/src/android/
DBufferQueueSource.cpp78 AdvancedBufferHeader *newFront = &oldFront[1]; in readAt() local
109 if (newFront == &mAndroidBufferQueueSource-> in readAt()
112 newFront = mAndroidBufferQueueSource->mBufferArray; in readAt()
114 mAndroidBufferQueueSource->mFront = newFront; in readAt()
Dandroid_StreamPlayer.cpp149 AdvancedBufferHeader *newFront = &oldFront[1]; in pullFromBuffQueue() local
223 if (newFront == &mAndroidBufferQueue-> in pullFromBuffQueue()
226 newFront = mAndroidBufferQueue->mBufferArray; in pullFromBuffQueue()
228 mAndroidBufferQueue->mFront = newFront; in pullFromBuffQueue()
DAudioRecorder_to_android.cpp321 BufferHeader *newFront = &oldFront[1]; in audioRecorder_handleMoreData_lockRecord() local
335 if (newFront == &ar->mBufferQueue.mArray[ar->mBufferQueue.mNumBuffers + 1]) { in audioRecorder_handleMoreData_lockRecord()
336 newFront = ar->mBufferQueue.mArray; in audioRecorder_handleMoreData_lockRecord()
338 ar->mBufferQueue.mFront = newFront; in audioRecorder_handleMoreData_lockRecord()
DAudioPlayer_to_android.cpp166 BufferHeader *newFront = &oldFront[1]; in adecoder_writeToBufferQueue() local
181 if (newFront == &ap->mBufferQueue.mArray[ap->mBufferQueue.mNumBuffers + 1]) { in adecoder_writeToBufferQueue()
182 newFront = ap->mBufferQueue.mArray; in adecoder_writeToBufferQueue()
184 ap->mBufferQueue.mFront = newFront; in adecoder_writeToBufferQueue()
1260 BufferHeader *newFront = &oldFront[1]; in audioTrack_handleMoreData_lockPlay() local
1273 if (newFront == in audioTrack_handleMoreData_lockPlay()
1277 newFront = ap->mBufferQueue.mArray; in audioTrack_handleMoreData_lockPlay()
1279 ap->mBufferQueue.mFront = newFront; in audioTrack_handleMoreData_lockPlay()
/frameworks/wilhelm/src/
DThreadPool.cpp195 Closure **newFront = oldFront; in ThreadPool_deinit_internal() local
196 if (++newFront == &tp->mClosureArray[tp->mMaxClosures + 1]) in ThreadPool_deinit_internal()
197 newFront = tp->mClosureArray; in ThreadPool_deinit_internal()
201 tp->mClosureFront = newFront; in ThreadPool_deinit_internal()
349 Closure **newFront = oldFront; in ThreadPool_remove() local
350 if (++newFront == &tp->mClosureArray[tp->mMaxClosures + 1]) { in ThreadPool_remove()
351 newFront = tp->mClosureArray; in ThreadPool_remove()
356 tp->mClosureFront = newFront; in ThreadPool_remove()
/frameworks/wilhelm/src/itf/
DIOutputMixExt.cpp275 const BufferHeader *oldFront, *newFront, *rear; in IOutputMixExt_FillBuffer() local
280 newFront = oldFront; in IOutputMixExt_FillBuffer()
281 if (++newFront == &bufferQueue->mArray[bufferQueue->mNumBuffers + 1]) { in IOutputMixExt_FillBuffer()
282 newFront = bufferQueue->mArray; in IOutputMixExt_FillBuffer()
284 bufferQueue->mFront = (BufferHeader *) newFront; in IOutputMixExt_FillBuffer()
287 if (newFront != rear) { in IOutputMixExt_FillBuffer()
291 track->mReader = newFront->mBuffer; in IOutputMixExt_FillBuffer()
292 track->mAvail = newFront->mSize; in IOutputMixExt_FillBuffer()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp748 int32_t newFront = (front & ~mask) | (flush & mask); in flushBufferIfNeeded() local
749 ssize_t filled = audio_utils::safe_sub_overflow(rear, newFront); in flushBufferIfNeeded()
755 newFront += overflowBit; in flushBufferIfNeeded()
763 (unsigned)mask, newFront, filled, (unsigned)filled); in flushBufferIfNeeded()
764 newFront = rear; in flushBufferIfNeeded()
767 android_atomic_release_store(newFront, &cblk->u.mStreaming.mFront); in flushBufferIfNeeded()
776 mFlushed += (newFront - front) & mask; in flushBufferIfNeeded()