Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_SetDisplayBrightnessTest.cpp52 EXPECT_EQ(std::nullopt, displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
70 displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
88 displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
89 displayDevice->getCompositionDisplay()->editState().displayBrightness = std::nullopt; in TEST_F()
96 EXPECT_EQ(std::nullopt, displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
114 displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
/frameworks/native/libs/gui/aidl/android/gui/
DDisplayBrightness.aidl28 float displayBrightness = 0f;
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputCompositionState.cpp64 dumpVal(out, "displayBrightness", displayBrightness); in dump()
DDisplay.cpp210 physicalDisplayId && getState().displayBrightness) { in applyDisplayBrightness()
212 hwc.setDisplayBrightness(*physicalDisplayId, *getState().displayBrightness, in applyDisplayBrightness()
221 editState().displayBrightness.reset(); in applyDisplayBrightness()
DOutput.cpp205 editState().displayBrightness = brightness; in setNextBrightness()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputCompositionState.h149 std::optional<float> displayBrightness = std::nullopt; member
/frameworks/base/core/java/android/view/
DSurfaceControl.java239 float sdrBrightness, float sdrBrightnessNits, float displayBrightness, in nativeSetDisplayBrightness() argument
2645 float sdrBrightnessNits, float displayBrightness, float displayBrightnessNits) { in setDisplayBrightness() argument
2647 if (Float.isNaN(displayBrightness) || displayBrightness > 1.0f in setDisplayBrightness()
2648 || (displayBrightness < 0.0f && displayBrightness != -1.0f)) { in setDisplayBrightness()
2650 + " and 1.0f, or -1 to turn the backlight off: " + displayBrightness); in setDisplayBrightness()
2658 displayBrightness, displayBrightnessNits); in setDisplayBrightness()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp1817 jfloat displayBrightness, jfloat displayBrightnessNits) { in nativeSetDisplayBrightness() argument
1825 brightness.displayBrightness = displayBrightness; in nativeSetDisplayBrightness()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayTest.cpp659 EXPECT_FALSE(state.displayBrightness.has_value()); in TEST_F()
DOutputTest.cpp604 ASSERT_TRUE(mOutput->getState().displayBrightness.has_value()); in TEST_F()
605 EXPECT_EQ(kDisplayBrightness, mOutput->getState().displayBrightness); in TEST_F()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp1716 display->stageBrightness(brightness.displayBrightness)); in setDisplayBrightness()
1728 brightness.displayBrightness, in setDisplayBrightness()