Searched refs:mBufferState (Results 1 – 10 of 10) sorted by relevance
/frameworks/native/libs/gui/ |
D | BufferHubProducer.cpp | 60 } 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 …]
|
D | BufferQueueConsumer.cpp | 69 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 …]
|
D | BufferQueueCore.cpp | 149 (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 …]
|
D | BufferQueueProducer.cpp | 86 } 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/ |
D | BufferHubBuffer.cpp | 212 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/ |
D | com_android_server_tv_TvInputHal.cpp | 114 } 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/ |
D | BufferSlot.h | 179 mBufferState(), in BufferSlot() 196 BufferState mBufferState; member
|
/frameworks/native/libs/ui/include/ui/ |
D | BufferHubBuffer.h | 61 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/ |
D | BufferNode.cpp | 18 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/ |
D | BufferNode.h | 84 std::atomic<uint32_t>* mBufferState = nullptr; variable
|