Ensure looper isn't used after invalidateSensorQueue
Previous attempts resulted in improper locking that created a deadlock
siutation. This attempt creates a new lock for mValid that should avoid
any deadlock scenario that could arise from normal use.
Bug: 175074139
Test: Load on Pixel device and run various applications
Merged-In: I4e5a68b70353161f21e0d93cac1ceb11cc9ad035
Change-Id: I4e5a68b70353161f21e0d93cac1ceb11cc9ad035
(cherry picked from commit 99d5d9ac9e30c43e7d8c58cd562e3fffb26f4771)
3 files changed