Home
last modified time | relevance | path

Searched refs:removedBuffers (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.cpp625 std::vector<sp<GraphicBuffer>> removedBuffers; in checkRemovedBuffersLocked() local
626 status_t res = mConsumer->getAndFlushRemovedBuffers(&removedBuffers); in checkRemovedBuffersLocked()
628 onBuffersRemovedLocked(removedBuffers); in checkRemovedBuffersLocked()
630 if (notifyBufferManager && mUseBufferManager && removedBuffers.size() > 0) { in checkRemovedBuffersLocked()
631 mBufferManager->onBuffersRemoved(getId(), getStreamSetId(), removedBuffers.size()); in checkRemovedBuffersLocked()
841 const std::vector<sp<GraphicBuffer>>& removedBuffers) { in onBuffersRemovedLocked() argument
844 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp555 std::vector<sp<GraphicBuffer>> removedBuffers; in TEST_F() local
556 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F()
557 ASSERT_EQ(1u, removedBuffers.size()); in TEST_F()
558 ASSERT_EQ(detachedBuffer->handle, removedBuffers.at(0)->handle); in TEST_F()
560 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F()
561 ASSERT_EQ(0u, removedBuffers.size()); in TEST_F()
567 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F()
568 ASSERT_EQ(0u, removedBuffers.size()); in TEST_F()
574 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F()
575 ASSERT_EQ(1u, removedBuffers.size()); in TEST_F()
[all …]