/frameworks/native/services/surfaceflinger/ |
D | BufferQueueLayer.cpp | 39 mConsumer->abandon(); in ~BufferQueueLayer() 47 mConsumer->setReleaseFence(releaseFence); in onLayerDisplayed() 51 mConsumer->setTransformHint(orientation); in setTransformHint() 56 status_t result = mConsumer->getOccupancyHistory(forceFlush, &history); in getOccupancyHistory() 65 return mConsumer->getTransformToDisplayInverse(); in getTransformToDisplayInverse() 69 if (!mConsumer->releasePendingBuffer()) { in releasePendingBuffer() 73 auto releaseFenceTime = std::make_shared<FenceTime>(mConsumer->getPrevFinalReleaseFence()); in releasePendingBuffer() 85 mConsumer->setDefaultBufferSize(w, h); in setDefaultBufferSize() 150 return mConsumer->getTimestamp(); in getDesiredPresentTime() 154 return mConsumer->getCurrentFenceTime(); in getCurrentFenceTime() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BufferQueue_test.cpp | 71 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in createBufferQueue() 96 sp<IGraphicBufferConsumer> mConsumer; member in android::BufferQueueTest 134 mConsumer = interface_cast<IGraphicBufferConsumer>(binderConsumer); in TEST_F() 135 EXPECT_TRUE(mConsumer != nullptr); in TEST_F() 138 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F() 163 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F() 175 mConsumer->consumerConnect(dc, false); in TEST_F() 195 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F() 205 ASSERT_EQ(INVALID_OPERATION, mConsumer->acquireBuffer(&item, 0)); in TEST_F() 211 mConsumer->consumerConnect(dc, false); in TEST_F() [all …]
|
D | SurfaceTextureGL.h | 41 BufferQueue::createBufferQueue(&producer, &mConsumer); in SetUp() 42 mST = new GLConsumer(mConsumer, TEX_ID, GLConsumer::TEXTURE_EXTERNAL, in SetUp() 64 sp<IGraphicBufferConsumer> mConsumer; variable
|
D | IGraphicBufferProducer_test.cpp | 96 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp() 100 BufferQueue::createBufferHubQueue(&mProducer, &mConsumer); in SetUp() 117 ASSERT_OK(mConsumer->consumerConnect(mDC, /*controlledByApp*/false)); in SetUp() 256 sp<IGraphicBufferConsumer> mConsumer; member in android::IGraphicBufferProducerTest 287 ASSERT_OK(mConsumer->consumerDisconnect()); in TEST_P() 364 ASSERT_OK(mConsumer->consumerDisconnect()); in TEST_P() 501 ASSERT_OK(mConsumer->consumerDisconnect()); in TEST_P() 617 ASSERT_OK(mConsumer->consumerDisconnect()); in TEST_P() 633 ASSERT_OK(mConsumer->setMaxAcquiredBufferCount(1)) << "maxAcquire: " << 1; in TEST_P() 674 ASSERT_OK(mConsumer->consumerDisconnect()); in TEST_P()
|
D | BufferItemConsumer_test.cpp | 46 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp() 48 new BufferItemConsumer(mConsumer, kFormat, kMaxLockedBuffers, true); in SetUp() 127 sp<IGraphicBufferConsumer> mConsumer; member in android::BufferItemConsumerTest
|
/frameworks/native/libs/gui/ |
D | ConsumerBase.cpp | 60 mConsumer(bufferQueue), in ConsumerBase() 72 status_t err = mConsumer->consumerConnect(proxy, controlledByApp); in ConsumerBase() 77 mConsumer->setConsumerName(mName); in ConsumerBase() 145 mConsumer->getReleasedBuffers(&mask); in onBuffersReleased() 176 mConsumer->consumerDisconnect(); in abandonLocked() 177 mConsumer.clear(); in abandonLocked() 192 mConsumer->setConsumerName(name); in setName() 211 status_t result = mConsumer->detachBuffer(slot); in detachBuffer() 228 return mConsumer->setDefaultBufferSize(width, height); in setDefaultBufferSize() 237 return mConsumer->setDefaultBufferFormat(defaultFormat); in setDefaultBufferFormat() [all …]
|
D | BufferItemConsumer.cpp | 40 status_t err = mConsumer->setConsumerUsageBits(consumerUsage); in BufferItemConsumer() 44 err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in BufferItemConsumer()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsSourceConsumerTest.java | 58 private InsetsSourceConsumer mConsumer; field in InsetsSourceConsumerTest 80 mConsumer = new InsetsSourceConsumer(TYPE_TOP_BAR, new InsetsState(), in setup() 85 mConsumer.setControl(new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point())); in setup() 90 mConsumer.hide(); in testHide() 96 mConsumer.hide(); in testShow() 97 mConsumer.show(); in testShow() 103 mConsumer.setControl(null); in testRestore() 105 mConsumer.hide(); in testRestore() 107 mConsumer.setControl(new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point())); in testRestore()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3OutputStream.cpp | 43 mConsumer(consumer), in Camera3OutputStream() 52 if (mConsumer == NULL) { in Camera3OutputStream() 68 mConsumer(consumer), in Camera3OutputStream() 84 if (mConsumer == NULL) { in Camera3OutputStream() 101 mConsumer(nullptr), in Camera3OutputStream() 230 sp<ANativeWindow> currentConsumer = mConsumer; in returnBufferCheckedLocked() 274 res = native_window_set_buffers_timestamp(mConsumer.get(), in returnBufferCheckedLocked() 333 res = native_window_set_buffers_transform(mConsumer.get(), in setTransformLocked() 366 mConsumer->setDequeueTimeout(0); in configureQueueLocked() 368 mConsumer->setDequeueTimeout(kDequeueBufferTimeout); in configureQueueLocked() [all …]
|
D | Camera3InputStream.cpp | 68 assert(mConsumer != 0); in getInputBufferLocked() 72 res = mConsumer->acquireBuffer(&bufferItem, /*waitForFence*/false); in getInputBufferLocked() 155 res = mConsumer->releaseBuffer(bufferItem, releaseFence); in returnBufferCheckedLocked() 198 mConsumer->abandon(); in disconnectLocked() 232 if (mConsumer.get() == 0) { in configureQueueLocked() 265 mConsumer = new BufferItemConsumer(consumer, mUsage, in configureQueueLocked() 267 mConsumer->setName(String8::format("Camera3-InputStream-%d", mId)); in configureQueueLocked() 271 mConsumer->setBufferFreedListener(this); in configureQueueLocked() 274 res = mConsumer->setDefaultBufferSize(camera3_stream::width, in configureQueueLocked() 281 res = mConsumer->setDefaultBufferFormat(camera3_stream::format); in configureQueueLocked()
|
D | Camera3StreamSplitter.cpp | 53 if (mOutputs.size() > 0 || mConsumer != nullptr) { in connect() 80 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in connect() 87 mBufferItemConsumer = new BufferItemConsumer(mConsumer, consumerUsage, mMaxConsumerBuffers); in connect() 91 mConsumer->setConsumerName(mConsumerName); in connect() 105 res = mConsumer->consumerConnect(this, /* controlledByApp */ false); in connect() 142 if (mConsumer.get() != nullptr) { in disconnect() 143 mConsumer->consumerDisconnect(); in disconnect() 175 res = mConsumer->setMaxAcquiredBufferCount(mMaxConsumerBuffers); in addOutput() 284 res = mConsumer->setMaxAcquiredBufferCount(mMaxConsumerBuffers); in removeOutput() 486 status_t res = mConsumer->acquireBuffer(&bufferItem, /* presentWhen */ 0); in onFrameAvailable() [all …]
|
D | Camera3InputStream.h | 52 sp<BufferItemConsumer> mConsumer;
|
/frameworks/av/media/libstagefright/filters/ |
D | GraphicBufferListener.cpp | 37 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in init() 38 mConsumer->setConsumerName(name); in init() 39 mConsumer->setDefaultBufferSize(bufferWidth, bufferHeight); in init() 40 mConsumer->setConsumerUsageBits(GRALLOC_USAGE_SW_READ_OFTEN); in init() 42 status_t err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in init() 54 err = mConsumer->consumerConnect(proxy, false); in init() 101 status_t err = mConsumer->acquireBuffer(&item, 0); in getBufferItem() 149 mConsumer->releaseBuffer(item.mSlot, item.mFrameNumber, in releaseBuffer()
|
D | GraphicBufferListener.h | 62 sp<IGraphicBufferConsumer> mConsumer; member
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestContext.cpp | 96 mConsumer = new BufferItemConsumer(consumer, GRALLOC_USAGE_HW_COMPOSER, 4); in createOffscreenSurface() 97 mConsumer->setDefaultBufferSize(gDisplay.w, gDisplay.h); in createOffscreenSurface() 107 if (mConsumer.get()) { in waitForVsync() 109 if (mConsumer->acquireBuffer(&buffer, 0, false) == OK) { in waitForVsync() 112 mConsumer->releaseBuffer(buffer); in waitForVsync()
|
D | TestContext.h | 63 sp<BufferItemConsumer> mConsumer; variable
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 35 InputConsumer* mConsumer; member in android::InputPublisherAndConsumerTest 43 mConsumer = new InputConsumer(clientChannel); in SetUp() 52 if (mConsumer) { in TearDown() 53 delete mConsumer; in TearDown() 54 mConsumer = nullptr; in TearDown() 67 EXPECT_EQ(clientChannel.get(), mConsumer->getChannel().get()); in TEST_F() 93 status = mConsumer->consume(&mEventFactory, true /*consumeBatches*/, -1, &consumeSeq, &event); in PublishAndConsumeKeyEvent() 116 status = mConsumer->sendFinishedSignal(seq, true); in PublishAndConsumeKeyEvent() 180 status = mConsumer->consume(&mEventFactory, true /*consumeBatches*/, -1, &consumeSeq, &event); in PublishAndConsumeMotionEvent() 236 status = mConsumer->sendFinishedSignal(seq, false); in PublishAndConsumeMotionEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | DataChangedJournalTest.java | 52 @Mock private Consumer<String> mConsumer; field in DataChangedJournalTest 102 mJournal.forEach(mConsumer); in forEach_iteratesThroughPackagesInFileInOrder() 104 InOrder inOrder = Mockito.inOrder(mConsumer); in forEach_iteratesThroughPackagesInFileInOrder() 105 inOrder.verify(mConsumer).accept(GMAIL); in forEach_iteratesThroughPackagesInFileInOrder() 106 inOrder.verify(mConsumer).accept(DOCS); in forEach_iteratesThroughPackagesInFileInOrder()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | LocalIntentReceiver.java | 30 final Consumer<Intent> mConsumer; field in LocalIntentReceiver 33 mConsumer = consumer; in LocalIntentReceiver() 40 mConsumer.accept(intent);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 69 mConsumer->setConsumerName(mName); in FramebufferSurface() 70 mConsumer->setConsumerUsageBits(GRALLOC_USAGE_HW_FB | in FramebufferSurface() 74 mConsumer->setDefaultBufferSize(activeConfig->getWidth(), in FramebufferSurface() 76 mConsumer->setMaxAcquiredBufferCount( in FramebufferSurface() 81 mConsumer->setDefaultBufferSize(width, height); in resizeBuffers()
|
/frameworks/av/services/camera/libcameraservice/gui/ |
D | RingBufferConsumer.h | 122 mConsumer(consumer), in PinnedBufferItem() 127 sp<RingBufferConsumer> consumer = mConsumer.promote(); in ~PinnedBufferItem() 141 wp<RingBufferConsumer> mConsumer;
|
D | RingBufferConsumer.cpp | 47 mConsumer->setConsumerUsageBits(consumerUsage); in RingBufferConsumer() 48 mConsumer->setMaxAcquiredBufferCount(bufferCount); in RingBufferConsumer() 59 mConsumer->setConsumerName(name); in setName() 363 return mConsumer->setDefaultBufferSize(w, h); in setDefaultBufferSize() 368 return mConsumer->setDefaultBufferFormat(defaultFormat); in setDefaultBufferFormat() 373 return mConsumer->setConsumerUsageBits(usage); in setConsumerUsage()
|
/frameworks/av/media/libstagefright/bqhelper/ |
D | GraphicBufferSource.cpp | 351 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in GraphicBufferSource() 352 mConsumer->setConsumerName(name); in GraphicBufferSource() 361 mInitCheck = mConsumer->consumerConnect(proxy, false); in GraphicBufferSource() 388 if (mConsumer != NULL) { in ~GraphicBufferSource() 389 status_t err = mConsumer->consumerDisconnect(); in ~GraphicBufferSource() 933 status_t err = mConsumer->acquireBuffer(&bi, 0); in acquireBuffer_l() 978 mConsumer->releaseBuffer( in acquireBuffer_l() 1052 if (mConsumer->getReleasedBuffers(&releaseMask) != NO_ERROR) { in onBuffersReleased() 1142 status_t err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in configure() 1153 err = mConsumer->setDefaultBufferSize(frameWidth, frameHeight); in configure() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | BufferGenerator.cpp | 42 : mConsumer(consumer), mCallback(callback) {} in BufferListener() 47 if (mConsumer->acquireBuffer(&item, 0)) return; in onFrameAvailable() 48 if (mConsumer->detachBuffer(item.mSlot)) return; in onFrameAvailable() 54 sp<IGraphicBufferConsumer> mConsumer; member in android::SurfaceManager::BufferListener
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestBuffer.cpp | 55 : mConsumer(consumer), in BufferListener() 63 if (mConsumer->acquireBuffer(&item, 0)) in onFrameAvailable() 65 if (mConsumer->detachBuffer(item.mSlot)) in onFrameAvailable() 72 sp<IGraphicBufferConsumer> mConsumer; member in Hwc2TestSurfaceManager::BufferListener
|