Home
last modified time | relevance | path

Searched refs:producer (Results 1 – 25 of 91) sorted by relevance

1234

/frameworks/native/services/vr/bufferhubd/
Dconsumer_channel.cpp21 const std::shared_ptr<Channel> producer) in ConsumerChannel() argument
24 producer_(producer) { in ConsumerChannel()
33 if (auto producer = GetProducer()) { in ~ConsumerChannel() local
34 producer->RemoveConsumer(this); in ~ConsumerChannel()
40 if (auto producer = GetProducer()) { in GetBufferInfo() local
42 info = producer->GetBufferInfo(); in GetBufferInfo()
68 auto producer = GetProducer(); in HandleMessage() local
69 if (!producer) in HandleMessage()
80 *producer, &ProducerChannel::OnNewConsumer, message); in HandleMessage()
102 if (auto producer = GetProducer()) { in OnGetBuffer() local
[all …]
Dconsumer_queue_channel.cpp16 const std::shared_ptr<Channel>& producer, bool silent) in ConsumerQueueChannel() argument
18 producer_(producer), in ConsumerQueueChannel()
28 if (auto producer = GetProducer()) { in ~ConsumerQueueChannel() local
29 producer->RemoveConsumer(this); in ~ConsumerQueueChannel()
35 auto producer = GetProducer(); in HandleMessage() local
36 if (!producer) { in HandleMessage()
44 *producer, &ProducerQueueChannel::OnCreateConsumerQueue, message); in HandleMessage()
49 *producer, &ProducerQueueChannel::OnGetQueueInfo, message); in HandleMessage()
73 if (auto producer = GetProducer()) { in GetBufferInfo() local
75 info = producer->GetBufferInfo(); in GetBufferInfo()
/frameworks/native/services/surfaceflinger/
DNativeWindowSurface.cpp29 const sp<IGraphicBufferProducer>& producer) { in createNativeWindowSurface() argument
32 explicit NativeWindowSurface(const sp<IGraphicBufferProducer>& producer) in createNativeWindowSurface() argument
33 : mSurface(new Surface(producer, /* controlledByApp */ false)) {} in createNativeWindowSurface()
45 return std::make_unique<NativeWindowSurface>(producer); in createNativeWindowSurface()
DSurfaceFlingerDefaultFactory.cpp111 const sp<IGraphicBufferProducer>& producer, const sp<SurfaceFlinger>& flinger, in createMonitoredProducer() argument
113 return new MonitoredProducer(producer, flinger, layer); in createMonitoredProducer()
123 const sp<IGraphicBufferProducer>& producer) { in createNativeWindowSurface() argument
124 return surfaceflinger::impl::createNativeWindowSurface(producer); in createNativeWindowSurface()
/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp148 sp<IGraphicBufferProducer> producer; in TEST_F() local
150 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
152 sp<Surface> mSTC = new Surface(producer); in TEST_F()
268 sp<IGraphicBufferProducer> producer; in TEST_F() local
270 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
272 sp<Surface> mSTC = new Surface(producer); in TEST_F()
316 sp<IGraphicBufferProducer> producer; in TEST_F() local
318 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
320 sp<Surface> mSTC = new Surface(producer); in TEST_F()
408 sp<IGraphicBufferProducer> producer; in TEST_F() local
[all …]
/frameworks/base/core/jni/
Dandroid_graphics_SurfaceTexture.cpp55 jfieldID producer; member
99 const sp<IGraphicBufferProducer>& producer) in SurfaceTexture_setProducer() argument
102 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_setProducer()
103 if (producer.get()) { in SurfaceTexture_setProducer()
104 producer->incStrong((void*)SurfaceTexture_setProducer); in SurfaceTexture_setProducer()
109 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); in SurfaceTexture_setProducer()
132 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer()
233 fields.producer = env->GetFieldID(clazz, in SurfaceTexture_classInit()
235 if (fields.producer == NULL) { in SurfaceTexture_classInit()
256 sp<IGraphicBufferProducer> producer; in SurfaceTexture_init() local
[all …]
/frameworks/native/libs/gui/
DBufferQueue.cpp118 sp<IGraphicBufferProducer> producer(new BufferQueueProducer(core, consumerIsSurfaceFlinger)); in createBufferQueue() local
119 LOG_ALWAYS_FATAL_IF(producer == nullptr, in createBufferQueue()
126 *outProducer = producer; in createBufferQueue()
136 sp<IGraphicBufferProducer> producer; in createBufferHubQueue() local
147 producer = BufferHubProducer::Create(producerQueue); in createBufferHubQueue()
150 LOG_ALWAYS_FATAL_IF(producer == nullptr, "BufferQueue: failed to create BufferQueueProducer"); in createBufferHubQueue()
153 *outProducer = producer; in createBufferHubQueue()
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp80 const sp<HGraphicBufferProducer>& producer);
89 int migrate(const sp<HGraphicBufferProducer>& producer,
270 bool getGenerationNumber(const sp<HGraphicBufferProducer> &producer, in getGenerationNumber() argument
279 Return<void> transResult = producer->dequeueBuffer( in getGenerationNumber()
296 (void)producer->detachBuffer(static_cast<int32_t>(slot)).isOk(); in getGenerationNumber()
303 transResult = producer->requestBuffer( in getGenerationNumber()
321 (void)producer->detachBuffer(static_cast<int32_t>(slot)).isOk(); in getGenerationNumber()
324 (void)producer->detachBuffer(static_cast<int32_t>(slot)).isOk(); in getGenerationNumber()
560 void configureProducer(const sp<HGraphicBufferProducer> &producer) { in configureProducer() argument
564 if (producer) { in configureProducer()
[all …]
/frameworks/native/libs/nativedisplay/surfacetexture/
Dsurface_texture.cpp37 android::sp<android::IGraphicBufferProducer> producer; member
46 jfieldID producer; member
62 fields.producer = env->GetFieldID(clazz, in SurfaceTexture_classInit()
64 if (fields.producer == NULL) { in SurfaceTexture_classInit()
105 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer()
115 ast->producer = SurfaceTexture_getProducer(env, surfacetexture); in ASurfaceTexture_fromSurfaceTexture()
120 sp<Surface> surface = new Surface(st->producer); in ASurfaceTexture_acquireANativeWindow()
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp100 sp<IGraphicBufferProducer> producer; in createOffscreenSurface() local
102 BufferQueue::createBufferQueue(&producer, &consumer); in createOffscreenSurface()
103 producer->setMaxDequeuedBufferCount(3); in createOffscreenSurface()
104 producer->setAsyncMode(true); in createOffscreenSurface()
108 mSurface = new Surface(producer); in createOffscreenSurface()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3InputStream.cpp175 sp<IGraphicBufferProducer> *producer) { in getInputBufferProducerLocked() argument
178 if (producer == NULL) { in getInputBufferProducerLocked()
185 *producer = mProducer; in getInputBufferProducerLocked()
234 sp<IGraphicBufferProducer> producer; in configureQueueLocked() local
236 BufferQueue::createBufferQueue(&producer, &consumer); in configureQueueLocked()
239 res = producer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &minUndequeuedBuffers); in configureQueueLocked()
270 mProducer = producer; in configureQueueLocked()
/frameworks/native/libs/gui/tests/
DSurfaceTextureGL.h40 sp<IGraphicBufferProducer> producer; in SetUp() local
41 BufferQueue::createBufferQueue(&producer, &mConsumer); in SetUp()
44 mSTC = new Surface(producer); in SetUp()
DMalicious.cpp30 explicit ProxyBQP(const sp<IGraphicBufferProducer>& producer) : mProducer(producer) {} in ProxyBQP() argument
105 explicit MaliciousBQP(const sp<IGraphicBufferProducer>& producer) : ProxyBQP(producer) {} in MaliciousBQP() argument
140 sp<IGraphicBufferProducer> producer; in getMaliciousBQP() local
142 BufferQueue::createBufferQueue(&producer, &consumer); in getMaliciousBQP()
146 sp<MaliciousBQP> malicious = new MaliciousBQP(producer); in getMaliciousBQP()
DSurface_test.cpp123 sp<IGraphicBufferProducer> producer; in testSurfaceListener() local
125 BufferQueue::createBufferQueue(&producer, &consumer); in testSurfaceListener()
131 sp<Surface> surface = new Surface(producer); in testSurfaceListener()
306 sp<IGraphicBufferProducer> producer; in TEST_F() local
308 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
311 sp<Surface> s = new Surface(producer); in TEST_F()
324 sp<IGraphicBufferProducer> producer; in TEST_F() local
326 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
331 sp<Surface> s = new Surface(producer); in TEST_F()
345 sp<IGraphicBufferProducer> producer; in TEST_F() local
[all …]
DMultiTextureConsumer_test.cpp37 sp<IGraphicBufferProducer> producer; in SetUp() local
39 BufferQueue::createBufferQueue(&producer, &consumer); in SetUp()
42 mSurface = new Surface(producer); in SetUp()
/frameworks/native/services/surfaceflinger/tests/
DLayerTransaction_test.cpp120 const auto producer = layer->getIGraphicBufferProducer(); in TEST_F() local
124 producer->connect(dummyListener, NATIVE_WINDOW_API_CPU, true, &queueBufferOutput)); in TEST_F()
142 producer->dequeueBuffer(&slot, &fence, width, height, PIXEL_FORMAT_RGBA_8888, in TEST_F()
147 ASSERT_EQ(OK, producer->requestBuffer(slot, &newBuf)); in TEST_F()
163 ASSERT_EQ(OK, producer->queueBuffer(slot, input, &output)); in TEST_F()
194 ASSERT_EQ(OK, producer->disconnect(NATIVE_WINDOW_API_CPU)); in TEST_F()
DTransactionTestHarnesses.h48 sp<IGraphicBufferProducer> producer; in getScreenCapture() local
51 BufferQueue::createBufferQueue(&producer, &consumer); in getScreenCapture()
65 t.setDisplaySurface(vDisplay, producer); in getScreenCapture()
/frameworks/av/media/codec2/core/include/
DC2BufferBase.h82 inline C2MemoryUsage(uint64_t consumer, uint64_t producer) in C2MemoryUsage()
83 : expected(consumer | producer) { } in C2MemoryUsage()
/frameworks/native/opengl/tools/glgen/stubs/egl/
DeglCreateWindowSurface.cpp90 android::sp<android::IGraphicBufferProducer> producer; in android_eglCreateWindowSurfaceTexture() local
111 producer = android::SurfaceTexture_getProducer(_env, win); in android_eglCreateWindowSurfaceTexture()
113 if (producer == NULL) in android_eglCreateWindowSurfaceTexture()
116 window = new android::Surface(producer, true); in android_eglCreateWindowSurfaceTexture()
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.cpp294 for (const auto& producer : mAllMetricProducers) { in init() local
295 producer->prepareFirstBucket(); in init()
319 for (const auto& producer : mAllMetricProducers) { in dumpStates() local
320 producer->dumpStates(out, verbose); in dumpStates()
325 for (const auto& producer : mAllMetricProducers) { in dropData() local
326 producer->dropData(dropTimeNs); in dropData()
338 for (const auto& producer : mAllMetricProducers) { in onDumpReport() local
339 if (mNoReportMetricIds.find(producer->getMetricId()) == mNoReportMetricIds.end()) { in onDumpReport()
343 producer->onDumpReport(dumpTimeStampNs, include_current_partial_bucket, erase_data, in onDumpReport()
346 producer->onDumpReport(dumpTimeStampNs, include_current_partial_bucket, erase_data, in onDumpReport()
[all …]
/frameworks/native/libs/vr/libvrflinger/
Ddisplay_surface.cpp220 auto producer = ProducerQueue::Create(config, UsagePolicy{}); in OnCreateQueue() local
221 if (!producer) { in OnCreateQueue()
229 producer->CreateSilentConsumerQueue(); in OnCreateQueue()
242 return std::move(producer->GetChannelHandle()); in OnCreateQueue()
292 auto producer = ProducerQueue::Create( in OnCreateQueue() local
294 if (!producer) { in OnCreateQueue()
301 direct_queue_ = producer->CreateConsumerQueue(); in OnCreateQueue()
314 return std::move(producer->GetChannelHandle()); in OnCreateQueue()
/frameworks/av/cmds/screenrecord/
DFrameOutput.cpp70 sp<IGraphicBufferProducer> producer; in createInputSurface() local
72 BufferQueue::createBufferQueue(&producer, &consumer); in createInputSurface()
77 producer->setMaxDequeuedBufferCount(4); in createInputSurface()
84 *pBufferProducer = producer; in createInputSurface()
/frameworks/av/media/codec2/vndk/include/
DC2BqBufferPriv.h47 typedef std::function<void(uint64_t producer, int32_t slot, int64_t nsecs)> OnRenderCallback;
68 virtual void configureProducer(const android::sp<HGraphicBufferProducer> &producer);
/frameworks/native/libs/vr/libbufferhubqueue/benchmarks/
Dbuffer_transport_benchmark.cpp67 IGraphicBufferProducer::asBinder(new_queue->producer)); in onTransact()
114 BufferQueue::createBufferQueue(&producer, &consumer); in BufferQueueHolder()
124 sp<IGraphicBufferProducer> producer; member
186 auto producer = interface_cast<IGraphicBufferProducer>(binder); in CreateSurface() local
187 if (producer == nullptr) { in CreateSurface()
192 sp<Surface> surface = new Surface(producer, /*controlledByApp=*/true); in CreateSurface()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp77 void setProducer(const sp<Surface>& producer) { mProducer = producer; } in setProducer() argument
387 sp<Surface> producer = new Surface(bufferProducer, /*controlledByApp*/false); in ImageWriter_init() local
388 ctx->setProducer(producer); in ImageWriter_init()
394 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init()
405 sp<ANativeWindow> anw = producer; in ImageWriter_init()
539 ANativeWindow* producer = ctx->getProducer(); in ImageWriter_close() local
540 if (producer != NULL) { in ImageWriter_close()
546 status_t res = native_window_api_disconnect(producer, /*api*/NATIVE_WINDOW_API_CAMERA); in ImageWriter_close()

1234