Home
last modified time | relevance | path

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

12345

/frameworks/base/native/android/
Dsurface_texture.cpp33 sp<SurfaceTexture> consumer; member
42 ast->consumer = SurfaceTexture_getSurfaceTexture(env, surfacetexture); in ASurfaceTexture_fromSurfaceTexture()
59 return st->consumer->attachToContext(tex); in ASurfaceTexture_attachToGLContext()
63 return st->consumer->detachFromContext(); in ASurfaceTexture_detachFromGLContext()
67 return st->consumer->updateTexImage(); in ASurfaceTexture_updateTexImage()
71 st->consumer->getTransformMatrix(mtx); in ASurfaceTexture_getTransformMatrix()
75 return st->consumer->getTimestamp(); in ASurfaceTexture_getTimestamp()
/frameworks/base/core/java/android/view/
DInsetsController.java206 final InsetsSourceConsumer consumer = mSourceConsumers.valueAt(i); in onControlsChanged() local
207 final InsetsSourceControl control = mTmpControlArray.get(consumer.getType()); in onControlsChanged()
211 consumer.setControl(control); in onControlsChanged()
233 InsetsSourceConsumer consumer = getSourceConsumer(internalTypes.valueAt(i)); in show() local
238 } else if (consumer.isVisible() in show()
247 typesReady |= InsetsState.toPublicType(consumer.getType()); in show()
257 InsetsSourceConsumer consumer = getSourceConsumer(internalTypes.valueAt(i)); in hide() local
260 } else if (!consumer.isVisible() in hide()
266 typesReady |= InsetsState.toPublicType(consumer.getType()); in hide()
331 InsetsSourceConsumer consumer = getSourceConsumer(internalTypes.valueAt(i)); in collectConsumers() local
[all …]
DInsetsAnimationControlImpl.java181 InsetsSourceConsumer consumer = mConsumers.valueAt(i); in finish() local
182 boolean visible = (shownTypes & toPublicType(consumer.getType())) != 0; in finish()
183 state.getSource(consumer.getType()).setVisible(visible); in finish()
231 final InsetsSourceConsumer consumer = items.valueAt(i); in updateLeashesForSide() local
232 final InsetsSource source = mInitialInsetsState.getSource(consumer.getType()); in updateLeashesForSide()
233 final InsetsSourceControl control = consumer.getControl(); in updateLeashesForSide()
234 final SurfaceControl leash = consumer.getControl().getLeash(); in updateLeashesForSide()
/frameworks/native/services/surfaceflinger/tests/
DVirtualDisplay_test.cpp30 sp<IGraphicBufferConsumer> consumer; in SetUp() local
32 BufferQueue::createBufferQueue(&mProducer, &consumer); in SetUp()
33 consumer->setConsumerName(String8("Virtual disp consumer")); in SetUp()
34 consumer->setDefaultBufferSize(100, 100); in SetUp()
36 mGLConsumer = new GLConsumer(consumer, GLConsumer::TEXTURE_EXTERNAL, true, false); in SetUp()
DBufferGenerator.cpp41 BufferListener(sp<IGraphicBufferConsumer> consumer, BufferCallback callback) in BufferListener() argument
42 : mConsumer(consumer), mCallback(callback) {} in BufferListener()
63 sp<IGraphicBufferConsumer> consumer; in initialize() local
64 BufferQueue::createBufferQueue(&producer, &consumer); in initialize()
66 consumer->setDefaultBufferSize(width, height); in initialize()
67 consumer->setDefaultBufferFormat(format); in initialize()
69 mBufferItemConsumer = new BufferItemConsumer(consumer, 0); in initialize()
71 mListener = new BufferListener(consumer, callback); in initialize()
/frameworks/native/libs/gui/
DBufferQueue.cpp101 sp<IGraphicBufferConsumer> consumer(new BufferQueueConsumer(core)); in createBufferQueue() local
102 LOG_ALWAYS_FATAL_IF(consumer == nullptr, in createBufferQueue()
106 *outConsumer = consumer; in createBufferQueue()
116 sp<IGraphicBufferConsumer> consumer; in createBufferHubQueue() local
127 consumer = BufferHubConsumer::Create(consumerQueue); in createBufferHubQueue()
130 LOG_ALWAYS_FATAL_IF(consumer == nullptr, "BufferQueue: failed to create BufferQueueConsumer"); in createBufferHubQueue()
133 *outConsumer = consumer; in createBufferHubQueue()
DBufferHubConsumer.cpp25 sp<BufferHubConsumer> consumer = new BufferHubConsumer; in Create() local
26 consumer->mQueue = queue; in Create()
27 return consumer; in Create()
36 sp<BufferHubConsumer> consumer = new BufferHubConsumer; in Create() local
37 consumer->mQueue = ConsumerQueue::Import(parcelable.TakeChannelHandle()); in Create()
38 return consumer; in Create()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h63 RingBufferConsumer(const sp<IGraphicBufferConsumer>& consumer, uint64_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/opengl/tests/EGLTest/
DEGL_test.cpp150 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
151 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
152 consumer->consumerConnect(new MockConsumer, false); in TEST_F()
270 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
271 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
272 consumer->consumerConnect(new MockConsumer, false); in TEST_F()
318 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
319 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
320 consumer->consumerConnect(new MockConsumer, false); in TEST_F()
410 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DInputMonitor.java167 private void addInputConsumer(String name, InputConsumerImpl consumer) { in addInputConsumer() argument
168 mInputConsumers.put(name, consumer); in addInputConsumer()
169 consumer.linkToDeathRecipient(); in addInputConsumer()
181 private boolean disposeInputConsumer(InputConsumerImpl consumer) { in disposeInputConsumer() argument
182 if (consumer != null) { in disposeInputConsumer()
183 consumer.disposeChannelsLw(); in disposeInputConsumer()
184 consumer.hide(mInputTransaction); in disposeInputConsumer()
220 final EventReceiverInputConsumer consumer = new EventReceiverInputConsumer(mService, in createInputConsumer() local
223 addInputConsumer(name, consumer); in createInputConsumer()
224 return consumer; in createInputConsumer()
[all …]
/frameworks/base/libs/hwui/
DDeferredLayerUpdater.h70 ANDROID_API void setSurfaceTexture(const sp<SurfaceTexture>& consumer) { in setSurfaceTexture() argument
71 if (consumer.get() != mSurfaceTexture.get()) { in setSurfaceTexture()
72 mSurfaceTexture = consumer; in setSurfaceTexture()
74 GLenum target = consumer->getCurrentTextureTarget(); in setSurfaceTexture()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp125 sp<IGraphicBufferConsumer> consumer; in testSurfaceListener() local
126 BufferQueue::createBufferQueue(&producer, &consumer); in testSurfaceListener()
129 consumer->consumerConnect(dummyConsumer, false); in testSurfaceListener()
130 consumer->setConsumerName(String8("TestConsumer")); in testSurfaceListener()
168 ASSERT_EQ(NO_ERROR, consumer->acquireBuffer(&releasedItems[i], 0)); in testSurfaceListener()
169 ASSERT_EQ(NO_ERROR, consumer->releaseBuffer(releasedItems[i].mSlot, in testSurfaceListener()
180 ASSERT_EQ(NO_ERROR, consumer->acquireBuffer(&item, 0)); in testSurfaceListener()
183 ASSERT_EQ(NO_ERROR, consumer->discardFreeBuffers()); in testSurfaceListener()
308 sp<IGraphicBufferConsumer> consumer; in TEST_F() local
309 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
[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/native/services/vr/bufferhubd/
Dproducer_channel.cpp168 for (auto consumer : consumer_channels_) { in ~ProducerChannel() local
169 consumer->OnProducerClosed(); in ~ProducerChannel()
177 for (const ConsumerChannel* consumer : consumer_channels_) { in GetBufferInfo() local
178 signaled_mask |= consumer->signaled() ? consumer->client_state_mask() : 0; in GetBufferInfo()
322 auto consumer = std::make_shared<ConsumerChannel>( in CreateConsumer() local
325 const auto channel_status = service()->SetChannel(channel_id, consumer); in CreateConsumer()
376 consumer->OnProducerPosted(); in CreateConsumer()
431 for (auto& consumer : consumer_channels_) { in OnProducerPost() local
432 consumer->OnProducerPosted(); in OnProducerPost()
444 for (auto& consumer : consumer_channels_) { in OnProducerGain() local
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp92 sp<IGraphicBufferConsumer> consumer; in createOffscreenSurface() local
93 BufferQueue::createBufferQueue(&producer, &consumer); in createOffscreenSurface()
96 mConsumer = new BufferItemConsumer(consumer, GRALLOC_USAGE_HW_COMPOSER, 4); in createOffscreenSurface()
/frameworks/av/media/codec2/core/include/
DC2BufferBase.h82 inline C2MemoryUsage(uint64_t consumer, uint64_t producer) in C2MemoryUsage()
83 : expected(consumer | producer) { } in C2MemoryUsage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DLifecycle.java37 public void dispatch(Consumer<T> consumer) { in dispatch() argument
39 consumer.accept(mObservers.get(i)); in dispatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserTracker.java118 for (Consumer<Integer> consumer : callbacks) { in notifyUserSwitched()
120 if (mCallbacks.contains(consumer)) { in notifyUserSwitched()
121 consumer.accept(newUserId); in notifyUserSwitched()
/frameworks/base/services/core/java/com/android/server/rollback/
DLocalIntentReceiver.java32 LocalIntentReceiver(Consumer<Intent> consumer) { in LocalIntentReceiver() argument
33 mConsumer = consumer; in LocalIntentReceiver()
/frameworks/base/core/jni/android/graphics/
DSurfaceTexture.cpp263 sp<IGraphicBufferConsumer> consumer; in SurfaceTexture_init() local
264 BufferQueue::createBufferQueue(&producer, &consumer); in SurfaceTexture_init()
267 consumer->setMaxBufferCount(1); in SurfaceTexture_init()
272 surfaceTexture = new SurfaceTexture(consumer, GL_TEXTURE_EXTERNAL_OES, in SurfaceTexture_init()
275 surfaceTexture = new SurfaceTexture(consumer, texName, in SurfaceTexture_init()
290 consumer->setConsumerIsProtected(isProtectedContext()); in SurfaceTexture_init()
/frameworks/base/telephony/java/android/telephony/ims/aidl/
DIImsRcsController.aidl36 void getImsRcsRegistrationState(int subId, IIntegerConsumer consumer); in getImsRcsRegistrationState() argument
37 void getImsRcsRegistrationTransportType(int subId, IIntegerConsumer consumer); in getImsRcsRegistrationTransportType() argument
/frameworks/rs/
DrsGrallocConsumer.cpp76 GrallocConsumer* consumer = (GrallocConsumer *) obj; in onFrameAvailable() local
77 for (uint32_t i = 0; i < consumer->mNumAlloc; i++) { in onFrameAvailable()
78 if (consumer->mAlloc[i] != nullptr) { in onFrameAvailable()
79 intptr_t ip = (intptr_t)(consumer->mAlloc[i]); in onFrameAvailable()
80 consumer->mCtx->sendMessageToClient(&ip, in onFrameAvailable()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp53 BufferListener(sp<IGraphicBufferConsumer> consumer, in BufferListener() argument
55 : mConsumer(consumer), in BufferListener()
83 sp<IGraphicBufferConsumer> consumer; in initialize() local
84 BufferQueue::createBufferQueue(&producer, &consumer); in initialize()
86 consumer->setDefaultBufferSize(bufferArea.width, bufferArea.height); in initialize()
87 consumer->setDefaultBufferFormat(format); in initialize()
89 mBufferItemConsumer = new BufferItemConsumer(consumer, 0); in initialize()
91 mListener = new BufferListener(consumer, callback, callbackArgs); in initialize()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java597 NetworkScoreService.FilteringCacheUpdatingConsumer consumer = in testCacheUpdatingConsumer_nullFilter() local
602 consumer.accept(mNetworkScoreCache, null /*cookie*/); in testCacheUpdatingConsumer_nullFilter()
612 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_noneFilter() local
616 consumer.accept(mNetworkScoreCache, NetworkScoreManager.SCORE_FILTER_NONE); in testCacheUpdatingConsumer_noneFilter()
626 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_unknownFilter() local
630 consumer.accept(mNetworkScoreCache, -1 /*cookie*/); in testCacheUpdatingConsumer_unknownFilter()
640 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_nonIntFilter() local
644 consumer.accept(mNetworkScoreCache, "not an int" /*cookie*/); in testCacheUpdatingConsumer_nonIntFilter()
653 consumer = new NetworkScoreService.FilteringCacheUpdatingConsumer(mContext, in testCacheUpdatingConsumer_emptyScoreList() local
657 consumer.accept(mNetworkScoreCache, NetworkScoreManager.SCORE_FILTER_NONE); in testCacheUpdatingConsumer_emptyScoreList()
[all …]
/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()

12345