wifi: Stop using custom WifiScanner instance creation
Wifi service uses @hide ServiceManager.getService to retrieve the
"wifiscanner" binder service and create a WifiScanner instance which
uses the wifi service thread looper. This was to ensure that all the
wifi scanner callbacks initiated to wifi-service executes in the
wifi service thread. Instead, use the new wifi scanner API's which
accept an executor along with the listener. The executor will ensure
that the callbacks will continue to occur on the wifi service thread.
This helps get rid of all usage of @hide ServiceManager.getService from
wifi stack.
Bug: 145746458
Test: Device boots up and connects to wifi networks.
Test: atest com.android.server.wifi
Change-Id: Id6dd9eeeea7463e6280547be133eee113a4a09de
10 files changed