Home
last modified time | relevance | path

Searched refs:mPipe (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libnbaio/
DMonoPipeReader.cpp28 mPipe(pipe) in MonoPipeReader()
41 ssize_t ret = android_atomic_acquire_load(&mPipe->mRear) - mPipe->mFront; in availableToRead()
42 ALOG_ASSERT((0 <= ret) && ((size_t) ret <= mPipe->mMaxFrames)); in availableToRead()
56 size_t front = mPipe->mFront & (mPipe->mMaxFrames - 1); in read()
57 size_t part1 = mPipe->mMaxFrames - front; in read()
62 memcpy(buffer, (char *) mPipe->mBuffer + (front * mFrameSize), part1 * mFrameSize); in read()
63 if (CC_UNLIKELY(front + part1 == mPipe->mMaxFrames)) { in read()
66 memcpy((char *) buffer + (part1 * mFrameSize), mPipe->mBuffer, part2 * mFrameSize); in read()
69 android_atomic_release_store(red + mPipe->mFront, &mPipe->mFront); in read()
77 mPipe->mTimestampMutator.push(timestamp); in onTimestamp()
DPipeReader.cpp28 mPipe(pipe), in PipeReader()
44 android_atomic_dec(&mPipe.mReaders); in ~PipeReader()
53 int32_t rear = android_atomic_acquire_load(&mPipe.mRear); in availableToRead()
56 if (CC_UNLIKELY(avail > mPipe.mMaxFrames)) { in availableToRead()
59 mFront = rear - mPipe.mMaxFrames + (mPipe.mMaxFrames >> 4); in availableToRead()
78 size_t front = mFront & (mPipe.mMaxFrames - 1); in read()
79 size_t red = mPipe.mMaxFrames - front; in read()
84 memcpy(buffer, (char *) mPipe.mBuffer + (front * mFrameSize), red * mFrameSize); in read()
86 if (CC_UNLIKELY(front + red == mPipe.mMaxFrames)) { in read()
91 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize); in read()
/frameworks/av/include/media/nbaio/
DMonoPipeReader.h57 MonoPipe* pipe() const { return mPipe; }
61 MonoPipe * const mPipe;
DPipeReader.h53 Pipe& pipe() const { return mPipe; }
57 Pipe& mPipe;
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java3620 ParcelFileDescriptor mPipe; field in BackupManagerService.FullBackupEngine.FullBackupRunner
3631 mPipe = ParcelFileDescriptor.dup(pipe.getFileDescriptor()); in FullBackupRunner()
3640 FullBackupDataOutput output = new FullBackupDataOutput(mPipe); in run()
3670 mAgent.doFullBackup(mPipe, mToken, mBackupManagerBinder); in run()
3678 mPipe.close(); in run()