diff options
| author | Dave Mankoff <mankoff@google.com> | 2020-04-28 13:51:40 -0400 |
|---|---|---|
| committer | Dave Mankoff <mankoff@google.com> | 2020-04-29 09:15:05 -0400 |
| commit | 1d7a50cea800d667ab886b3ea3e8aef9923ba59c (patch) | |
| tree | e25f727e6611688a5f5972ae4f145ac72724a8fa /tools/aapt2/java/JavaClassGenerator_test.cpp | |
| parent | 11ba586199dd9de9e0d78e028308a92598f5c331 (diff) | |
Add latching threshold for ThresholdSensorImpl
This allows ThresholdSensorImpl to account for noise in their sensor
output. They must go below one threshold to trigger a "below" output,
and then must go above a different threshold to switch back to an
"above" state.
This new second, latching threshold is optional and defaults to the
existing threshold if not set.
For the ProximitySensor, we introduce proximity_sensor_threshold_latch
and proximity_sensor_secondary_threshold_latch in config.xml.
Fixes: 147026387
Test: atest SystemUITests && manual
Change-Id: Ie0b7b357a48fd27424d12b890cda9e00073e1eb3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions
