commit | 4daff35b77bc96016bd52eb8cee881d5f5e80fd0 | [log] [tgz] |
---|---|---|
author | Joe Bolinger <jbolinger@google.com> | Fri Nov 11 13:31:58 2022 -0800 |
committer | Joe Bolinger <jbolinger@google.com> | Fri Nov 11 13:31:58 2022 -0800 |
tree | 1d690086c8ca6a42bd9ee39483b8ba4db3f650ef | |
parent | 3f1d87579565ed34d71e27a614b4ba44c933e25d [diff] |
Allow awaitLux to fetch a value after destroy. The logs are showing -1 lux values at a higher rate than expected (~10%). This may be because the lux probe is being destroyed before a value is ever reqeusted since the scheduler and auth callbacks are confined to the same thread but use different handlers. This allows destroy to be postponed until at least one value has been recorded. Bug: 253318983 Test: atest ALSProbeTest Change-Id: Id304bf502bcea9dc313f21253e117adb96324e10