summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Piotr Wilczyński <wilczynskip@google.com> 2022-10-06 13:46:30 +0000
committer Piotr Wilczyński <wilczynskip@google.com> 2022-12-19 11:19:58 +0000
commit6ddd0586cde96808f48fb55d66b6c2e52a83af0d (patch)
tree73c7b9d2b178dfc3a1a4414802bc0d61c211d073 /libs/androidfw/ConfigDescription.cpp
parentfd4bed64d6cff332333f252d513ab659615828e5 (diff)
Use a brightness sensor to determine the screen's initial brightness
- Create a controller to listen to a brightness sensor when the screen is off - Estimate the ambient lux based on the sensor reading - Determine the brightness using the ambient lux estimate - Specify the sensor and the sensor value to lux mapping in the config Bug: 193224604 Test: Use the device in a bright room, turn the screen off, go to a dark room, turn the screen on, see that the screen doesn't start as too bright. Test: atest ScreenOffBrightnessSensorControllerTest Test: atest DisplayDeviceConfigTest Change-Id: Ib4c4d9e0d6b385b0d309be6b8c27b71af72d4ecc Merged-In: Ib4c4d9e0d6b385b0d309be6b8c27b71af72d4ecc
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions