Lines Matching refs:lockedIdx
134 size_t lockedIdx = 0;
135 for (; lockedIdx < mMaxLockedBuffers; lockedIdx++) {
136 if (mAcquiredBuffers[lockedIdx].mSlot ==
141 assert(lockedIdx < mMaxLockedBuffers);
143 AcquiredBuffer &ab = mAcquiredBuffers.editItemAt(lockedIdx);
175 size_t lockedIdx = 0;
179 for (; lockedIdx < mMaxLockedBuffers; lockedIdx++) {
180 if (bufPtr == mAcquiredBuffers[lockedIdx].mBufferPointer) break;
182 if (lockedIdx == mMaxLockedBuffers) {
187 return releaseAcquiredBufferLocked(lockedIdx);
190 status_t CpuConsumer::releaseAcquiredBufferLocked(int lockedIdx) {
193 err = mAcquiredBuffers[lockedIdx].mGraphicBuffer->unlock();
196 lockedIdx);
199 int buf = mAcquiredBuffers[lockedIdx].mSlot;
204 if (CC_LIKELY(mAcquiredBuffers[lockedIdx].mGraphicBuffer ==
207 buf, mAcquiredBuffers[lockedIdx].mGraphicBuffer,
211 AcquiredBuffer &ab = mAcquiredBuffers.editItemAt(lockedIdx);