commit | 15937bd25b2b3c021d145a2fba0911cca91267ec | [log] [tgz] |
---|---|---|
author | Roman Kiryanov <rkir@google.com> | Fri Jul 24 09:38:24 2020 -0700 |
committer | Calvin Huang <calhuang@google.com> | Thu Sep 24 00:05:50 2020 -0700 |
tree | 7c24533a9a19d77777421bfce740788e5fa6f172 | |
parent | b4b612144d865e08a70f37322b3a2e7d9eb0af61 [diff] |
Add support for variable sampling period The new sensor HAL version introduced variable sampling periods for sensors. Our host side does not support this. This change latches values for CONTINUOUS_MODE sensors and repeats them at the requested rate. Bug: 159469598 Test: atest android.hardware.cts.SensorBatchingTests Change-Id: I0487f148fccab1066df253f66110a7e2539c82f2 Merged-In: I0487f148fccab1066df253f66110a7e2539c82f2