Home
last modified time | relevance | path

Searched refs:outSlot (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/libs/gui/tests/
DBufferItemConsumer_test.cpp74 void DequeueBuffer(int* outSlot) { in DequeueBuffer() argument
75 ASSERT_NE(outSlot, nullptr); in DequeueBuffer()
88 *outSlot = slot; in DequeueBuffer()
101 void AcquireBuffer(int* outSlot) { in AcquireBuffer() argument
102 ASSERT_NE(outSlot, nullptr); in AcquireBuffer()
108 *outSlot = buffer.mSlot; in AcquireBuffer()
DMalicious.cpp50 status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer) override { in attachBuffer() argument
51 return mProducer->attachBuffer(outSlot, buffer); in attachBuffer()
DBufferQueue_test.cpp551 int outSlot; in TEST_F() local
552 ASSERT_EQ(BAD_VALUE, mProducer->attachBuffer(&outSlot, buffer)); in TEST_F()
553 ASSERT_EQ(BAD_VALUE, mConsumer->attachBuffer(&outSlot, buffer)); in TEST_F()
558 ASSERT_EQ(OK, mProducer->attachBuffer(&outSlot, buffer)); in TEST_F()
560 ASSERT_EQ(OK, mProducer->detachBuffer(outSlot)); in TEST_F()
563 ASSERT_EQ(OK, mConsumer->attachBuffer(&outSlot, buffer)); in TEST_F()
/frameworks/native/libs/gui/
DBufferQueueProducer.cpp391 status_t BufferQueueProducer::dequeueBuffer(int* outSlot, sp<android::Fence>* outFence, in dequeueBuffer() argument
511 *outSlot = found; in dequeueBuffer()
583 bufferId = mSlots[*outSlot].mGraphicBuffer->getId(); in dequeueBuffer()
590 BQ_LOGV("dequeueBuffer: allocating a new buffer for slot %d", *outSlot); in dequeueBuffer()
622 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer()
624 mSlots[*outSlot].mAdditionalOptionsGenerationId = allocOptionsGenId; in dequeueBuffer()
627 bufferId = mSlots[*outSlot].mGraphicBuffer->getId(); in dequeueBuffer()
634 mCore->mFreeSlots.insert(*outSlot); in dequeueBuffer()
635 mCore->clearBufferSlotLocked(*outSlot); in dequeueBuffer()
641 mCore->mFreeSlots.insert(*outSlot); in dequeueBuffer()
[all …]
DBufferQueueConsumer.cpp361 status_t BufferQueueConsumer::attachBuffer(int* outSlot, in attachBuffer() argument
365 if (outSlot == nullptr) { in attachBuffer()
418 *outSlot = found; in attachBuffer()
419 ATRACE_BUFFER_INDEX(*outSlot); in attachBuffer()
420 BQ_LOGV("attachBuffer: returning slot %d", *outSlot); in attachBuffer()
422 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer()
423 mSlots[*outSlot].mBufferState.attachConsumer(); in attachBuffer()
424 mSlots[*outSlot].mNeedsReallocation = true; in attachBuffer()
425 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
426 mSlots[*outSlot].mFrameNumber = 0; in attachBuffer()
[all …]
DGLConsumer.cpp806 sp<GraphicBuffer> GLConsumer::getCurrentBuffer(int* outSlot) const { in getCurrentBuffer()
809 if (outSlot != nullptr) { in getCurrentBuffer()
810 *outSlot = mCurrentTexture; in getCurrentBuffer()
DIGraphicBufferProducer.cpp859 int* outSlot, const sp<GraphicBuffer>& buffer) override { in attachBuffer() argument
860 return mBase->attachBuffer(outSlot, buffer); in attachBuffer()
/frameworks/native/services/surfaceflinger/tests/
DLayerTransaction_test.cpp95 auto dequeue = [&](int* outSlot) { in TEST_F() argument
96 ASSERT_NE(nullptr, outSlot); in TEST_F()
97 *outSlot = -1; in TEST_F()
114 *outSlot = slot; in TEST_F()
/frameworks/native/libs/gui/include/gui/
DBufferQueueProducer.h91 virtual status_t dequeueBuffer(int* outSlot, sp<Fence>* outFence, uint32_t width,
104 virtual status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer);
DIGraphicBufferProducer.h294 virtual status_t attachBuffer(int* outSlot,
336 int* outSlot = nullptr) const {
350 if (outSlot) {
351 *outSlot = slot;
DIGraphicBufferConsumer.h113 virtual status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer) = 0;
DGLConsumer.h186 sp<GraphicBuffer> getCurrentBuffer(int* outSlot = nullptr) const;
/frameworks/native/libs/gui/include/gui/bufferqueue/1.0/
DWGraphicBufferProducer.h172 int outSlot; in attachBuffer() local
180 status_t status = mBase->attachBuffer(&outSlot, lBuffer); in attachBuffer()
182 _hidl_cb(static_cast<int32_t>(status), static_cast<int32_t>(outSlot)); in attachBuffer()
DH2BGraphicBufferProducer.h72 status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer)
/frameworks/native/libs/gui/bufferqueue/2.0/
DH2BGraphicBufferProducer.cpp219 int* outSlot, sp<GraphicBuffer> const& buffer) { in attachBuffer() argument
230 [&converted, &bStatus, outSlot]( in attachBuffer()
233 *outSlot = static_cast<int>(hSlot); in attachBuffer()
/frameworks/native/libs/gui/include/gui/bufferqueue/2.0/
DH2BGraphicBufferProducer.h67 int* outSlot,
/frameworks/native/libs/gui/bufferqueue/1.0/
DH2BGraphicBufferProducer.cpp1062 int* outSlot, const sp<GraphicBuffer>& buffer) { in attachBuffer() argument
1067 [&fnStatus, outSlot] (Status status, int32_t slot) { in attachBuffer()
1069 *outSlot = slot; in attachBuffer()
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp1024 int *outSlot = &slot; in migrate() local
1027 [&converted, &bStatus, outSlot]( in migrate()
1030 *outSlot = static_cast<int>(hSlot); in migrate()