Home
last modified time | relevance | path

Searched refs:mBufferState (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/libs/gui/
DBufferHubProducer.cpp60 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer()
62 buffers_[slot].mBufferState.string()); in requestBuffer()
99 if (buf.mBufferState.isDequeued()) { in setMaxDequeuedBufferCount()
205 LOG_ALWAYS_FATAL_IF((!buffers_[slot].mBufferState.isFree() && in dequeueBuffer()
206 !buffers_[slot].mBufferState.isQueued()), in dequeueBuffer()
208 buffers_[slot].mBufferState.string()); in dequeueBuffer()
210 buffers_[slot].mBufferState.freeQueued(); in dequeueBuffer()
211 buffers_[slot].mBufferState.dequeue(); in dequeueBuffer()
244 } else if (!buffers_[slot].mBufferState.isDequeued()) { in DetachBufferLocked()
246 buffers_[slot].mBufferState.string()); in DetachBufferLocked()
[all …]
DBufferQueueConsumer.cpp69 if (mSlots[s].mBufferState.isAcquired()) { in acquireBuffer()
153 mSlots[front->mSlot].mBufferState.freeQueued(); in acquireBuffer()
159 mSlots[front->mSlot].mBufferState.isFree()) { in acquireBuffer()
160 mSlots[front->mSlot].mBufferState.mShared = false; in acquireBuffer()
164 if (!mSlots[front->mSlot].mBufferState.isShared()) { in acquireBuffer()
249 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer()
251 mSlots[slot].mBufferState.acquire(); in acquireBuffer()
306 } else if (!mSlots[slot].mBufferState.isAcquired()) { in detachBuffer()
308 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in detachBuffer()
312 mSlots[slot].mBufferState.detachConsumer(); in detachBuffer()
[all …]
DBufferQueueCore.cpp149 (mSlots[s].mBufferState.isAcquired()) ? ">" : " ", s, in dumpState()
151 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
158 mSlots[s].mBufferState.string(), mSlots[s].mFrameNumber); in dumpState()
164 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
173 mSlots[s].mBufferState.string()); in dumpState()
213 mSlots[slot].mBufferState.reset(); in clearBufferSlotLocked()
359 if (!mSlots[slot].mBufferState.isFree()) { in validateConsistencyLocked()
381 if (!mSlots[slot].mBufferState.isFree()) { in validateConsistencyLocked()
404 if (!mSlots[slot].mBufferState.isFree()) { in validateConsistencyLocked()
427 if (mSlots[slot].mBufferState.isFree() && in validateConsistencyLocked()
[all …]
DBufferQueueProducer.cpp86 } else if (!mSlots[slot].mBufferState.isDequeued()) { in requestBuffer()
88 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in requestBuffer()
122 if (mSlots[s].mBufferState.isDequeued()) { in setMaxDequeuedBufferCount()
264 if (mSlots[s].mBufferState.isDequeued()) { in waitForFreeSlotThenRelock()
267 if (mSlots[s].mBufferState.isAcquired()) { in waitForFreeSlotThenRelock()
464 mSlots[found].mBufferState.dequeue(); in dequeueBuffer()
509 mSlots[found].mBufferState.mShared = true; in dequeueBuffer()
610 } else if (!mSlots[slot].mBufferState.isDequeued()) { in detachBuffer()
612 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in detachBuffer()
620 mSlots[slot].mBufferState.detachProducer(); in detachBuffer()
[all …]
/frameworks/native/libs/ui/
DBufferHubBuffer.cpp212 mBufferState = &metadataHeader->bufferState; in initWithBufferTraits()
218 LOG_ALWAYS_FATAL_IF(!std::atomic_is_lock_free(mBufferState) || in initWithBufferTraits()
233 mBufferState->load(std::memory_order_acquire)); in initWithBufferTraits()
238 uint32_t currentBufferState = mBufferState->load(std::memory_order_acquire); in gain()
253 } while (!mBufferState->compare_exchange_weak(currentBufferState, mClientStateMask, in gain()
261 uint32_t currentBufferState = mBufferState->load(std::memory_order_acquire); in post()
272 } while (!mBufferState->compare_exchange_weak(currentBufferState, updatedBufferState, in post()
280 uint32_t currentBufferState = mBufferState->load(std::memory_order_acquire); in acquire()
296 } while (!mBufferState->compare_exchange_weak(currentBufferState, updatedBufferState, in acquire()
304 uint32_t currentBufferState = mBufferState->load(std::memory_order_acquire); in release()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp114 } mBufferState; member in android::BufferProducerThread
129 mBufferState(RELEASED), in BufferProducerThread()
163 if (mBufferState == CAPTURING) { in setSurfaceLocked()
166 while (mBufferState == CAPTURING) { in setSurfaceLocked()
174 mBufferState = RELEASED; in setSurfaceLocked()
185 if (mBufferState != CAPTURING) { in onCaptured()
186 ALOGW("mBufferState != CAPTURING : instead %d", mBufferState); in onCaptured()
189 mBufferState = CAPTURED; in onCaptured()
192 mBufferState = RELEASED; in onCaptured()
218 while (mBufferState == CAPTURING) { in threadLoop()
[all …]
/frameworks/native/libs/gui/include/gui/
DBufferSlot.h179 mBufferState(), in BufferSlot()
196 BufferState mBufferState; member
/frameworks/native/libs/ui/include/ui/
DBufferHubBuffer.h61 uint32_t bufferState() const { return mBufferState->load(std::memory_order_acquire); } in bufferState()
134 std::atomic<uint32_t>* mBufferState = nullptr; variable
/frameworks/native/services/bufferhub/
DBufferNode.cpp18 mBufferState = new (&metadataHeader->bufferState) std::atomic<uint32_t>(0); in initializeMetadata()
24 LOG_ALWAYS_FATAL_IF(!std::atomic_is_lock_free(mBufferState) || in initializeMetadata()
/frameworks/native/services/bufferhub/include/bufferhub/
DBufferNode.h84 std::atomic<uint32_t>* mBufferState = nullptr; variable