Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4f22332a authored by Piotr Wilczyński's avatar Piotr Wilczyński
Browse files

Doze brightness float

Use the float doze brightness if the flag is enabled and the config is provided by Display Manager. Pass the computed float brightness down to Power Manager.

Use config_screenBrightnessDimFloat.

Additionally, correct the docs with the int brightness range 1-255. 0 is BRIGHTNESS_OFF, currently, the framework doesn't allow turning the screen off by setting that brightness.

Bug: 326981871
Bug: 343796384
Test: DreamServiceTest, AlwaysOnDisplayPolicyTest, DozeScreenBrightnessTest, NotificationShadeWindowControllerImplTest, DozeServiceHostTest, DreamManagerServiceTests, PowerManagerServiceTest
Flag: com.android.server.display.feature.flags.doze_brightness_float
Change-Id: Iefa68b36dc325434e1d7fcfd5c4d8d6b92dab99b
parent 937b6dc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment