Home
last modified time | relevance | path

Searched refs:displayBrightnessNits (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/libs/gui/aidl/android/gui/
DDisplayBrightness.aidl31 float displayBrightnessNits = -1f;
/frameworks/native/services/surfaceflinger/
DScreenCaptureOutput.h35 float displayBrightnessNits; member
DScreenCaptureOutput.cpp39 output->setDisplayBrightness(args.sdrWhitePointNits, args.displayBrightnessNits); in createScreenCaptureOutput()
DSurfaceFlinger.cpp2035 compositionDisplay->editState().displayBrightnessNits; in setDisplayBrightness()
2038 abs(brightness.sdrWhitePointNits - brightness.displayBrightnessNits) / in setDisplayBrightness()
2045 brightness.displayBrightnessNits); in setDisplayBrightness()
2054 compositionDisplay->editState().displayBrightnessNits / in setDisplayBrightness()
2059 if (brightness.sdrWhitePointNits / brightness.displayBrightnessNits != in setDisplayBrightness()
2070 brightness.displayBrightnessNits, in setDisplayBrightness()
4218 .displayBrightnessNits, in persistDisplayBrightness()
8475 auto displayBrightnessNits = DisplayDevice::sDefaultMaxLumiance; in renderScreenImpl() local
8490 displayBrightnessNits = sdrWhitePointNits; in renderScreenImpl()
8492 displayBrightnessNits = state.displayBrightnessNits; in renderScreenImpl()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputCompositionState.cpp60 dumpVal(out, "displayBrightnessNits", displayBrightnessNits); in dump()
DOutput.cpp288 void Output::setDisplayBrightness(float sdrWhitePointNits, float displayBrightnessNits) { in setDisplayBrightness() argument
291 outputState.displayBrightnessNits == displayBrightnessNits) { in setDisplayBrightness()
296 outputState.displayBrightnessNits = displayBrightnessNits; in setDisplayBrightness()
1410 clientCompositionDisplay.currentLuminanceNits = outputState.displayBrightnessNits > 0.f in generateClientCompositionDisplaySettings()
1411 ? outputState.displayBrightnessNits in generateClientCompositionDisplaySettings()
1418 outputState.displayBrightnessNits * hdrSdrRatioMultiplier; in generateClientCompositionDisplaySettings()
1760 if (getState().displayBrightnessNits < 0.0f || getState().sdrWhitePointNits <= 0.0f || in getHdrSdrRatio()
1768 return getState().displayBrightnessNits / getState().sdrWhitePointNits; in getHdrSdrRatio()
DOutputLayer.cpp349 getOutput().getState().displayBrightnessNits == getOutput().getState().sdrWhitePointNits || in updateCompositionState()
350 getOutput().getState().displayBrightnessNits == 0.f || !layerFEState->dimmingEnabled) { in updateCompositionState()
352 state.whitePointNits = getOutput().getState().displayBrightnessNits; in updateCompositionState()
361 std::clamp(layerBrightnessNits / getOutput().getState().displayBrightnessNits, 0.f, in updateCompositionState()
548 ? (getOutput().getState().displayBrightnessNits != 0.f in writeOutputDependentPerFrameStateToHWC()
550 getOutput().getState().displayBrightnessNits, in writeOutputDependentPerFrameStateToHWC()
DDisplay.cpp213 getState().displayBrightnessNits, in applyDisplayBrightness()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputCompositionState.h136 float displayBrightnessNits{-1.f};
DOutput.h59 void setDisplayBrightness(float sdrWhitePointNits, float displayBrightnessNits) override;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DCachedSetTest.cpp451 mOutputState.displayBrightnessNits = 400.f; in TEST_F()
457 EXPECT_EQ(mOutputState.displayBrightnessNits, displaySettings.targetLuminanceNits); in TEST_F()
463 mOutputState.displayBrightnessNits))) in TEST_F()
467 mOutputState.displayBrightnessNits))) in TEST_F()
501 mOutputState.displayBrightnessNits = 400.f; in TEST_F()
507 EXPECT_EQ(mOutputState.displayBrightnessNits, displaySettings.targetLuminanceNits); in TEST_F()
513 mOutputState.displayBrightnessNits))) in TEST_F()
517 mOutputState.displayBrightnessNits))) in TEST_F()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp179 .targetLuminanceNits = outputState.displayBrightnessNits, in render()
193 .whitePointNits = outputState.displayBrightnessNits, in render()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DOutput.h201 virtual void setDisplayBrightness(float sdrWhitePointNits, float displayBrightnessNits) = 0;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp690 mOutputState.displayBrightnessNits = 800.f; in TEST_F()
696 EXPECT_EQ(mOutputState.sdrWhitePointNits / mOutputState.displayBrightnessNits, in TEST_F()
701 EXPECT_EQ(mOutputState.displayBrightnessNits, mOutputLayer.getState().whitePointNits); in TEST_F()
710 EXPECT_EQ(mOutputState.displayBrightnessNits, mOutputLayer.getState().whitePointNits); in TEST_F()
838 mOutputState.displayBrightnessNits = kDisplayBrightnessNits; in OutputLayerWriteStateToHWCTest()
DDisplayTest.cpp642 mDisplay->editState().displayBrightnessNits = kDisplayBrightnessNits; in TEST_F()
DOutputTest.cpp3090 mOutput.mState.displayBrightnessNits = 400.f; in TEST_F()
3982 getInstance()->mOutput.mState.displayBrightnessNits = nits; in withDisplayBrightnessNits()
/frameworks/base/core/java/android/view/
DSurfaceControl.java249 float displayBrightnessNits); in nativeSetDisplayBrightness() argument
2543 float sdrBrightnessNits, float displayBrightness, float displayBrightnessNits) { in setDisplayBrightness() argument
2556 displayBrightness, displayBrightnessNits); in setDisplayBrightness()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp1841 jfloat displayBrightness, jfloat displayBrightnessNits) { in nativeSetDisplayBrightness() argument
1850 brightness.displayBrightnessNits = displayBrightnessNits; in nativeSetDisplayBrightness()