Merge "Make WifiScanner state not static and use ConnectivityThread" into nyc-dev am: 3c58709

am: 53560db

* commit '53560db137aeab0a25c6a81c61da4426a676ce37':
  Make WifiScanner state not static and use ConnectivityThread

Change-Id: If2d49d771b63e0fd1bd96bdd976048da9435648a
This commit is contained in:
Mitchell Wills
2016-04-13 18:56:25 +00:00
committed by android-build-merger
2 changed files with 68 additions and 86 deletions

View File

@@ -532,7 +532,8 @@ final class SystemServiceRegistry {
public WifiScanner createService(ContextImpl ctx) {
IBinder b = ServiceManager.getService(Context.WIFI_SCANNING_SERVICE);
IWifiScanner service = IWifiScanner.Stub.asInterface(b);
return new WifiScanner(ctx.getOuterContext(), service);
return new WifiScanner(ctx.getOuterContext(), service,
ConnectivityThread.getInstanceLooper());
}});
registerService(Context.WIFI_RTT_SERVICE, RttManager.class,