Scan manager: Suspend scan when location is off
* Add a broadcast receiver to listen for location on/off event. When
location is off, send SUSPEND_SCAN message; when location is on, send
RESUME_SCAN message
* In handleStartScan(), suspend the scan if location is off, unless it
is a filtered scan or issued by a legacy app
* Both location on/off and display on/off events are handled in
HandlerThread, so there is no collision
Test: manual
Bug: 73485839
Change-Id: Ie7adcd91afbb95e2bd231a11ed557915583f1d6c
1 file changed
tree: b5688d09b57109a424f93f37f0186367f22f8e32
- android/