Searched refs:removedBuffers (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3OutputStream.cpp | 576 std::vector<sp<GraphicBuffer>> removedBuffers; in getBufferLockedCommon() local 577 res = mConsumer->getAndFlushRemovedBuffers(&removedBuffers); in getBufferLockedCommon() 579 onBuffersRemovedLocked(removedBuffers); in getBufferLockedCommon() 581 if (mUseBufferManager && removedBuffers.size() > 0) { in getBufferLockedCommon() 582 mBufferManager->onBuffersRemoved(getId(), getStreamSetId(), removedBuffers.size()); in getBufferLockedCommon() 751 const std::vector<sp<GraphicBuffer>>& removedBuffers) { in onBuffersRemovedLocked() argument 754 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() 795 std::vector<sp<GraphicBuffer>> removedBuffers; in detachBufferLocked() local 796 res = mConsumer->getAndFlushRemovedBuffers(&removedBuffers); in detachBufferLocked() 798 onBuffersRemovedLocked(removedBuffers); in detachBufferLocked()
|
/frameworks/native/libs/gui/tests/ |
D | Surface_test.cpp | 432 std::vector<sp<GraphicBuffer>> removedBuffers; in TEST_F() local 433 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F() 434 ASSERT_EQ(1u, removedBuffers.size()); in TEST_F() 435 ASSERT_EQ(detachedBuffer->handle, removedBuffers.at(0)->handle); in TEST_F() 437 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F() 438 ASSERT_EQ(0u, removedBuffers.size()); in TEST_F() 444 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F() 445 ASSERT_EQ(0u, removedBuffers.size()); in TEST_F() 451 ASSERT_EQ(OK, surface->getAndFlushRemovedBuffers(&removedBuffers)); in TEST_F() 452 ASSERT_EQ(1u, removedBuffers.size()); in TEST_F() [all …]
|