diff options
| author | 2023-01-08 20:33:37 +0000 | |
|---|---|---|
| committer | 2023-01-13 11:16:51 +0000 | |
| commit | feb44ada1282f3dc6c85765f593524825996a71b (patch) | |
| tree | 8fcc2b470c7d0c8853d895a0f43d96cbcaf9cc39 /libs/input/PointerController.cpp | |
| parent | 86da33713c01873a3a620617321129bf2a38a560 (diff) | |
Add inactivity timer to turn off keyboard backlight
- Should turn off backlight after inactivity of 30s
- Should turn on backlight if user does any activity
- If Display is turned off backlight should be turned off
- If Display is turned on backlight should also be turned on
- Can't rely completely on Display turn on/off logic since, apps
can acquire wakelock to keep Display on (e.g. watching a video),
but this should not stop the keyboard backlight from turning off.
Test: atest KeyboardBacklightControllerTests
Bug: 245506418
Change-Id: I024a9c507ee42e42896c501e9bb1cb83ca315e69
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions