Refactor WifiStateTracker
Implement WifiStateTracker as a HSM. Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
This commit is contained in:
parent
a7dfbd3a1d
commit
653e2a2f64
1 changed files with 88 additions and 43 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue