summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-10-05 21:43:33 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-10-17 14:36:51 +0000
commiteef47dbf3c653776e77138e77e0fef6e863920da (patch)
treea1b9a04b57d0a95d2b3e92e134ebdcd9e68bd308 /libs/androidfw/StringPool.cpp
parentd2bf2b4c2a052e48f29896aafdb7e05480beb64f (diff)
Introduce monitoring behavior changes for USI devices (1/n)
- Whether the USI battery state is valid will depend on when we last got a battery state update. This means that battery for USI devices must always be monitored so that we know whether the state is valid when the first listener is registered. We add the concept of a perpetual monitor that is added at boot and never removed. - Since USI battery state changes are always accompanied by UEvents, there is no need to poll for battery changes. Make sure that we don't poll for battery changes if we're only listening to USI devices. Bug: 243005009 Test: atest FrameworkServicesTests Change-Id: I336c4c183d7f44ebdbd93a130fe204ddcad4617c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions