commit | adac97fa08e515d50f3205d0cde5bfa4dddd9423 | [log] [tgz] |
---|---|---|
author | Hsin-Yi Chen <hsinyichen@google.com> | Fri Sep 03 11:52:23 2021 +0800 |
committer | Hsin-Yi Chen <hsinyichen@google.com> | Fri Sep 03 12:07:15 2021 +0800 |
tree | 9eafb83159584e64854014a7ba2f573daf1f5d15 | |
parent | 101c9db5664ebcfbe394c64b6808e33e23e0c977 [diff] |
Use CLOCK_BOOTTIME for default sensor implementation The sensor implementation used to generate periodic signals according to CLOCK_REALTIME. The clock can be adjusted by user or synchronization service and results in wrong period. This commit changes it to CLOCK_BOOTTIME which is monotonic. Test: atest VtsHalSensorsV2_0TargetTest Test: atest VtsHalSensorsV2_1TargetTest Test: atest CtsSensorTestCases Bug: 194030777 Change-Id: Iac39c93d6d2518b1abe8fc07fd695b9bb2cf30a5