Searched defs:rear (Results 1 - 9 of 9) sorted by relevance

/frameworks/av/media/libnbaio/
H A DPipe.cpp53 size_t rear = mRear & (mMaxFrames - 1); local
54 size_t written = mMaxFrames - rear;
58 memcpy((char *) mBuffer + (rear * mFrameSize), buffer, written * mFrameSize);
59 if (CC_UNLIKELY(rear + written == mMaxFrames)) {
60 if (CC_UNLIKELY((count -= written) > rear)) {
61 count = rear;
H A DPipeReader.cpp48 int32_t rear = android_atomic_acquire_load(&mPipe.mRear); local
50 size_t avail = rear - mFront;
54 mFront = rear - mPipe.mMaxFrames + (mPipe.mMaxFrames >> 4);
80 // We could re-read the rear pointer here to detect the corruption, but why bother?
H A DMonoPipe.cpp130 size_t rear = mRear & (mMaxFrames - 1); local
131 size_t part1 = mMaxFrames - rear;
136 memcpy((char *) mBuffer + (rear * mFrameSize), buffer, part1 * mFrameSize);
137 if (CC_UNLIKELY(rear + part1 == mMaxFrames)) {
H A DNBLog.cpp179 size_t rear = mRear & (mSize - 1); local
180 size_t written = mSize - rear; // written = number of bytes that have been written so far
190 mShared->mBuffer[rear + i] = entry->readAt(i);
192 if (rear + written == mSize && (need -= written) > 0) {
288 int32_t rear = android_atomic_acquire_load(&mShared->mRear); local
289 size_t avail = rear - mFront;
/frameworks/av/services/audioflinger/
H A DFastCapture.cpp200 int32_t rear = cblk->u.mStreaming.mRear; local
201 android_atomic_release_store(framesWritten + rear, &cblk->u.mStreaming.mRear);
H A DThreads.cpp5316 int32_t rear = mRsmpInRear & (mRsmpInFramesP2 - 1); local
5322 framesRead = mPipeSource->read(&mRsmpInBuffer[rear * mChannelCount],
5331 &mRsmpInBuffer[rear * mChannelCount], mBufferSize);
5351 (void) mTeeSink->write(&mRsmpInBuffer[rear * mChannelCount], framesRead);
5355 size_t part1 = mRsmpInFramesP2 - rear;
5361 rear = mRsmpInRear += framesRead;
5388 ssize_t filled = rear - front;
5394 activeTrack->mRsmpInFront = rear;
5401 activeTrack->mRsmpInFront = front = rear - framesIn;
6010 int32_t rear
[all...]
/frameworks/compile/mclinker/lib/MC/
H A DSymbolCategory.cpp157 size_t rear; local
164 rear = current->end - 1;
165 std::swap(m_OutputSymbols[pos], m_OutputSymbols[rear]);
166 pos = rear;
/frameworks/wilhelm/src/itf/
H A DIOutputMixExt.c275 const BufferHeader *oldFront, *newFront, *rear; local
277 rear = bufferQueue->mRear;
279 assert(oldFront != rear);
287 if (newFront != rear) {
/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp124 int32_t rear; local
134 rear = cblk->u.mStreaming.mRear;
137 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear);
140 ssize_t filled = rear - front;
152 cblk->u.mStreaming.mFront = rear;
161 rear &= mFrameCountP2 - 1;
162 part1 = mFrameCountP2 - rear;
175 &((char *) mBuffers)[(mIsOut ? rear : front) * mFrameSize] : NULL;
298 int32_t rear = cblk->u.mStreaming.mRear; local
299 android_atomic_release_store(stepCount + rear,
337 int32_t rear; local
550 int32_t rear; local
655 int32_t rear = cblk->u.mStreaming.mRear; local
703 int32_t rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); local
[all...]

Completed in 192 milliseconds