commit | d3849e10295d848cf3e040a446bcb6f139cfad30 | [log] [tgz] |
---|---|---|
author | Brian Stack <bstack@google.com> | Mon Jan 07 12:57:12 2019 -0800 |
committer | Brian Stack <bstack@google.com> | Wed Jan 09 17:08:34 2019 +0000 |
tree | 34eecc1d22b45fc3b56de3ab9c5e0865a3d959e5 | |
parent | 54a73b633ebf8a4febb00d34d55acf29270dca68 [diff] |
Stop Wake Lock thread if it is running If the Wake Lock thread is running, stop it whenever initialize() is called in order to prevent an invalid Wake Lock Queue from being read. Also disable all sensors whenever initialize() is called to ensure that stale sensor registrations are properly cleaned up. Bug: 122468928 Test: Sensors HAL 2.0 tests run without crashing Change-Id: I5fb55628545adbb481da6fcda157c78cff834134