summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Piotr Wilczyński <wilczynskip@google.com> 2024-10-30 17:36:59 +0000
committer Piotr Wilczyński <wilczynskip@google.com> 2024-11-27 13:31:39 +0000
commit5ac5a9859a6b214e4184e54294c3a657ea9b1cf5 (patch)
tree862f8cd948ea352ea755fbbdb10e271848a5f389 /libs/input/PointerController.cpp
parentf2779a3f7282febbc2c3724125f6c1053650a953 (diff)
Brightness Tracker disable sensor if screen off
Brightness Tracker used to listen to the SCREEN_ON and SCREEN_OFF intent. The SCREEN_OFF intent isn't sent when the screen is off due to proximity, so the sensor wouldn't be disabled. Now we're observing display state changes instead. The display listener needs to be registered if the following conditions are met: - there is a light sensor - the device is interactive - the brightness mode is automatic Bug: 362940418 Flag: EXEMPT bugfix Test: BrightnessTrackerTest Change-Id: Ie5652aebb26658da7d3d6a006a1e143a08e71998
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions