diff options
| author | 2022-08-25 22:24:29 +0000 | |
|---|---|---|
| committer | 2022-09-22 22:06:21 +0000 | |
| commit | 89be9b073ce17fee9783e1a91e75913f8e911c93 (patch) | |
| tree | db001641d1b75a40598df2fe10c5ce97200ce160 /libs/androidfw/StringPool.cpp | |
| parent | 5473b217d74de6e06ad4166732c7152671e96e92 (diff) | |
Poll for battery changes when Android is interactive
Poll for battery changes for input devices when there is at least one
battery listener and the Android device is actively being used by the
user.
Polling for battery changes is a fallback to ensure that the battery
state for a monitored device is updated regularly, even if the kernel
does not notify userspace about changes to the device's battery. Since
this is only used as a fallback, we only poll for the battery state of
monitored devices once every 5 minutes.
DD: go/inputdevice-battery-notifications
Bug: 243005009
Test: atest InputDeviceBatteryControllerTests
Change-Id: I0ddd019881efeccee07d088bc0e6d6ff9b0d1a54
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions