Home
last modified time | relevance | path

Searched refs:consumer (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h66 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage,
123 PinnedBufferItem(wp<RingBufferConsumer> consumer, in PinnedBufferItem()
125 mConsumer(consumer), in PinnedBufferItem()
130 sp<RingBufferConsumer> consumer = mConsumer.promote(); in ~PinnedBufferItem() local
131 if (consumer != NULL) { in ~PinnedBufferItem()
132 consumer->unpinBuffer(mBufferItem); in ~PinnedBufferItem()
/frameworks/av/camera/tests/
DProCameraTests.cpp265 const sp<CpuConsumer>& consumer) { in onFrameAvailable() argument
274 if (OK == (ret = consumer->lockNextBuffer(&buf))) { in onFrameAvailable()
280 EXPECT_OK(consumer->unlockBuffer(buf)); in onFrameAvailable()
755 sp<CpuConsumer> consumer; in TEST_F() local
757 TEST_FORMAT_DEPTH, TEST_CPU_HEAP_COUNT, &consumer, &streamId)); in TEST_F()
822 sp<CpuConsumer> consumer; in TEST_F() local
824 TEST_FORMAT_MAIN, TEST_CPU_HEAP_COUNT, &consumer, &streamId)); in TEST_F()
829 TEST_FORMAT_DEPTH, TEST_CPU_HEAP_COUNT, &consumer, &depthStreamId)); in TEST_F()
903 sp<CpuConsumer> consumer; in TEST_F() local
905 TEST_FORMAT_MAIN, TEST_CPU_HEAP_COUNT, &consumer, &streamId)); in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DSurface_test.cpp93 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
94 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
95 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); in TEST_F()
143 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
144 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
145 sp<BufferItemConsumer> c = new BufferItemConsumer(consumer, in TEST_F()
DMultiTextureConsumer_test.cpp38 sp<IGraphicBufferConsumer> consumer; in SetUp() local
39 BufferQueue::createBufferQueue(&producer, &consumer); in SetUp()
40 mGlConsumer = new GLConsumer(consumer, TEX_ID, in SetUp()
DSRGB_test.cpp72 sp<IGraphicBufferConsumer> consumer; in SetUp() local
73 BufferQueue::createBufferQueue(&producer, &consumer); in SetUp()
74 ASSERT_EQ(NO_ERROR, consumer->setDefaultBufferSize( in SetUp()
76 mCpuConsumer = new CpuConsumer(consumer, 1); in SetUp()
/frameworks/native/libs/gui/
DBufferQueue.cpp71 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core)); in createBufferQueue() local
72 LOG_ALWAYS_FATAL_IF(consumer == NULL, in createBufferQueue()
76 *outConsumer = consumer; in createBufferQueue()
DBufferItemConsumer.cpp33 const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, in BufferItemConsumer() argument
35 ConsumerBase(consumer, controlledByApp) in BufferItemConsumer()
/frameworks/base/core/java/android/view/
DSurfaceControl.java43 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, in nativeScreenshot() argument
638 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument
641 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer, in screenshot()
655 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument
657 screenshot(display, consumer, new Rect(), width, height, 0, 0, true, false); in screenshot()
666 public static void screenshot(IBinder display, Surface consumer) { in screenshot() argument
667 screenshot(display, consumer, new Rect(), 0, 0, 0, 0, true, false); in screenshot()
730 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, in screenshot() argument
736 if (consumer == null) { in screenshot()
739 nativeScreenshot(display, consumer, sourceCrop, width, height, in screenshot()
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp89 void setCpuConsumer(const sp<CpuConsumer>& consumer) { mConsumer = consumer; } in setCpuConsumer() argument
674 sp<CpuConsumer> consumer = new CpuConsumer(gbConsumer, maxImages, in ImageReader_init() local
677 if (consumer == NULL) { in ImageReader_init()
688 ctx->setCpuConsumer(consumer); in ImageReader_init()
690 consumer->setFrameAvailableListener(ctx); in ImageReader_init()
697 res = consumer->setDefaultBufferSize(width, height); in ImageReader_init()
703 res = consumer->setDefaultBufferFormat(nativeFormat); in ImageReader_init()
720 CpuConsumer* consumer = ImageReader_getCpuConsumer(env, thiz); in ImageReader_close() local
721 if (consumer != NULL) { in ImageReader_close()
722 consumer->abandon(); in ImageReader_close()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.h35 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, in SurfaceFlingerConsumer() argument
37 : GLConsumer(consumer, tex, GLConsumer::TEXTURE_EXTERNAL, false, false), in SurfaceFlingerConsumer()
/frameworks/base/core/jni/android/graphics/
DSurfaceTexture.cpp234 sp<IGraphicBufferConsumer> consumer; in SurfaceTexture_init() local
235 BufferQueue::createBufferQueue(&producer, &consumer); in SurfaceTexture_init()
238 consumer->disableAsyncBuffer(); in SurfaceTexture_init()
239 consumer->setDefaultMaxBufferCount(1); in SurfaceTexture_init()
244 surfaceTexture = new GLConsumer(consumer, GL_TEXTURE_EXTERNAL_OES, in SurfaceTexture_init()
247 surfaceTexture = new GLConsumer(consumer, texName, in SurfaceTexture_init()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.h41 Camera3OutputStream(int id, sp<ANativeWindow> consumer,
48 Camera3OutputStream(int id, sp<ANativeWindow> consumer,
DCamera3InputStream.cpp207 sp<IGraphicBufferConsumer> consumer; in configureQueueLocked() local
208 BufferQueue::createBufferQueue(&producer, &consumer); in configureQueueLocked()
231 mConsumer = new BufferItemConsumer(consumer, camera3_stream::usage, in configureQueueLocked()
DCamera3OutputStream.cpp35 sp<ANativeWindow> consumer, in Camera3OutputStream() argument
39 mConsumer(consumer), in Camera3OutputStream()
50 sp<ANativeWindow> consumer, in Camera3OutputStream() argument
54 mConsumer(consumer), in Camera3OutputStream()
DCamera3ZslStream.cpp121 sp<IGraphicBufferConsumer> consumer; in Camera3ZslStream() local
122 BufferQueue::createBufferQueue(&producer, &consumer); in Camera3ZslStream()
123 mProducer = new RingBufferConsumer(consumer, GRALLOC_USAGE_HW_CAMERA_ZSL, bufferCount); in Camera3ZslStream()
/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp111 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
112 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
113 consumer->consumerConnect(new DummyConsumer, false); in TEST_F()
/frameworks/av/cmds/screenrecord/
DFrameOutput.cpp71 sp<IGraphicBufferConsumer> consumer; in createInputSurface() local
72 BufferQueue::createBufferQueue(&producer, &consumer); in createInputSurface()
73 mGlConsumer = new GLConsumer(consumer, mExtTextureName, in createInputSurface()
DOverlay.cpp173 sp<IGraphicBufferConsumer> consumer; in setup_l() local
174 BufferQueue::createBufferQueue(&mProducer, &consumer); in setup_l()
175 mGlConsumer = new GLConsumer(consumer, mExtTextureName, in setup_l()
/frameworks/native/include/gui/
DBufferQueueConsumer.h158 virtual status_t consumerConnect(const sp<IConsumerListener>& consumer, in consumerConnect() argument
160 return connect(consumer, controlledByApp); in consumerConnect()
DBufferItemConsumer.h57 BufferItemConsumer(const sp<IGraphicBufferConsumer>& consumer,
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp54 const sp<IGraphicBufferConsumer>& consumer) : in FramebufferSurface() argument
55 ConsumerBase(consumer), in FramebufferSurface()
DFramebufferSurface.h40 FramebufferSurface(HWComposer& hwc, int disp, const sp<IGraphicBufferConsumer>& consumer);
/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegProcessor.cpp86 sp<IGraphicBufferConsumer> consumer; in updateStream() local
87 BufferQueue::createBufferQueue(&producer, &consumer); in updateStream()
88 mCaptureConsumer = new CpuConsumer(consumer, 1); in updateStream()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp166 sp<IGraphicBufferConsumer> consumer; in InitWithNewContext() local
167 BufferQueue::createBufferQueue(&producer, &consumer); in InitWithNewContext()
168 surfaceTexture_ = new GLConsumer(consumer, 0, GLConsumer::TEXTURE_EXTERNAL, in InitWithNewContext()
/frameworks/av/camera/
DProCamera.cpp253 sp<IGraphicBufferConsumer> consumer; in createStreamCpu() local
254 BufferQueue::createBufferQueue(&producer, &consumer); in createStreamCpu()
255 sp<CpuConsumer> cc = new CpuConsumer(consumer, heapCount in createStreamCpu()

12