Home
last modified time | relevance | path

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

/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()
DRingBufferConsumer.cpp37 RingBufferConsumer::RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, in RingBufferConsumer() argument
40 ConsumerBase(consumer), in RingBufferConsumer()
/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/base/core/java/android/view/
DSurfaceControl.java44 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, in nativeScreenshot() argument
535 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument
537 screenshot(display, consumer, width, height, minLayer, maxLayer, false); in screenshot()
550 public static void screenshot(IBinder display, Surface consumer, in screenshot() argument
552 screenshot(display, consumer, width, height, 0, 0, true); in screenshot()
561 public static void screenshot(IBinder display, Surface consumer) { in screenshot() argument
562 screenshot(display, consumer, 0, 0, 0, 0, true); in screenshot()
612 private static void screenshot(IBinder display, Surface consumer, in screenshot() argument
617 if (consumer == null) { in screenshot()
620 nativeScreenshot(display, consumer, width, height, minLayer, maxLayer, allLayers); in screenshot()
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp86 void setCpuConsumer(const sp<CpuConsumer>& consumer) { mConsumer = consumer; } in setCpuConsumer() argument
617 sp<CpuConsumer> consumer = new CpuConsumer(bq, maxImages, in ImageReader_init() local
620 if (consumer == NULL) { in ImageReader_init()
631 ctx->setCpuConsumer(consumer); in ImageReader_init()
633 consumer->setFrameAvailableListener(ctx); in ImageReader_init()
640 res = consumer->setDefaultBufferSize(width, height); in ImageReader_init()
646 res = consumer->setDefaultBufferFormat(nativeFormat); in ImageReader_init()
663 CpuConsumer* consumer = ImageReader_getCpuConsumer(env, thiz); in ImageReader_close() local
664 if (consumer != NULL) { in ImageReader_close()
665 consumer->abandon(); in ImageReader_close()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.h41 Camera3OutputStream(int id, sp<ANativeWindow> consumer,
48 Camera3OutputStream(int id, sp<ANativeWindow> consumer,
DCamera3OutputStream.cpp35 sp<ANativeWindow> consumer, in Camera3OutputStream() argument
39 mConsumer(consumer), in Camera3OutputStream()
49 sp<ANativeWindow> consumer, in Camera3OutputStream() argument
53 mConsumer(consumer), in Camera3OutputStream()
DCamera3Device.h90 virtual status_t createStream(sp<ANativeWindow> consumer,
DCamera3Device.cpp674 status_t Camera3Device::createStream(sp<ANativeWindow> consumer, in createStream() argument
713 newStream = new Camera3OutputStream(mNextStreamId, consumer, in createStream()
716 newStream = new Camera3OutputStream(mNextStreamId, consumer, in createStream()
/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/native/libs/gui/
DIGraphicBufferConsumer.cpp240 virtual status_t consumerConnect(const sp<IConsumerListener>& consumer, bool controlledByApp) { in consumerConnect() argument
243 data.writeStrongBinder(consumer->asBinder()); in consumerConnect()
399 … sp<IConsumerListener> consumer = IConsumerListener::asInterface( data.readStrongBinder() ); in onTransact() local
401 status_t result = consumerConnect(consumer, controlledByApp); in onTransact()
/frameworks/native/include/gui/
DConsumerBase.h88 ConsumerBase(const sp<IGraphicBufferConsumer>& consumer, bool controlledByApp = false);
DIGraphicBufferConsumer.h140 … virtual status_t consumerConnect(const sp<IConsumerListener>& consumer, bool controlledByApp) = 0;
DBufferQueue.h253 virtual status_t consumerConnect(const sp<IConsumerListener>& consumer, bool controlledByApp);
/frameworks/av/services/camera/libcameraservice/device2/
DCamera2Device.h54 virtual status_t createStream(sp<ANativeWindow> consumer,
197 status_t connectToDevice(sp<ANativeWindow> consumer,
DCamera2Device.cpp241 status_t Camera2Device::createStream(sp<ANativeWindow> consumer, in createStream() argument
249 res = stream->connectToDevice(consumer, width, height, format, size); in createStream()
991 sp<ANativeWindow> consumer, in connectToDevice() argument
998 if (consumer == NULL) { in connectToDevice()
1006 mConsumerInterface = consumer; in connectToDevice()
/frameworks/av/services/camera/libcameraservice/common/
DCameraDeviceBase.h89 virtual status_t createStream(sp<ANativeWindow> consumer,
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp187 sp<Surface> consumer = android_view_Surface_getSurface(env, surfaceObj); in nativeScreenshot() local
188 if (consumer != NULL) { in nativeScreenshot()
194 displayToken, consumer->getIGraphicBufferProducer(), in nativeScreenshot()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp92 sp<CpuConsumer> consumer = new CpuConsumer(bq, 1); in TEST_F() local
/frameworks/base/docs/html/about/versions/
Dandroid-4.4.jd557 <dd>The device is capable of communicating with consumer IR devices.</dd>