summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Joe Bolinger <jbolinger@google.com> 2022-10-12 22:21:48 -0700
committer Joe Bolinger <jbolinger@google.com> 2022-10-13 13:26:35 -0700
commit4613aa9552ccd7a2d1fba99e98a279f9044b69c6 (patch)
tree257e54c8b0ade49d8c357a76191a33694ab82302 /libs/androidfw/Util.cpp
parent26ed84b746c57bd674a3d711744e8395cac56a7b (diff)
Add a final lux method to ALSProbe.
This address two remaining issues with with ALS logging since the pointer events were removed from the framework (starting at commit aa07cc3db336ef926b65fab205dd9c0a9ca9833c). 1) After the pointer events were removed the logging was updated to use wakefullness events as an alternative trigger. However, these events are often too slow when authenticating from the AoD and the sensor may not have a chance to be enabled or respond before the operation completes. The new method allows the sensor to be enabled after the operation has completed to fetch a value. 2) Fixes a bug where the initial wakefullness status was not checked at the start of an auth operation. Fix: 253318983 Test: atest ALSProbeTest FingerprintAuthenticationClientTest BiometricLoggerTest Test: statsd_testdrive 88 (verify lux field is always greater than 0 from AoD and with BP test app) Change-Id: I2b1572579f52dc9dad7238d47e27b0068c7c74c6
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions