Searched refs:attachBuffer (Results 1 - 14 of 14) sorted by relevance

/frameworks/native/services/surfaceflinger/
H A DMonitoredProducer.cpp77 status_t MonitoredProducer::attachBuffer(int* outSlot, function in class:android::MonitoredProducer
79 return mProducer->attachBuffer(outSlot, buffer);
H A DMonitoredProducer.h44 virtual status_t attachBuffer(int* outSlot,
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp243 ASSERT_EQ(BAD_VALUE, mProducer->attachBuffer(NULL, safeToClobberBuffer));
244 ASSERT_EQ(BAD_VALUE, mProducer->attachBuffer(&newSlot, NULL));
246 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, buffer));
300 ASSERT_EQ(BAD_VALUE, mConsumer->attachBuffer(NULL, safeToClobberBuffer));
301 ASSERT_EQ(BAD_VALUE, mConsumer->attachBuffer(&newSlot, NULL));
302 ASSERT_EQ(OK, mConsumer->attachBuffer(&newSlot, item.mGraphicBuffer));
350 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, item.mGraphicBuffer));
/frameworks/native/include/gui/
H A DBufferQueueConsumer.h55 // See IGraphicBufferConsumer::attachBuffer
56 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer);
H A DBufferQueueProducer.h106 // See IGraphicBufferProducer::attachBuffer
107 virtual status_t attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer);
H A DIGraphicBufferConsumer.h159 // attachBuffer attempts to transfer ownership of a buffer to the buffer
173 virtual status_t attachBuffer(int *outSlot,
H A DIGraphicBufferProducer.h209 // attachBuffer attempts to transfer ownership of a buffer to the buffer
214 // If attachBuffer returns the RELEASE_ALL_BUFFERS flag, the caller is
233 virtual status_t attachBuffer(int* outSlot,
/frameworks/native/libs/gui/
H A DStreamSplitter.cpp152 status = (*output)->attachBuffer(&slot, bufferItem.mGraphicBuffer);
230 status = mInput->attachBuffer(&consumerSlot, tracker->getBuffer());
H A DIGraphicBufferConsumer.cpp245 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer) { function in class:android::BpGraphicBufferConsumer
448 int result = attachBuffer(&slot, buffer);
H A DIGraphicBufferProducer.cpp159 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer) { function in class:android::BpGraphicBufferProducer
348 int result = attachBuffer(&slot, buffer);
H A DBufferQueueConsumer.cpp206 status_t BufferQueueConsumer::attachBuffer(int* outSlot, function in class:android::BufferQueueConsumer
211 BQ_LOGE("attachBuffer(P): outSlot must not be NULL");
214 BQ_LOGE("attachBuffer(P): cannot attach NULL buffer");
236 BQ_LOGE("attachBuffer(P): max acquired buffer count reached: %d "
242 BQ_LOGE("attachBuffer(P): could not find free buffer slot");
248 BQ_LOGV("attachBuffer(C): returning slot %d", *outSlot);
H A DBufferQueueProducer.cpp466 status_t BufferQueueProducer::attachBuffer(int* outSlot, function in class:android::BufferQueueProducer
471 BQ_LOGE("attachBuffer(P): outSlot must not be NULL");
474 BQ_LOGE("attachBuffer(P): cannot attach NULL buffer");
483 // TODO: Should we provide an async flag to attachBuffer? It seems
486 status_t status = waitForFreeSlotThenRelock("attachBuffer(P)", false,
494 BQ_LOGE("attachBuffer(P): no available buffer slots");
500 BQ_LOGV("attachBuffer(P): returning slot %d flags=%#x",
987 // A consumer allocated the FREE slot with attachBuffer. Discard the buffer we
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.h107 virtual status_t attachBuffer(int* slot, const sp<GraphicBuffer>& buffer);
H A DVirtualDisplaySurface.cpp408 status_t VirtualDisplaySurface::attachBuffer(int* /* outSlot */, function in class:android::VirtualDisplaySurface
410 VDS_LOGE("attachBuffer is not available for VirtualDisplaySurface");

Completed in 84 milliseconds