/frameworks/av/services/camera/libcameraservice/gui/ |
H A D | RingBufferConsumer.h | 59 // Create a new ring buffer consumer. The consumerUsage parameter determines 60 // the consumer usage flags passed to the graphics allocator. The 63 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, 81 // setConsumerUsage allows the BufferQueue consumer usage to be 120 PinnedBufferItem(wp<RingBufferConsumer> consumer, argument 122 mConsumer(consumer), 127 sp<RingBufferConsumer> consumer = mConsumer.promote(); local 128 if (consumer != NULL) { 129 consumer->unpinBuffer(mBufferItem);
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.cpp | 93 sp<IGraphicBufferConsumer> consumer; local 94 BufferQueue::createBufferQueue(&producer, &consumer); 97 mConsumer = new BufferItemConsumer(consumer, GRALLOC_USAGE_HW_COMPOSER, 4);
|
/frameworks/native/libs/gui/ |
H A D | BufferQueue.cpp | 96 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core)); 97 LOG_ALWAYS_FATAL_IF(consumer == NULL, 101 *outConsumer = consumer;
|
H A D | BufferItemConsumer.cpp | 34 const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, 36 ConsumerBase(consumer, controlledByApp) 40 "Failed to set consumer usage bits to %#x", consumerUsage); 33 BufferItemConsumer( const sp<IGraphicBufferConsumer>& consumer, uint32_t consumerUsage, int bufferCount, bool controlledByApp) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlingerConsumer.h | 41 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, argument 43 : GLConsumer(consumer, tex, GLConsumer::TEXTURE_EXTERNAL, false, false),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | CurrentUserTracker.java | 118 for (Consumer<Integer> consumer : callbacks) { 120 if (mCallbacks.contains(consumer)) { 121 consumer.accept(newUserId);
|
/frameworks/native/libs/gui/tests/ |
H A D | MultiTextureConsumer_test.cpp | 38 sp<IGraphicBufferConsumer> consumer; local 39 BufferQueue::createBufferQueue(&producer, &consumer); 40 mGlConsumer = new GLConsumer(consumer, TEX_ID,
|
H A D | Surface_test.cpp | 118 sp<IGraphicBufferConsumer> consumer; local 119 BufferQueue::createBufferQueue(&producer, &consumer); 120 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); 179 sp<IGraphicBufferConsumer> consumer; local 180 BufferQueue::createBufferQueue(&producer, &consumer); 181 sp<BufferItemConsumer> c = new BufferItemConsumer(consumer, 197 sp<IGraphicBufferConsumer> consumer; local 198 BufferQueue::createBufferQueue(&producer, &consumer); 199 sp<CpuConsumer> cpuConsumer = new CpuConsumer(consumer, 1); 218 sp<IGraphicBufferConsumer> consumer; local 253 sp<IGraphicBufferConsumer> consumer; local 269 sp<IGraphicBufferConsumer> consumer; local 300 sp<IGraphicBufferConsumer> consumer; local 326 sp<IGraphicBufferConsumer> consumer; local [all...] |
/frameworks/native/include/gui/ |
H A D | BufferItemConsumer.h | 30 * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients 32 * be acquired at once, to be used concurrently by the client. This consumer can 48 // Create a new buffer item consumer. The consumerUsage parameter determines 49 // the consumer usage flags passed to the graphics allocator. The 52 // controlledByApp tells whether this consumer is controlled by the 54 BufferItemConsumer(const sp<IGraphicBufferConsumer>& consumer,
|
H A D | BufferQueueConsumer.h | 42 // field of buffer is set to NULL and it is assumed that the consumer still 59 // releaseBuffer releases a buffer slot from the consumer back to the 64 // If releaseBuffer returns STALE_BUFFER_SLOT, then the consumer must free 75 // connect connects a consumer to the BufferQueue. Only one 76 // consumer may be connected, and when that consumer disconnects the 79 // controlledByApp indicates whether the consumer is controlled by 86 // disconnect disconnects a consumer from the BufferQueue. All 94 // but have not yet been released by the consumer. 108 // be acquired by the consumer a 166 consumerConnect(const sp<IConsumerListener>& consumer, bool controlledByApp) argument [all...] |
/frameworks/native/services/vr/bufferhubd/ |
H A D | producer_channel.cpp | 67 for (auto consumer : consumer_channels_) 68 consumer->OnProducerClosed(); 139 "ProducerChannel::CreateConsumer: Failed to push consumer channel: %s", 144 auto consumer = std::make_shared<ConsumerChannel>( local 146 const auto channel_status = service()->SetChannel(channel_id, consumer); 149 "ProducerChannel::CreateConsumer: failed to set new consumer channel: " 156 // Signal the new consumer when adding it to a posted producer. 157 if (consumer->OnProducerPosted()) 195 for (auto consumer : consumer_channels_) { 196 if (consumer [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 71 sp<IGraphicBufferConsumer> consumer; local 72 BufferQueue::createBufferQueue(&producer, &consumer); 73 mGlConsumer = new GLConsumer(consumer, mExtTextureName,
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3OutputStream.h | 82 Camera3OutputStream(int id, sp<Surface> consumer, 93 Camera3OutputStream(int id, sp<Surface> consumer, 99 * Set up a stream with deferred consumer for formats that have 2 dimensions, such as 100 * RAW and YUV. The consumer must be set before using this stream for output. A valid 137 * Return if the consumer configuration of this stream is deferred. 142 * Set the consumer surfaces to the output stream. 151 * Implementation of IProducerListener, used to notify this stream that the consumer 164 * being queued to the consumer. 216 // Name of Surface consumer 219 // Whether consumer assume [all...] |
H A D | Camera3SharedOutputStream.cpp | 77 ALOGE("%s: it's illegal to set zero consumer surfaces!", __FUNCTION__); 84 ALOGE("%s: it's illegal to set a null consumer surface!", __FUNCTION__); 143 status_t Camera3SharedOutputStream::queueBufferToConsumer(sp<ANativeWindow>& consumer, argument 145 status_t res = consumer->queueBuffer(consumer.get(), buffer, anwReleaseFence); 147 // After queuing buffer to the internal consumer queue, check whether the buffer is
|
H A D | Camera3SharedOutputStream.h | 70 virtual status_t queueBufferToConsumer(sp<ANativeWindow>& consumer,
|
H A D | Camera3InputStream.cpp | 197 * no-op since we can't disconnect the producer from the consumer-side 230 sp<IGraphicBufferConsumer> consumer; local 231 BufferQueue::createBufferQueue(&producer, &consumer); 254 * (Note that this sets consumer-side buffer count only, 255 * and not the sum of producer+consumer side as in other camera streams). 261 mConsumer = new BufferItemConsumer(consumer, camera3_stream::usage,
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | InputMonitor.java | 98 * The set of input consumer added to the window manager by name, which consumes input events 131 private void addInputConsumer(String name, InputConsumerImpl consumer) { argument 132 mInputConsumers.put(name, consumer); 144 private boolean disposeInputConsumer(InputConsumerImpl consumer) { argument 145 if (consumer != null) { 146 consumer.disposeChannelsLw(); 166 throw new IllegalStateException("Existing input consumer found with name: " + name); 169 final EventReceiverInputConsumer consumer = new EventReceiverInputConsumer(mService, 171 addInputConsumer(name, consumer); 172 return consumer; [all...] |
/frameworks/native/opengl/tests/EGLTest/ |
H A D | EGL_test.cpp | 141 sp<IGraphicBufferConsumer> consumer; 142 BufferQueue::createBufferQueue(&producer, &consumer); 143 consumer->consumerConnect(new DummyConsumer, false); 256 sp<IGraphicBufferConsumer> consumer; local 257 BufferQueue::createBufferQueue(&producer, &consumer); 258 consumer->consumerConnect(new DummyConsumer, false);
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestBuffer.cpp | 50 BufferListener(sp<IGraphicBufferConsumer> consumer, argument 52 : mConsumer(consumer), 80 sp<IGraphicBufferConsumer> consumer; local 81 BufferQueue::createBufferQueue(&producer, &consumer); 83 consumer->setDefaultBufferSize(bufferArea.width, bufferArea.height); 84 consumer->setDefaultBufferFormat(format); 86 mBufferItemConsumer = new BufferItemConsumer(consumer, 0); 88 mListener = new BufferListener(consumer, callback, callbackArgs);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.h | 41 FramebufferSurface(HWComposer& hwc, int disp, const sp<IGraphicBufferConsumer>& consumer);
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 52 private static native void nativeScreenshot(IBinder displayToken, Surface consumer, argument 791 * @param consumer The {@link Surface} to take the screenshot into. 804 public static void screenshot(IBinder display, Surface consumer, argument 807 screenshot(display, consumer, new Rect(), width, height, minLayer, maxLayer, 815 * @param consumer The {@link Surface} to take the screenshot into. 821 public static void screenshot(IBinder display, Surface consumer, argument 823 screenshot(display, consumer, new Rect(), width, height, 0, 0, true, false); 830 * @param consumer The {@link Surface} to take the screenshot into. 832 public static void screenshot(IBinder display, Surface consumer) { argument 833 screenshot(display, consumer, ne 909 screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument [all...] |
/frameworks/rs/ |
H A D | rsGrallocConsumer.cpp | 73 GrallocConsumer* consumer = (GrallocConsumer *) obj; local 74 for (uint32_t i = 0; i < consumer->mNumAlloc; i++) { 75 if (consumer->mAlloc[i] != nullptr) { 76 intptr_t ip = (intptr_t)(consumer->mAlloc[i]); 77 consumer->mCtx->sendMessageToClient(&ip,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkScoreServiceTest.java | 523 NetworkScoreService.FilteringCacheUpdatingConsumer consumer = 528 consumer.accept(mNetworkScoreCache, null /*cookie*/); 538 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, 542 consumer.accept(mNetworkScoreCache, NetworkScoreManager.CACHE_FILTER_NONE); 552 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, 556 consumer.accept(mNetworkScoreCache, -1 /*cookie*/); 566 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, 570 consumer.accept(mNetworkScoreCache, "not an int" /*cookie*/); 579 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, 583 consumer [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | SurfaceTexture.cpp | 262 sp<IGraphicBufferConsumer> consumer; local 263 BufferQueue::createBufferQueue(&producer, &consumer); 266 consumer->setMaxBufferCount(1); 271 surfaceTexture = new GLConsumer(consumer, GL_TEXTURE_EXTERNAL_OES, 274 surfaceTexture = new GLConsumer(consumer, texName, 289 consumer->setConsumerIsProtected(isProtectedContext());
|
/frameworks/native/vulkan/include/vulkan/ |
H A D | vk_android_native_buffer.h | 67 uint64_t consumer; member in struct:__anon1922::__anon1923
|