Home
last modified time | relevance | path

Searched refs:desiredRatio (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/common/
DColorModeControls.kt40 private var desiredRatio = 0.0f in <lambda>() variable in com.android.test.silkfx.common.ColorModeControls
72 desiredRatio = window?.desiredHdrHeadroom ?: 0.0f in <lambda>()
91 desiredRatio = (desiredRatio + 1) % 5.0f in <lambda>()
92 window!!.desiredHdrHeadroom = desiredRatio in <lambda>()
/frameworks/base/core/java/android/view/
DHdrRenderState.java125 void setDesiredHdrSdrRatio(boolean isHdrEnabled, float desiredRatio) { in setDesiredHdrSdrRatio() argument
128 if (desiredRatio != mTargetDesiredHdrSdrRatio) { in setDesiredHdrSdrRatio()
129 mTargetDesiredHdrSdrRatio = desiredRatio; in setDesiredHdrSdrRatio()
DSurfaceControl.java227 long nativeObject, float currentBufferRatio, float desiredRatio); in nativeSetExtendedRangeBrightness() argument
229 long nativeObject, float desiredRatio); in nativeSetDesiredHdrHeadroom() argument
4231 float currentBufferRatio, float desiredRatio) { in setExtendedRangeBrightness() argument
4237 if (!Float.isFinite(desiredRatio) || desiredRatio < 1.0f) { in setExtendedRangeBrightness()
4239 "desiredRatio must be finite && >= 1.0f; got " + desiredRatio); in setExtendedRangeBrightness()
4242 desiredRatio); in setExtendedRangeBrightness()
4280 @FloatRange(from = 0.0f) float desiredRatio) { in setDesiredHdrHeadroom()
4282 if (!Float.isFinite(desiredRatio) || (desiredRatio != 0 && desiredRatio < 1.0f)) { in setDesiredHdrHeadroom()
4284 "desiredRatio must be finite && >= 1.0f or 0; got " + desiredRatio); in setDesiredHdrHeadroom()
4286 nativeSetDesiredHdrHeadroom(mNativeObject, sc.mNativeObject, desiredRatio); in setDesiredHdrHeadroom()
DViewRootImpl.java6274 float desiredRatio) { in updateColorModeIfNeeded() argument
6291 if (desiredRatio == 0 || desiredRatio > automaticRatio) { in updateColorModeIfNeeded()
6292 desiredRatio = automaticRatio; in updateColorModeIfNeeded()
6295 mHdrRenderState.setDesiredHdrSdrRatio(isHdr, desiredRatio); in updateColorModeIfNeeded()
/frameworks/base/native/android/
Dsurface_control.cpp626 float currentBufferRatio, float desiredRatio) { in ASurfaceTransaction_setExtendedRangeBrightness() argument
637 if (!isfinite(desiredRatio) || desiredRatio < 1.0f) { in ASurfaceTransaction_setExtendedRangeBrightness()
639 desiredRatio); in ASurfaceTransaction_setExtendedRangeBrightness()
646 transaction->setExtendedRangeBrightness(surfaceControl, currentBufferRatio, desiredRatio); in ASurfaceTransaction_setExtendedRangeBrightness()
651 float desiredRatio) { in ASurfaceTransaction_setDesiredHdrHeadroom() argument
655 if (!isfinite(desiredRatio) || (desiredRatio < 1.0f && desiredRatio > 0.0f)) { in ASurfaceTransaction_setDesiredHdrHeadroom()
657 desiredRatio); in ASurfaceTransaction_setDesiredHdrHeadroom()
664 transaction->setDesiredHdrHeadroom(surfaceControl, desiredRatio); in ASurfaceTransaction_setDesiredHdrHeadroom()
/frameworks/native/include/android/
Dsurface_control.h591 float currentBufferRatio, float desiredRatio)
/frameworks/native/libs/gui/include/gui/
DSurfaceComposerClient.h598 float currentBufferRatio, float desiredRatio);
599 Transaction& setDesiredHdrHeadroom(const sp<SurfaceControl>& sc, float desiredRatio);
/frameworks/native/services/surfaceflinger/
DLayer.h318 bool setExtendedRangeBrightness(float currentBufferRatio, float desiredRatio);
319 bool setDesiredHdrHeadroom(float desiredRatio);
DLayer.cpp3326 bool Layer::setExtendedRangeBrightness(float currentBufferRatio, float desiredRatio) { in setExtendedRangeBrightness() argument
3328 mDrawingState.desiredHdrSdrRatio == desiredRatio) in setExtendedRangeBrightness()
3331 mDrawingState.desiredHdrSdrRatio = desiredRatio; in setExtendedRangeBrightness()
3337 bool Layer::setDesiredHdrHeadroom(float desiredRatio) { in setDesiredHdrHeadroom() argument
3338 if (mDrawingState.desiredHdrSdrRatio == desiredRatio) return false; in setDesiredHdrHeadroom()
3339 mDrawingState.desiredHdrSdrRatio = desiredRatio; in setDesiredHdrHeadroom()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp723 float desiredRatio) { in nativeSetExtendedRangeBrightness() argument
726 transaction->setExtendedRangeBrightness(ctrl, currentBufferRatio, desiredRatio); in nativeSetExtendedRangeBrightness()
730 jlong nativeObject, float desiredRatio) { in nativeSetDesiredHdrHeadroom() argument
733 transaction->setDesiredHdrHeadroom(ctrl, desiredRatio); in nativeSetDesiredHdrHeadroom()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp1805 const sp<SurfaceControl>& sc, float currentBufferRatio, float desiredRatio) { in setExtendedRangeBrightness() argument
1813 s->desiredHdrSdrRatio = desiredRatio; in setExtendedRangeBrightness()
1820 const sp<SurfaceControl>& sc, float desiredRatio) { in setDesiredHdrHeadroom() argument
1827 s->desiredHdrSdrRatio = desiredRatio; in setDesiredHdrHeadroom()