Home
last modified time | relevance | path

Searched refs:mProducer (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp101 mProducer = BufferHubProducer::Create(std::move(queue)); in SetUp()
102 ASSERT_TRUE(mProducer != nullptr); in SetUp()
103 mSurface = new Surface(mProducer, true); in SetUp()
111 ASSERT_EQ(OK, mProducer->connect(kDummyListener, kTestApi, in ConnectProducer()
126 int ret = mProducer->dequeueBuffer( in DequeueBuffer()
145 sp<BufferHubProducer> mProducer; member in android::dvr::__anon3978ae580111::BufferHubQueueProducerTest
153 EXPECT_EQ(BAD_VALUE, mProducer->connect(kDummyListener, kTestApi, in TEST_F()
157 EXPECT_EQ(BAD_VALUE, mProducer->connect(kDummyListener, kTestApiInvalid, in TEST_F()
166 EXPECT_EQ(BAD_VALUE, mProducer->connect(kDummyListener, kTestApi, in TEST_F()
173 ASSERT_EQ(OK, mProducer->disconnect(kTestApi)); in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DIGraphicBufferProducer_test.cpp96 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp()
100 BufferQueue::createBufferHubQueue(&mProducer, &mConsumer); in SetUp()
129 return mProducer->connect(TEST_TOKEN, in TryConnectProducer()
224 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage, in dequeueBuffer()
240 (mProducer->dequeueBuffer(slot, fence, DEFAULT_WIDTH, DEFAULT_HEIGHT, in setupDequeueRequestBuffer()
248 ASSERT_OK(mProducer->requestBuffer(*slot, buffer)); in setupDequeueRequestBuffer()
255 sp<IGraphicBufferProducer> mProducer; member in android::IGraphicBufferProducerTest
263 EXPECT_EQ(BAD_VALUE, mProducer->connect(TEST_TOKEN, in TEST_P()
269 EXPECT_EQ(BAD_VALUE, mProducer->connect(TEST_TOKEN, in TEST_P()
282 EXPECT_EQ(BAD_VALUE, mProducer->connect(TEST_TOKEN, in TEST_P()
[all …]
DBufferQueue_test.cpp65 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount()
71 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in createBufferQueue()
95 sp<IGraphicBufferProducer> mProducer; member in android::BufferQueueTest
130 mProducer = interface_cast<IGraphicBufferProducer>(binderProducer); in TEST_F()
131 EXPECT_TRUE(mProducer != nullptr); in TEST_F()
141 mProducer->connect(nullptr, NATIVE_WINDOW_API_CPU, false, &output)); in TEST_F()
147 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
149 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
160 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
177 mProducer->connect(new DummyProducerListener, NATIVE_WINDOW_API_CPU, false, in TEST_F()
[all …]
DMalicious.cpp30 explicit ProxyBQP(const sp<IGraphicBufferProducer>& producer) : mProducer(producer) {} in ProxyBQP()
34 return mProducer->requestBuffer(slot, buf); in requestBuffer()
37 return mProducer->setMaxDequeuedBufferCount(maxDequeuedBuffers); in setMaxDequeuedBufferCount()
39 status_t setAsyncMode(bool async) override { return mProducer->setAsyncMode(async); } in setAsyncMode()
43 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage, outBufferAge, in dequeueBuffer()
46 status_t detachBuffer(int slot) override { return mProducer->detachBuffer(slot); } in detachBuffer()
48 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer()
51 return mProducer->attachBuffer(outSlot, buffer); in attachBuffer()
55 return mProducer->queueBuffer(slot, input, output); in queueBuffer()
58 return mProducer->cancelBuffer(slot, fence); in cancelBuffer()
[all …]
DBufferItemConsumer_test.cpp46 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp()
57 mProducer->connect(producerListener, NATIVE_WINDOW_API_CPU, in SetUp()
60 mProducer->setMaxDequeuedBufferCount(kMaxLockedBuffers)); in SetUp()
79 status_t ret = mProducer->dequeueBuffer(&slot, &outFence, kWidth, kHeight, 0, 0, in DequeueBuffer()
85 ret = mProducer->requestBuffer(slot, &mBuffers[slot]); in DequeueBuffer()
97 status_t ret = mProducer->queueBuffer(slot, bufferInput, &bufferOutput); in QueueBuffer()
126 sp<IGraphicBufferProducer> mProducer; member in android::BufferItemConsumerTest
164 status_t ret = mProducer->detachBuffer(slot); in TEST_F()
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp28 mProducer(producer), in MonitoredProducer()
47 return mProducer->requestBuffer(slot, buf); in requestBuffer()
52 return mProducer->setMaxDequeuedBufferCount(maxDequeuedBuffers); in setMaxDequeuedBufferCount()
56 return mProducer->setAsyncMode(async); in setAsyncMode()
63 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage, outBufferAge, outTimestamps); in dequeueBuffer()
67 return mProducer->detachBuffer(slot); in detachBuffer()
72 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer()
77 return mProducer->attachBuffer(outSlot, buffer); in attachBuffer()
82 return mProducer->queueBuffer(slot, input, output); in queueBuffer()
86 return mProducer->cancelBuffer(slot, fence); in cancelBuffer()
[all …]
DBufferQueueLayer.cpp530 mProducer = new MonitoredProducer(producer, mFlinger, this); in onFirstRef()
543 mProducer->setMaxDequeuedBufferCount(2); in onFirstRef()
570 return mProducer; in getProducer()
575 int ret = mProducer->query(NATIVE_WINDOW_STICKY_TRANSFORM, &producerStickyTransform); in getProducerStickyTransform()
DBufferQueueLayer.h119 sp<IGraphicBufferProducer> mProducer; variable
DMonitoredProducer.h78 sp<IGraphicBufferProducer> mProducer;
/frameworks/native/services/surfaceflinger/tests/
DVirtualDisplay_test.cpp32 BufferQueue::createBufferQueue(&mProducer, &consumer); in SetUp()
39 sp<IGraphicBufferProducer> mProducer; member in android::__anondec5c1260111::VirtualDisplayTest
48 t.setDisplaySurface(virtualDisplay, mProducer); in TEST_F()
56 sp<Surface> surface = new Surface(mProducer); in TEST_F()
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp350 Return<void> transResult = mProducer->dequeueBuffer( in fetchFromIgbp_l()
398 (void)mProducer->cancelBuffer(slot, hFenceWrapper.getHandle()).isOk(); in fetchFromIgbp_l()
403 (void)mProducer->cancelBuffer(slot, hFenceWrapper.getHandle()).isOk(); in fetchFromIgbp_l()
423 Return<void> transResult = mProducer->requestBuffer( in fetchFromIgbp_l()
443 (void)mProducer->cancelBuffer(slot, hFenceWrapper.getHandle()).isOk(); in fetchFromIgbp_l()
479 (void)mProducer->cancelBuffer(slot, hFenceWrapper.getHandle()).isOk(); in fetchFromIgbp_l()
494 if (!noInit && mProducer) { in ~Impl()
496 mProducer->detachBuffer(static_cast<int32_t>(i)); in ~Impl()
586 if (!noInit && mProducer) { in configureProducer()
588 mProducer->detachBuffer(static_cast<int32_t>(i)); in configureProducer()
[all …]
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.h41 return mProducer; in getIGraphicBufferProducer()
61 sp<IGraphicBufferProducer> mProducer; member
DGraphicBufferListener.cpp37 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in init()
/frameworks/av/cmds/screenrecord/
DOverlay.cpp87 *pBufferProducer = mProducer; in start()
173 BufferQueue::createBufferQueue(&mProducer, &consumer); in setup_l()
178 mProducer->setMaxDequeuedBufferCount(4); in setup_l()
191 mProducer.clear(); in release_l()
DOverlay.h128 sp<IGraphicBufferProducer> mProducer; variable
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3InputStream.cpp179 } else if (mProducer == NULL) { in getInputBufferProducerLocked()
184 *producer = mProducer; in getInputBufferProducerLocked()
269 mProducer = producer; in configureQueueLocked()
DCamera3InputStream.h53 sp<IGraphicBufferProducer> mProducer; variable
/frameworks/av/services/camera/libcameraservice/api1/client2/
DZslProcessor.cpp139 mProducer(nullptr), in ZslProcessor()
253 mProducer = new RingBufferConsumer(consumer, GRALLOC_USAGE_HW_CAMERA_ZSL, in updateStream()
255 mProducer->setName(String8("Camera2-ZslRingBufferConsumer")); in updateStream()
596 mInputBuffer = mProducer->pinSelectedBuffer(timestampFinder, in enqueueInputBufferByTimestamp()
647 *latestTimestamp = mProducer->getLatestTimestamp(); in clearInputRingBufferLocked()
651 return mProducer->clear(); in clearInputRingBufferLocked()
DZslProcessor.h141 sp<RingBufferConsumer> mProducer; variable
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputSurface.cpp122 return mProducer; in getGraphicBufferProducer()
161 mProducer{producer},
/frameworks/av/media/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/
DInputSurface.h66 sp<HGraphicBufferProducer> mProducer; member
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.cpp330 mProducer.clear(); in ~CameraHardwareInterfaceFlashControl()
483 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in initializePreviewWindow()
501 mSurface = new Surface(mProducer, /*useAsync*/ true); in initializePreviewWindow()
DCameraFlashlight.h172 sp<IGraphicBufferProducer> mProducer; variable
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp77 void setProducer(const sp<Surface>& producer) { mProducer = producer; } in setProducer()
78 Surface* getProducer() { return mProducer.get(); } in getProducer()
93 sp<Surface> mProducer; member in JNIImageWriterContext
233 mProducer.clear(); in ~JNIImageWriterContext()
273 sBufferDetacher.detach(mProducer); in onBufferReleased()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java81 private long mProducer; field in SurfaceTexture

12