Home
last modified time | relevance | path

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

123

/frameworks/native/libs/gui/tests/
DSurface_test.cpp95 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
96 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
97 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); in TEST_F()
145 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
146 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
147 sp<BufferItemConsumer> c = new BufferItemConsumer(consumer, in TEST_F()
163 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
164 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
165 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); in TEST_F()
184 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
[all …]
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()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h65 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage,
122 PinnedBufferItem(wp<RingBufferConsumer> consumer, in PinnedBufferItem()
124 mConsumer(consumer), in PinnedBufferItem()
129 sp<RingBufferConsumer> consumer = mConsumer.promote(); in ~PinnedBufferItem() local
130 if (consumer != NULL) { in ~PinnedBufferItem()
131 consumer->unpinBuffer(mBufferItem); in ~PinnedBufferItem()
/frameworks/base/core/java/android/view/
DSurfaceControl.java43 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, in nativeScreenshot() argument
651 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument
654 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer, in screenshot()
668 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument
670 screenshot(display, consumer, new Rect(), width, height, 0, 0, true, false); in screenshot()
679 public static void screenshot(IBinder display, Surface consumer) { in screenshot() argument
680 screenshot(display, consumer, new Rect(), 0, 0, 0, 0, true, false); in screenshot()
743 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, in screenshot() argument
749 if (consumer == null) { in screenshot()
752 nativeScreenshot(display, consumer, sourceCrop, width, height, in screenshot()
/frameworks/native/libs/gui/
DBufferQueue.cpp80 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core)); in createBufferQueue() local
81 LOG_ALWAYS_FATAL_IF(consumer == NULL, in createBufferQueue()
85 *outConsumer = consumer; in createBufferQueue()
DBufferItemConsumer.cpp34 const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, in BufferItemConsumer() argument
36 ConsumerBase(consumer, controlledByApp) in BufferItemConsumer()
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp98 void setCpuConsumer(const sp<CpuConsumer>& consumer) { mConsumer = consumer; } in setCpuConsumer() argument
101 void setOpaqueConsumer(const sp<BufferItemConsumer>& consumer) { mOpaqueConsumer = consumer; } in setOpaqueConsumer() argument
814 sp<ConsumerBase> consumer; in ImageReader_init() local
832 consumer = opaqueConsumer; in ImageReader_init()
842 consumer = cpuConsumer; in ImageReader_init()
846 consumer->setFrameAvailableListener(ctx); in ImageReader_init()
902 ConsumerBase* consumer = NULL; in ImageReader_close() local
904 consumer = ImageReader_getOpaqueConsumer(env, thiz); in ImageReader_close()
906 consumer = ImageReader_getCpuConsumer(env, thiz); in ImageReader_close()
909 if (consumer != NULL) { in ImageReader_close()
[all …]
/frameworks/base/core/jni/android/graphics/
DSurfaceTexture.cpp240 sp<IGraphicBufferConsumer> consumer; in SurfaceTexture_init() local
241 BufferQueue::createBufferQueue(&producer, &consumer); in SurfaceTexture_init()
244 consumer->disableAsyncBuffer(); in SurfaceTexture_init()
245 consumer->setDefaultMaxBufferCount(1); in SurfaceTexture_init()
250 surfaceTexture = new GLConsumer(consumer, GL_TEXTURE_EXTERNAL_OES, in SurfaceTexture_init()
253 surfaceTexture = new GLConsumer(consumer, texName, in SurfaceTexture_init()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp43 const wp<IGraphicBufferConsumer> &consumer, in PersistentProxyListener() argument
46 mConsumer(consumer) {} in PersistentProxyListener()
56 sp<IGraphicBufferConsumer> consumer(mConsumer.promote()); in onFrameAvailable() local
57 if (consumer == NULL) { in onFrameAvailable()
61 status_t err = consumer->acquireBuffer(&bi, 0); in onFrameAvailable()
67 err = consumer->detachBuffer(bi.mBuf); in onFrameAvailable()
73 err = consumer->attachBuffer(&bi.mBuf, bi.mGraphicBuffer); in onFrameAvailable()
79 err = consumer->releaseBuffer(bi.mBuf, 0, in onFrameAvailable()
115 const sp<IGraphicBufferConsumer> &consumer) : in GraphicBufferSource() argument
121 mConsumer(consumer), in GraphicBufferSource()
DGraphicBufferSource.h59 const sp<IGraphicBufferConsumer> &consumer = NULL
174 const wp<IGraphicBufferConsumer> &consumer,
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.h37 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, in SurfaceFlingerConsumer() argument
39 : GLConsumer(consumer, tex, GLConsumer::TEXTURE_EXTERNAL, false, false), in SurfaceFlingerConsumer()
/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/services/camera/libcameraservice/device3/
DCamera3OutputStream.h41 Camera3OutputStream(int id, sp<Surface> consumer,
49 Camera3OutputStream(int id, sp<Surface> consumer,
DCamera3InputStream.cpp225 sp<IGraphicBufferConsumer> consumer; in configureQueueLocked() local
226 BufferQueue::createBufferQueue(&producer, &consumer); in configureQueueLocked()
256 mConsumer = new BufferItemConsumer(consumer, camera3_stream::usage, in configureQueueLocked()
DCamera3OutputStream.cpp35 sp<Surface> consumer, in Camera3OutputStream() argument
40 mConsumer(consumer), in Camera3OutputStream()
51 sp<Surface> consumer, in Camera3OutputStream() argument
56 mConsumer(consumer), in Camera3OutputStream()
DCamera3ZslStream.cpp122 sp<IGraphicBufferConsumer> consumer; in Camera3ZslStream() local
123 BufferQueue::createBufferQueue(&producer, &consumer); in Camera3ZslStream()
124 mProducer = new RingBufferConsumer(consumer, GRALLOC_USAGE_HW_CAMERA_ZSL, bufferCount); in Camera3ZslStream()
/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.h164 virtual status_t consumerConnect(const sp<IConsumerListener>& consumer, in consumerConnect() argument
166 return connect(consumer, controlledByApp); in consumerConnect()
DBufferItemConsumer.h55 BufferItemConsumer(const sp<IGraphicBufferConsumer>& consumer,
/frameworks/av/include/media/stagefright/
DMediaCodecSource.h45 const sp<IGraphicBufferConsumer> &consumer = NULL,
84 const sp<IGraphicBufferConsumer> &consumer,
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp55 const sp<IGraphicBufferConsumer>& consumer) : in FramebufferSurface() argument
56 ConsumerBase(consumer), in FramebufferSurface()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp59 sp<IGraphicBufferConsumer> consumer; in captureScreen() local
60 BufferQueue::createBufferQueue(&producer, &consumer); in captureScreen()
62 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); in captureScreen()
/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/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()

123