/frameworks/av/services/camera/libcameraservice/gui/ |
D | RingBufferConsumer.h | 63 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, 120 PinnedBufferItem(wp<RingBufferConsumer> consumer, in PinnedBufferItem() 122 mConsumer(consumer), in PinnedBufferItem() 127 sp<RingBufferConsumer> consumer = mConsumer.promote(); in ~PinnedBufferItem() local 128 if (consumer != NULL) { in ~PinnedBufferItem() 129 consumer->unpinBuffer(mBufferItem); in ~PinnedBufferItem()
|
/frameworks/native/services/vr/bufferhubd/ |
D | producer_channel.cpp | 67 for (auto consumer : consumer_channels_) in ~ProducerChannel() local 68 consumer->OnProducerClosed(); in ~ProducerChannel() 144 auto consumer = std::make_shared<ConsumerChannel>( in CreateConsumer() local 146 const auto channel_status = service()->SetChannel(channel_id, consumer); in CreateConsumer() 157 if (consumer->OnProducerPosted()) in CreateConsumer() 195 for (auto consumer : consumer_channels_) { in OnProducerPost() local 196 if (consumer->OnProducerPosted()) in OnProducerPost()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputMonitor.java | 131 private void addInputConsumer(String name, InputConsumerImpl consumer) { in addInputConsumer() argument 132 mInputConsumers.put(name, consumer); in addInputConsumer() 144 private boolean disposeInputConsumer(InputConsumerImpl consumer) { in disposeInputConsumer() argument 145 if (consumer != null) { in disposeInputConsumer() 146 consumer.disposeChannelsLw(); in disposeInputConsumer() 169 final EventReceiverInputConsumer consumer = new EventReceiverInputConsumer(mService, in createInputConsumer() local 171 addInputConsumer(name, consumer); in createInputConsumer() 172 return consumer; in createInputConsumer() 180 final InputConsumerImpl consumer = new InputConsumerImpl(mService, name, inputChannel); in createInputConsumer() local 183 consumer.mWindowHandle.hasWallpaper = true; in createInputConsumer() [all …]
|
/frameworks/native/libs/gui/ |
D | BufferQueue.cpp | 96 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core)); in createBufferQueue() local 97 LOG_ALWAYS_FATAL_IF(consumer == NULL, in createBufferQueue() 101 *outConsumer = consumer; in createBufferQueue()
|
D | BufferItemConsumer.cpp | 34 const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, in BufferItemConsumer() argument 36 ConsumerBase(consumer, controlledByApp) in BufferItemConsumer()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestContext.cpp | 93 sp<IGraphicBufferConsumer> consumer; in createOffscreenSurface() local 94 BufferQueue::createBufferQueue(&producer, &consumer); in createOffscreenSurface() 97 mConsumer = new BufferItemConsumer(consumer, GRALLOC_USAGE_HW_COMPOSER, 4); in createOffscreenSurface()
|
/frameworks/native/opengl/tests/EGLTest/ |
D | EGL_test.cpp | 141 sp<IGraphicBufferConsumer> consumer; in TEST_F() local 142 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 143 consumer->consumerConnect(new DummyConsumer, false); in TEST_F() 256 sp<IGraphicBufferConsumer> consumer; in TEST_F() local 257 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 258 consumer->consumerConnect(new DummyConsumer, false); in TEST_F()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | CurrentUserTracker.java | 118 for (Consumer<Integer> consumer : callbacks) { in notifyUserSwitched() 120 if (mCallbacks.contains(consumer)) { in notifyUserSwitched() 121 consumer.accept(newUserId); in notifyUserSwitched()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 52 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, in nativeScreenshot() argument 804 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument 807 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer, in screenshot() 821 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument 823 screenshot(display, consumer, new Rect(), width, height, 0, 0, true, false); in screenshot() 832 public static void screenshot(IBinder display, Surface consumer) { in screenshot() argument 833 screenshot(display, consumer, new Rect(), 0, 0, 0, 0, true, false); in screenshot() 909 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, in screenshot() argument 915 if (consumer == null) { in screenshot() 918 nativeScreenshot(display, consumer, sourceCrop, width, height, in screenshot()
|
/frameworks/native/libs/gui/tests/ |
D | Surface_test.cpp | 118 sp<IGraphicBufferConsumer> consumer; in TEST_F() local 119 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 120 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); in TEST_F() 179 sp<IGraphicBufferConsumer> consumer; in TEST_F() local 180 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 181 sp<BufferItemConsumer> c = new BufferItemConsumer(consumer, in TEST_F() 197 sp<IGraphicBufferConsumer> consumer; in TEST_F() local 198 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F() 199 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); in TEST_F() 218 sp<IGraphicBufferConsumer> consumer; in TEST_F() local [all …]
|
D | MultiTextureConsumer_test.cpp | 38 sp<IGraphicBufferConsumer> consumer; in SetUp() local 39 BufferQueue::createBufferQueue(&producer, &consumer); in SetUp() 40 mGlConsumer = new GLConsumer(consumer, TEX_ID, in SetUp()
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestBuffer.cpp | 50 BufferListener(sp<IGraphicBufferConsumer> consumer, in BufferListener() argument 52 : mConsumer(consumer), in BufferListener() 80 sp<IGraphicBufferConsumer> consumer; in initialize() local 81 BufferQueue::createBufferQueue(&producer, &consumer); in initialize() 83 consumer->setDefaultBufferSize(bufferArea.width, bufferArea.height); in initialize() 84 consumer->setDefaultBufferFormat(format); in initialize() 86 mBufferItemConsumer = new BufferItemConsumer(consumer, 0); in initialize() 88 mListener = new BufferListener(consumer, callback, callbackArgs); in initialize()
|
/frameworks/base/core/jni/android/graphics/ |
D | SurfaceTexture.cpp | 262 sp<IGraphicBufferConsumer> consumer; in SurfaceTexture_init() local 263 BufferQueue::createBufferQueue(&producer, &consumer); in SurfaceTexture_init() 266 consumer->setMaxBufferCount(1); in SurfaceTexture_init() 271 surfaceTexture = new GLConsumer(consumer, GL_TEXTURE_EXTERNAL_OES, in SurfaceTexture_init() 274 surfaceTexture = new GLConsumer(consumer, texName, in SurfaceTexture_init() 289 consumer->setConsumerIsProtected(isProtectedContext()); in SurfaceTexture_init()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScoreServiceTest.java | 523 NetworkScoreService.FilteringCacheUpdatingConsumer consumer = in testCacheUpdatingConsumer_nullFilter() local 528 consumer.accept(mNetworkScoreCache, null /*cookie*/); in testCacheUpdatingConsumer_nullFilter() 538 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_noneFilter() local 542 consumer.accept(mNetworkScoreCache, NetworkScoreManager.CACHE_FILTER_NONE); in testCacheUpdatingConsumer_noneFilter() 552 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_unknownFilter() local 556 consumer.accept(mNetworkScoreCache, -1 /*cookie*/); in testCacheUpdatingConsumer_unknownFilter() 566 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_nonIntFilter() local 570 consumer.accept(mNetworkScoreCache, "not an int" /*cookie*/); in testCacheUpdatingConsumer_nonIntFilter() 579 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_emptyScoreList() local 583 consumer.accept(mNetworkScoreCache, NetworkScoreManager.CACHE_FILTER_NONE); in testCacheUpdatingConsumer_emptyScoreList() [all …]
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 73 GrallocConsumer* consumer = (GrallocConsumer *) obj; in onFrameAvailable() local 74 for (uint32_t i = 0; i < consumer->mNumAlloc; i++) { in onFrameAvailable() 75 if (consumer->mAlloc[i] != nullptr) { in onFrameAvailable() 76 intptr_t ip = (intptr_t)(consumer->mAlloc[i]); in onFrameAvailable() 77 consumer->mCtx->sendMessageToClient(&ip, in onFrameAvailable()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3StreamSplitter.cpp | 42 uint32_t consumerUsage, size_t halMaxBuffers, sp<Surface>* consumer) { in connect() argument 44 if (consumer == nullptr) { in connect() 92 *consumer = new Surface(mProducer); in connect() 93 if (*consumer == nullptr) { in connect() 427 sp<IGraphicBufferConsumer> consumer(mConsumer); in decrementBufRefCountLocked() local 429 if (consumer != nullptr) { in decrementBufRefCountLocked() 430 res = consumer->releaseBuffer(consumerSlot, /* frameNumber */ 0, in decrementBufRefCountLocked()
|
D | Camera3SharedOutputStream.cpp | 143 status_t Camera3SharedOutputStream::queueBufferToConsumer(sp<ANativeWindow>& consumer, in queueBufferToConsumer() argument 145 status_t res = consumer->queueBuffer(consumer.get(), buffer, anwReleaseFence); in queueBufferToConsumer()
|
D | Camera3OutputStream.h | 82 Camera3OutputStream(int id, sp<Surface> consumer, 93 Camera3OutputStream(int id, sp<Surface> consumer, 260 virtual status_t queueBufferToConsumer(sp<ANativeWindow>& consumer,
|
D | Camera3InputStream.cpp | 230 sp<IGraphicBufferConsumer> consumer; in configureQueueLocked() local 231 BufferQueue::createBufferQueue(&producer, &consumer); in configureQueueLocked() 261 mConsumer = new BufferItemConsumer(consumer, camera3_stream::usage, in configureQueueLocked()
|
D | Camera3OutputStream.cpp | 35 sp<Surface> consumer, in Camera3OutputStream() argument 41 mConsumer(consumer), in Camera3OutputStream() 60 sp<Surface> consumer, in Camera3OutputStream() argument 66 mConsumer(consumer), in Camera3OutputStream() 178 status_t Camera3OutputStream::queueBufferToConsumer(sp<ANativeWindow>& consumer, in queueBufferToConsumer() argument 180 return consumer->queueBuffer(consumer.get(), buffer, anwReleaseFence); in queueBufferToConsumer()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerConsumer.h | 41 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, in SurfaceFlingerConsumer() argument 43 : GLConsumer(consumer, tex, GLConsumer::TEXTURE_EXTERNAL, false, false), in SurfaceFlingerConsumer()
|
/frameworks/av/cmds/screenrecord/ |
D | FrameOutput.cpp | 71 sp<IGraphicBufferConsumer> consumer; in createInputSurface() local 72 BufferQueue::createBufferQueue(&producer, &consumer); in createInputSurface() 73 mGlConsumer = new GLConsumer(consumer, mExtTextureName, in createInputSurface()
|
/frameworks/native/include/gui/ |
D | BufferQueueConsumer.h | 166 virtual status_t consumerConnect(const sp<IConsumerListener>& consumer, in consumerConnect() argument 168 return connect(consumer, controlledByApp); in consumerConnect()
|
/frameworks/native/libs/vr/libvrflinger/ |
D | display_surface.cpp | 218 std::shared_ptr<ConsumerQueue> consumer = in OnCreateQueue() local 220 auto status = RegisterQueue(consumer); in OnCreateQueue() 229 consumer_queues_[consumer->id()] = std::move(consumer); in OnCreateQueue()
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 96 void setBufferConsumer(const sp<BufferItemConsumer>& consumer) { mConsumer = consumer; } in setBufferConsumer() argument 431 BufferItemConsumer* consumer = NULL; in ImageReader_close() local 432 consumer = ImageReader_getBufferConsumer(env, thiz); in ImageReader_close() 434 if (consumer != NULL) { in ImageReader_close() 435 consumer->abandon(); in ImageReader_close() 436 consumer->setFrameAvailableListener(NULL); in ImageReader_close()
|