summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-08-18 14:47:23 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-09-22 16:59:53 +0000
commitb6f775cea23fd29b16f337c6be2ca70a4371ead7 (patch)
tree02863c3190b0f2b715a134485778987ac27a61b0 /libs/androidfw/StringPool.cpp
parentc5637910b891ea1e6146b2b23179f22015a5933f (diff)
Add InputDeviceBatteryListener to InputManager
System apps can now register an InputDeviceBatteryListener on a per-device basis to be notified of battery changes. - InputManager manages registration of the binder callback with InputManagerService to ensure that there is only one battery listener per process. - The battery listener is invoked immediately upon registration to provide the initial battery state for the device. - The callbacks are removed automatically when the process dies. - This CL does not yet identify changes in battery state for monitored devices. DD: go/inputdevice-battery-notifications Bug: 243005009 Test: atest FrameworkServicesTests Test: atest FrameworkCoreTests Change-Id: Idf2b06a099155a6f5cc13b55dcd40852f54aa56c Merged-In: Idf2b06a099155a6f5cc13b55dcd40852f54aa56c (cherry picked from commit e86f73ac50a26d5719815aed320c95d340f464db)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions