Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DHwcBufferCacheTest.cpp27 void getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer, uint32_t* outSlot, in getHwcBuffer() argument
29 HwcBufferCache::getHwcBuffer(slot, buffer, outSlot, outBuffer); in getHwcBuffer()
38 uint32_t outSlot; in testSlot() local
42 mCache.getHwcBuffer(inSlot, mBuffer1, &outSlot, &outBuffer); in testSlot()
43 EXPECT_EQ(expectedSlot, outSlot); in testSlot()
47 mCache.getHwcBuffer(inSlot, mBuffer1, &outSlot, &outBuffer); in testSlot()
48 EXPECT_EQ(expectedSlot, outSlot); in testSlot()
52 mCache.getHwcBuffer(inSlot, mBuffer2, &outSlot, &outBuffer); in testSlot()
53 EXPECT_EQ(expectedSlot, outSlot); in testSlot()
57 mCache.getHwcBuffer(inSlot, mBuffer2, &outSlot, &outBuffer); in testSlot()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DHwcBufferCache.cpp35 void HwcBufferCache::getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer, uint32_t* outSlot, in getHwcBuffer() argument
40 *outSlot = 0; in getHwcBuffer()
42 *outSlot = static_cast<uint32_t>(slot); in getHwcBuffer()
45 auto& currentBuffer = mBuffers[*outSlot]; in getHwcBuffer()
/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()
/frameworks/native/libs/gui/
DBufferQueueProducer.cpp379 status_t BufferQueueProducer::dequeueBuffer(int* outSlot, sp<android::Fence>* outFence, in dequeueBuffer() argument
485 *outSlot = found; in dequeueBuffer()
541 mCore->mConsumerListener->onFrameDequeued(mSlots[*outSlot].mGraphicBuffer->getId()); in dequeueBuffer()
547 BQ_LOGV("dequeueBuffer: allocating a new buffer for slot %d", *outSlot); in dequeueBuffer()
559 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer()
562 mSlots[*outSlot].mGraphicBuffer->getId()); in dequeueBuffer()
570 mCore->mFreeSlots.insert(*outSlot); in dequeueBuffer()
571 mCore->clearBufferSlotLocked(*outSlot); in dequeueBuffer()
577 mCore->mFreeSlots.insert(*outSlot); in dequeueBuffer()
578 mCore->clearBufferSlotLocked(*outSlot); in dequeueBuffer()
[all …]
DBufferQueueConsumer.cpp353 status_t BufferQueueConsumer::attachBuffer(int* outSlot, in attachBuffer() argument
357 if (outSlot == nullptr) { in attachBuffer()
410 *outSlot = found; in attachBuffer()
411 ATRACE_BUFFER_INDEX(*outSlot); in attachBuffer()
412 BQ_LOGV("attachBuffer: returning slot %d", *outSlot); in attachBuffer()
414 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer()
415 mSlots[*outSlot].mBufferState.attachConsumer(); in attachBuffer()
416 mSlots[*outSlot].mNeedsReallocation = true; in attachBuffer()
417 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
418 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()
/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/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp112 status_t FramebufferSurface::nextBuffer(uint32_t& outSlot, in nextBuffer() argument
120 mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer, &outSlot, &outBuffer); in nextBuffer()
146 mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer, &outSlot, &outBuffer); in nextBuffer()
148 status_t result = mHwc.setClientTarget(mDisplayId, outSlot, outFence, outBuffer, outDataspace); in nextBuffer()
DFramebufferSurface.h75 status_t nextBuffer(uint32_t& outSlot, sp<GraphicBuffer>& outBuffer,
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp117 void DequeueBuffer(int* outSlot) { in DequeueBuffer() argument
119 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(outSlot, &fence)); in DequeueBuffer()
122 void DequeueBuffer(int* outSlot, sp<Fence>* outFence) { in DequeueBuffer() argument
123 ASSERT_NE(nullptr, outSlot); in DequeueBuffer()
127 outSlot, outFence, kDefaultWidth, kDefaultHeight, kDefaultFormat, in DequeueBuffer()
133 ASSERT_LE(0, *outSlot); in DequeueBuffer()
134 ASSERT_GT(BufferQueueDefs::NUM_BUFFER_SLOTS, *outSlot); in DequeueBuffer()
/frameworks/native/libs/gui/include/gui/
DBufferQueueProducer.h89 virtual status_t dequeueBuffer(int* outSlot, sp<Fence>* outFence, uint32_t width,
102 virtual status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer);
DIGraphicBufferProducer.h291 virtual status_t attachBuffer(int* outSlot,
333 int* outSlot = nullptr) const {
347 if (outSlot) {
348 *outSlot = slot;
DBufferHubConsumer.h44 status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer) override;
DIGraphicBufferConsumer.h113 virtual status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer) = 0;
DGLConsumer.h182 sp<GraphicBuffer> getCurrentBuffer(int* outSlot = nullptr) const;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DHwcBufferCache.h57 void getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer, uint32_t* outSlot,
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp73 status_t MonitoredProducer::attachBuffer(int* outSlot, in attachBuffer() argument
75 return mProducer->attachBuffer(outSlot, buffer); in attachBuffer()
DBufferLayerConsumer.cpp365 int* outSlot, sp<Fence>* outFence) const { in getCurrentBuffer() argument
368 if (outSlot != nullptr) { in getCurrentBuffer()
369 *outSlot = mCurrentTexture; in getCurrentBuffer()
DMonitoredProducer.h48 virtual status_t attachBuffer(int* outSlot,
DBufferLayerConsumer.h155 int* outSlot = nullptr, sp<Fence>* outFence = 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,

12