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.cpp63 dumpVal(out, "displayBrightness", displayBrightness); in dump()
DDisplay.cpp209 displayId && getState().displayBrightness) { in applyDisplayBrightness()
212 hwc.setDisplayBrightness(*displayId, *getState().displayBrightness, in applyDisplayBrightness()
221 editState().displayBrightness.reset(); in applyDisplayBrightness()
DOutput.cpp215 editState().displayBrightness = brightness; in setNextBrightness()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputCompositionState.h150 std::optional<float> displayBrightness = std::nullopt; member
/frameworks/base/core/java/android/view/
DSurfaceControl.java248 float sdrBrightness, float sdrBrightnessNits, float displayBrightness, in nativeSetDisplayBrightness() argument
2543 float sdrBrightnessNits, float displayBrightness, float displayBrightnessNits) { in setDisplayBrightness() argument
2545 if (Float.isNaN(displayBrightness) || displayBrightness > 1.0f in setDisplayBrightness()
2546 || (displayBrightness < 0.0f && displayBrightness != -1.0f)) { in setDisplayBrightness()
2548 + " and 1.0f, or -1 to turn the backlight off: " + displayBrightness); in setDisplayBrightness()
2556 displayBrightness, displayBrightnessNits); in setDisplayBrightness()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp1841 jfloat displayBrightness, jfloat displayBrightnessNits) { in nativeSetDisplayBrightness() argument
1849 brightness.displayBrightness = displayBrightness; in nativeSetDisplayBrightness()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayTest.cpp646 EXPECT_FALSE(state.displayBrightness.has_value()); in TEST_F()
DOutputTest.cpp594 ASSERT_TRUE(mOutput->getState().displayBrightness.has_value()); in TEST_F()
595 EXPECT_EQ(kDisplayBrightness, mOutput->getState().displayBrightness); in TEST_F()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp2052 display->stageBrightness(brightness.displayBrightness)); in setDisplayBrightness()
2069 brightness.displayBrightness, in setDisplayBrightness()