diff options
author | 2022-10-12 23:05:17 +0000 | |
---|---|---|
committer | 2022-11-22 15:17:10 +0000 | |
commit | 854d4bdee790bedbf504cbdfc41fd601dee28e03 (patch) | |
tree | b44df114bdd6c634459a054ff25bdfbf42c1919f /tools/aapt2/ResourceParser.cpp | |
parent | bc1cd9c1f596995a4f7ec8661f2b2659f5e460c4 (diff) |
BatteryController: Add battery monitoring from Bluetooth
For input devices that are connected over Bluetooth, we will monitor
their Bluetooth battery state by registering a BroadcastReceiver to
listen to battery changes over Bluetooth.
We always prioritize reporting the Bluetooth battery state first, and if
invalid, fall back to using the battery state queried through the sysfs
node.
In this CL, we add a BluetoothBatteryManager interface to hide the
details of dealing with the Bluetooth APIs to simplify testing.
Bug: 243005009
Test: atest FrameworkServicesTest
Test: manual, with Lenovo Precision Pen 3
Change-Id: I40864c0aeaf72c252a5f8d0b2217903613ca9543
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
0 files changed, 0 insertions, 0 deletions