summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-09-14 23:36:23 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-10-20 20:30:04 +0000
commit12b5657771ec40ed909ad8da049d5c474f6906c0 (patch)
tree1b97020ee5e45804c5d22206b8db4f581862c415 /libs/androidfw/StringPool.cpp
parenteef47dbf3c653776e77138e77e0fef6e863920da (diff)
Introduce monitoring behavior changes for USI devices (2/n)
- USI devices are always expected to report a UEvent whenever the battery state changes. This signals that the current stylus battery level has changed. This means we should only consider the USI battery state as valid when we receive a new UEvent. - Once a stylus battery has been reported, the sysfs battery node will report the last value perpetually, until the next change, even if the stylus is no longer being used. To handle this, we set a validity period, where the USI battery is only valid for a fixed time period (one hour) after the last time the battery changed. DD: go/inputdevice-battery-notifications Bug: 243005009 Test: atest FrameworkServicesTests Test: manual with USI 2.0 device Change-Id: I1c43a04208601c3dda19aa18f1ede3303ececc97
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions