Lines Matching refs:surfaceControl

65 void SurfaceControl_acquire(SurfaceControl* surfaceControl) {  in SurfaceControl_acquire()  argument
67 surfaceControl->incStrong((void*)SurfaceControl_acquire); in SurfaceControl_acquire()
70 void SurfaceControl_release(SurfaceControl* surfaceControl) { in SurfaceControl_release() argument
72 surfaceControl->decStrong((void*)SurfaceControl_acquire); in SurfaceControl_release()
88 sp<SurfaceControl> surfaceControl; in ASurfaceControl_createFromWindow() local
90 surfaceControl = in ASurfaceControl_createFromWindow()
96 surfaceControl = nullptr; in ASurfaceControl_createFromWindow()
99 if (!surfaceControl) { in ASurfaceControl_createFromWindow()
103 SurfaceControl_acquire(surfaceControl.get()); in ASurfaceControl_createFromWindow()
104 return reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceControl_createFromWindow()
116 sp<SurfaceControl> surfaceControl = in ASurfaceControl_create() local
121 if (!surfaceControl) { in ASurfaceControl_create()
125 SurfaceControl_acquire(surfaceControl.get()); in ASurfaceControl_create()
126 return reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceControl_create()
130 SurfaceControl* surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceControl_acquire() local
132 SurfaceControl_acquire(surfaceControl); in ASurfaceControl_acquire()
136 SurfaceControl* surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceControl_release() local
138 SurfaceControl_release(surfaceControl); in ASurfaceControl_release()
145 SurfaceControl* surfaceControl = in ASurfaceControl_fromJava() local
147 LOG_ALWAYS_FATAL_IF(!surfaceControl, in ASurfaceControl_fromJava()
149 SurfaceControl_acquire(surfaceControl); in ASurfaceControl_fromJava()
150 return reinterpret_cast<ASurfaceControl*>(surfaceControl); in ASurfaceControl_fromJava()
185 SurfaceControl* surfaceControl = in ASurfaceControl_getChoreographer() local
187 if (!surfaceControl->isValid()) { in ASurfaceControl_getChoreographer()
191 SurfaceControl_acquire(surfaceControl); in ASurfaceControl_getChoreographer()
192 return reinterpret_cast<AChoreographer*>(surfaceControl->getChoreographer().get()); in ASurfaceControl_getChoreographer()
339 for (const auto& [surfaceControl, latchTime, acquireTimeOrFence, presentFence, in ASurfaceTransaction_setOnComplete()
341 … ASurfaceControl* aSurfaceControl = reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceTransaction_setOnComplete()
360 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_reparent() local
365 transaction->reparent(surfaceControl, newParentSurfaceControl); in ASurfaceTransaction_reparent()
374 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setVisibility() local
379 transaction->show(surfaceControl); in ASurfaceTransaction_setVisibility()
382 transaction->hide(surfaceControl); in ASurfaceTransaction_setVisibility()
395 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setZOrder() local
398 transaction->setLayer(surfaceControl, z_order); in ASurfaceTransaction_setZOrder()
407 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBuffer() local
416 transaction->setBuffer(surfaceControl, graphic_buffer, fence); in ASurfaceTransaction_setBuffer()
427 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setGeometry() local
439 transaction->setBufferCrop(surfaceControl, sourceRect); in ASurfaceTransaction_setGeometry()
440 transaction->setDestinationFrame(surfaceControl, destRect); in ASurfaceTransaction_setGeometry()
441 transaction->setTransform(surfaceControl, transform); in ASurfaceTransaction_setGeometry()
444 transaction->setTransformToDisplayInverse(surfaceControl, transformToInverseDisplay); in ASurfaceTransaction_setGeometry()
453 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setCrop() local
456 transaction->setCrop(surfaceControl, static_cast<const Rect&>(crop)); in ASurfaceTransaction_setCrop()
464 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setPosition() local
467 transaction->setPosition(surfaceControl, x, y); in ASurfaceTransaction_setPosition()
475 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferTransform() local
478 transaction->setTransform(surfaceControl, transform); in ASurfaceTransaction_setBufferTransform()
481 transaction->setTransformToDisplayInverse(surfaceControl, transformToInverseDisplay); in ASurfaceTransaction_setBufferTransform()
491 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setScale() local
494 transaction->setMatrix(surfaceControl, xScale, 0, 0, yScale); in ASurfaceTransaction_setScale()
503 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferTransparency() local
508 transaction->setFlags(surfaceControl, flags, layer_state_t::eLayerOpaque); in ASurfaceTransaction_setBufferTransparency()
517 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setDamageRegion() local
529 transaction->setSurfaceDamageRegion(surfaceControl, Region::INVALID_REGION); in ASurfaceTransaction_setDamageRegion()
533 transaction->setSurfaceDamageRegion(surfaceControl, region); in ASurfaceTransaction_setDamageRegion()
553 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferAlpha() local
556 transaction->setAlpha(surfaceControl, alpha); in ASurfaceTransaction_setBufferAlpha()
565 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setBufferDataSpace() local
567 transaction->setDataspace(surfaceControl, static_cast<ui::Dataspace>(aDataSpace)); in ASurfaceTransaction_setBufferDataSpace()
576 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setHdrMetadata_smpte2086() local
598 transaction->setHdrMetadata(surfaceControl, hdrMetadata); in ASurfaceTransaction_setHdrMetadata_smpte2086()
607 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setHdrMetadata_cta861_3() local
621 transaction->setHdrMetadata(surfaceControl, hdrMetadata); in ASurfaceTransaction_setHdrMetadata_cta861_3()
643 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setExtendedRangeBrightness() local
646 transaction->setExtendedRangeBrightness(surfaceControl, currentBufferRatio, desiredRatio); in ASurfaceTransaction_setExtendedRangeBrightness()
661 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setDesiredHdrHeadroom() local
664 transaction->setDesiredHdrHeadroom(surfaceControl, desiredRatio); in ASurfaceTransaction_setDesiredHdrHeadroom()
674 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setColor() local
682 transaction->setBackgroundColor(surfaceControl, color, alpha, in ASurfaceTransaction_setColor()
701 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setFrameRateWithChangeStrategy() local
702 transaction->setFrameRate(surfaceControl, frameRate, compatibility, changeFrameRateStrategy); in ASurfaceTransaction_setFrameRateWithChangeStrategy()
710 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_clearFrameRate() local
711 transaction->setFrameRate(surfaceControl, 0, ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT, in ASurfaceTransaction_clearFrameRate()
721 sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceTransaction_setEnableBackPressure() local
726 transaction->setFlags(surfaceControl, flags, layer_state_t::eEnableBackpressure); in ASurfaceTransaction_setEnableBackPressure()
742 for (const auto& [surfaceControl, latchTime, acquireTimeOrFence, presentFence, in ASurfaceTransaction_setOnCommit()
746 reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceTransaction_setOnCommit()