Lines Matching refs:surfaceControl

47 static bool getWideColorSupport(const sp<SurfaceControl>& surfaceControl) {  in getWideColorSupport()  argument
48 sp<SurfaceComposerClient> client = surfaceControl->getClient(); in getWideColorSupport()
65 static bool getHdrSupport(const sp<SurfaceControl>& surfaceControl) { in getHdrSupport() argument
66 sp<SurfaceComposerClient> client = surfaceControl->getClient(); in getHdrSupport()
84 static bool isDataSpaceValid(const sp<SurfaceControl>& surfaceControl, ADataSpace dataSpace) { in isDataSpaceValid() argument
100 return getWideColorSupport(surfaceControl); in isDataSpaceValid()
103 return getHdrSupport(surfaceControl); in isDataSpaceValid()
117 void SurfaceControl_acquire(SurfaceControl* surfaceControl) { in SurfaceControl_acquire() argument
119 surfaceControl->incStrong((void*)SurfaceControl_acquire); in SurfaceControl_acquire()
122 void SurfaceControl_release(SurfaceControl* surfaceControl) { in SurfaceControl_release() argument
124 surfaceControl->decStrong((void*)SurfaceControl_acquire); in SurfaceControl_release()
137 sp<SurfaceControl> surfaceControl = in ASurfaceControl_createFromWindow() local
142 if (!surfaceControl) { in ASurfaceControl_createFromWindow()
146 SurfaceControl_acquire(surfaceControl.get()); in ASurfaceControl_createFromWindow()
147 return reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceControl_createFromWindow()
159 sp<SurfaceControl> surfaceControl = in ASurfaceControl_create() local
164 if (!surfaceControl) { in ASurfaceControl_create()
168 SurfaceControl_acquire(surfaceControl.get()); in ASurfaceControl_create()
169 return reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceControl_create()
173 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceControl_release() local
175 SurfaceControl_release(surfaceControl.get()); in ASurfaceControl_release()
293 … for (const auto& [surfaceControl, acquireTime, previousReleaseFence] : surfaceControlStats) { in ASurfaceTransaction_setOnComplete()
294 … ASurfaceControl* aSurfaceControl = reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceTransaction_setOnComplete()
313 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_reparent() local
319 transaction->reparent(surfaceControl, newParentHandle); in ASurfaceTransaction_reparent()
328 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setVisibility() local
333 transaction->show(surfaceControl); in ASurfaceTransaction_setVisibility()
336 transaction->hide(surfaceControl); in ASurfaceTransaction_setVisibility()
349 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setZOrder() local
352 transaction->setLayer(surfaceControl, z_order); in ASurfaceTransaction_setZOrder()
361 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBuffer() local
366 transaction->setBuffer(surfaceControl, graphic_buffer); in ASurfaceTransaction_setBuffer()
369 transaction->setAcquireFence(surfaceControl, fence); in ASurfaceTransaction_setBuffer()
381 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setGeometry() local
384 transaction->setCrop(surfaceControl, static_cast<const Rect&>(source)); in ASurfaceTransaction_setGeometry()
385 transaction->setFrame(surfaceControl, static_cast<const Rect&>(destination)); in ASurfaceTransaction_setGeometry()
386 transaction->setTransform(surfaceControl, transform); in ASurfaceTransaction_setGeometry()
389 transaction->setTransformToDisplayInverse(surfaceControl, transformToInverseDisplay); in ASurfaceTransaction_setGeometry()
398 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferTransparency() local
403 transaction->setFlags(surfaceControl, flags, layer_state_t::eLayerOpaque); in ASurfaceTransaction_setBufferTransparency()
412 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setDamageRegion() local
424 transaction->setSurfaceDamageRegion(surfaceControl, Region::INVALID_REGION); in ASurfaceTransaction_setDamageRegion()
428 transaction->setSurfaceDamageRegion(surfaceControl, region); in ASurfaceTransaction_setDamageRegion()
448 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferAlpha() local
451 transaction->setAlpha(surfaceControl, alpha); in ASurfaceTransaction_setBufferAlpha()
460 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferDataSpace() local
461 LOG_ALWAYS_FATAL_IF(!isDataSpaceValid(surfaceControl, aDataSpace), "invalid dataspace"); in ASurfaceTransaction_setBufferDataSpace()
465 transaction->setDataspace(surfaceControl, static_cast<ui::Dataspace>(aDataSpace)); in ASurfaceTransaction_setBufferDataSpace()
474 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setHdrMetadata_smpte2086() local
496 transaction->setHdrMetadata(surfaceControl, hdrMetadata); in ASurfaceTransaction_setHdrMetadata_smpte2086()
505 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setHdrMetadata_cta861_3() local
519 transaction->setHdrMetadata(surfaceControl, hdrMetadata); in ASurfaceTransaction_setHdrMetadata_cta861_3()
529 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setColor() local
530 LOG_ALWAYS_FATAL_IF(!isDataSpaceValid(surfaceControl, dataspace), "invalid dataspace"); in ASurfaceTransaction_setColor()
538 …transaction->setBackgroundColor(surfaceControl, color, alpha, static_cast<ui::Dataspace>(dataspace… in ASurfaceTransaction_setColor()