/frameworks/native/services/vr/bufferhubd/ |
D | consumer_channel.cpp | 21 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 …]
|
D | consumer_queue_channel.cpp | 16 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/libs/gui/ |
D | BufferQueue.cpp | 97 sp<IGraphicBufferProducer> producer(new BufferQueueProducer(core, consumerIsSurfaceFlinger)); in createBufferQueue() local 98 LOG_ALWAYS_FATAL_IF(producer == nullptr, in createBufferQueue() 105 *outProducer = producer; in createBufferQueue() 115 sp<IGraphicBufferProducer> producer; in createBufferHubQueue() local 126 producer = BufferHubProducer::Create(producerQueue); in createBufferHubQueue() 129 LOG_ALWAYS_FATAL_IF(producer == nullptr, "BufferQueue: failed to create BufferQueueProducer"); in createBufferHubQueue() 132 *outProducer = producer; in createBufferHubQueue()
|
D | BufferHubProducer.cpp | 30 sp<BufferHubProducer> producer = new BufferHubProducer; in Create() local 31 producer->queue_ = queue; in Create() 32 return producer; in Create() 42 sp<BufferHubProducer> producer = new BufferHubProducer; in Create() local 43 producer->queue_ = ProducerQueue::Import(parcelable.TakeChannelHandle()); in Create() 44 return producer; in Create()
|
/frameworks/base/core/jni/android/graphics/ |
D | SurfaceTexture.cpp | 54 jfieldID producer; member 98 const sp<IGraphicBufferProducer>& producer) in SurfaceTexture_setProducer() argument 101 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_setProducer() 102 if (producer.get()) { in SurfaceTexture_setProducer() 103 producer->incStrong((void*)SurfaceTexture_setProducer); in SurfaceTexture_setProducer() 108 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); in SurfaceTexture_setProducer() 131 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer() 136 sp<IGraphicBufferProducer> producer(SurfaceTexture_getProducer(env, thiz)); in android_SurfaceTexture_getNativeWindow() local 137 sp<Surface> surfaceTextureClient(surfaceTexture != NULL ? new Surface(producer) : NULL); in android_SurfaceTexture_getNativeWindow() 239 fields.producer = env->GetFieldID(clazz, in SurfaceTexture_classInit() [all …]
|
/frameworks/native/opengl/tests/EGLTest/ |
D | EGL_test.cpp | 149 sp<IGraphicBufferProducer> producer; in TEST_F() local 151 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 153 sp<Surface> mSTC = new Surface(producer); in TEST_F() 269 sp<IGraphicBufferProducer> producer; in TEST_F() local 271 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 273 sp<Surface> mSTC = new Surface(producer); in TEST_F() 317 sp<IGraphicBufferProducer> producer; in TEST_F() local 319 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 321 sp<Surface> mSTC = new Surface(producer); in TEST_F() 409 sp<IGraphicBufferProducer> producer; in TEST_F() local [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | NativeWindowSurface.cpp | 29 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()
|
D | SurfaceFlingerFactory.cpp | 109 const sp<IGraphicBufferProducer>& producer) override { in createSurfaceFlinger() argument 110 return surfaceflinger::impl::createNativeWindowSurface(producer); in createSurfaceFlinger()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestContext.cpp | 91 sp<IGraphicBufferProducer> producer; in createOffscreenSurface() local 93 BufferQueue::createBufferQueue(&producer, &consumer); in createOffscreenSurface() 94 producer->setMaxDequeuedBufferCount(3); in createOffscreenSurface() 95 producer->setAsyncMode(true); in createOffscreenSurface() 98 mSurface = new Surface(producer); in createOffscreenSurface()
|
/frameworks/av/media/codec2/vndk/platform/ |
D | C2BqBuffer.cpp | 80 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/av/services/camera/libcameraservice/device3/ |
D | Camera3InputStream.cpp | 174 sp<IGraphicBufferProducer> *producer) { in getInputBufferProducerLocked() argument 177 if (producer == NULL) { in getInputBufferProducerLocked() 184 *producer = mProducer; in getInputBufferProducerLocked() 233 sp<IGraphicBufferProducer> producer; in configureQueueLocked() local 235 BufferQueue::createBufferQueue(&producer, &consumer); in configureQueueLocked() 238 res = producer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &minUndequeuedBuffers); in configureQueueLocked() 269 mProducer = producer; in configureQueueLocked()
|
/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureGL.h | 40 sp<IGraphicBufferProducer> producer; in SetUp() local 41 BufferQueue::createBufferQueue(&producer, &mConsumer); in SetUp() 44 mSTC = new Surface(producer); in SetUp()
|
D | Malicious.cpp | 30 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()
|
D | Surface_test.cpp | 124 sp<IGraphicBufferProducer> producer; in testSurfaceListener() local 126 BufferQueue::createBufferQueue(&producer, &consumer); in testSurfaceListener() 132 sp<Surface> surface = new Surface(producer); in testSurfaceListener() 307 sp<IGraphicBufferProducer> producer; in TEST_F() local 309 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 312 sp<Surface> s = new Surface(producer); in TEST_F() 325 sp<IGraphicBufferProducer> producer; in TEST_F() local 327 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 332 sp<Surface> s = new Surface(producer); in TEST_F() 346 sp<IGraphicBufferProducer> producer; in TEST_F() local [all …]
|
D | MultiTextureConsumer_test.cpp | 37 sp<IGraphicBufferProducer> producer; in SetUp() local 39 BufferQueue::createBufferQueue(&producer, &consumer); in SetUp() 42 mSurface = new Surface(producer); in SetUp()
|
/frameworks/base/native/android/ |
D | surface_texture.cpp | 34 sp<IGraphicBufferProducer> producer; member 43 ast->producer = SurfaceTexture_getProducer(env, surfacetexture); in ASurfaceTexture_fromSurfaceTexture() 48 sp<Surface> surface = new Surface(st->producer); in ASurfaceTexture_acquireANativeWindow()
|
/frameworks/native/libs/vr/libvrflinger/ |
D | display_surface.cpp | 220 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/native/opengl/tools/glgen/stubs/egl/ |
D | eglCreateWindowSurface.cpp | 90 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/ |
D | MetricsManager.cpp | 224 for (const auto& producer : mAllMetricProducers) { in dumpStates() local 225 producer->dumpStates(out, verbose); in dumpStates() 230 for (const auto& producer : mAllMetricProducers) { in dropData() local 231 producer->dropData(dropTimeNs); in dropData() 243 for (const auto& producer : mAllMetricProducers) { in onDumpReport() local 244 if (mNoReportMetricIds.find(producer->getMetricId()) == mNoReportMetricIds.end()) { in onDumpReport() 248 producer->onDumpReport(dumpTimeStampNs, include_current_partial_bucket, erase_data, in onDumpReport() 251 producer->onDumpReport(dumpTimeStampNs, include_current_partial_bucket, erase_data, in onDumpReport() 256 producer->clearPastBuckets(dumpTimeStampNs); in onDumpReport()
|
/frameworks/av/media/codec2/core/include/ |
D | C2BufferBase.h | 82 inline C2MemoryUsage(uint64_t consumer, uint64_t producer) in C2MemoryUsage() 83 : expected(consumer | producer) { } in C2MemoryUsage()
|
/frameworks/av/cmds/screenrecord/ |
D | FrameOutput.cpp | 70 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/ |
D | C2BqBufferPriv.h | 47 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/ |
D | buffer_transport_benchmark.cpp | 67 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/ |
D | android_media_ImageWriter.cpp | 77 void setProducer(const sp<Surface>& producer) { mProducer = producer; } in setProducer() argument 362 sp<Surface> producer = new Surface(bufferProducer, /*controlledByApp*/false); in ImageWriter_init() local 363 ctx->setProducer(producer); in ImageWriter_init() 369 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init() 380 sp<ANativeWindow> anw = producer; in ImageWriter_init() 514 ANativeWindow* producer = ctx->getProducer(); in ImageWriter_close() local 515 if (producer != NULL) { in ImageWriter_close() 521 status_t res = native_window_api_disconnect(producer, /*api*/NATIVE_WINDOW_API_CAMERA); in ImageWriter_close()
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 203 sp<IGraphicBufferProducer> producer; in createNamedSurfaceTexture() local 205 BufferQueue::createBufferQueue(&producer, &consumer); in createNamedSurfaceTexture() 209 producer->setMaxDequeuedBufferCount(2); in createNamedSurfaceTexture() 212 sp<ANativeWindow> anw = new Surface(producer); in createNamedSurfaceTexture()
|