Refactor WifiStateTracker
Implement WifiStateTracker as a HSM. Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
This commit is contained in:
@@ -88,6 +88,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
*/
|
||||
private List mNetRequestersPids[];
|
||||
|
||||
private WifiWatchdogService mWifiWatchdogService;
|
||||
|
||||
// priority order of the nettrackers
|
||||
// (excluding dynamically set mNetworkPreference)
|
||||
// TODO - move mNetworkTypePreference into this
|
||||
@@ -318,6 +320,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
mNetTrackers[ConnectivityManager.TYPE_WIFI] = wst;
|
||||
wst.startMonitoring();
|
||||
|
||||
//TODO: as part of WWS refactor, create only when needed
|
||||
mWifiWatchdogService = new WifiWatchdogService(context, wst);
|
||||
|
||||
break;
|
||||
case ConnectivityManager.TYPE_MOBILE:
|
||||
mNetTrackers[netType] = new MobileDataStateTracker(context, mHandler,
|
||||
|
||||
Reference in New Issue
Block a user