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.
Test: Load on Pixel device and run various applications
(cherry picked from commit 99d5d9ac9e30c43e7d8c58cd562e3fffb26f4771)
3 files changed