make verbose logging a wifimanager hidden API

Change-Id: I092b7f507ad4dfdab16658929f02584a1fc22ba4
This commit is contained in:
vandwalle
2014-05-21 15:21:16 -07:00
parent de1bf1e32a
commit c9a6698fd4
5 changed files with 84 additions and 15 deletions

View File

@@ -712,6 +712,8 @@ public class WifiSettings extends RestrictedSettingsFragment
return super.onCreateDialog(dialogId);
}
/** verbose logging flag is set only thru developer debugging options */
public static int mVerboseLogging = 0;
/**
* Shows the latest access points available with supplimental information like
* the strength of network and the security for it.
@@ -726,6 +728,9 @@ public class WifiSettings extends RestrictedSettingsFragment
}
final int wifiState = mWifiManager.getWifiState();
//check if verbose logging has been turned on or off
mVerboseLogging = mWifiManager.getVerboseLoggingLevel();
switch (wifiState) {
case WifiManager.WIFI_STATE_ENABLED:
// AccessPoints are automatically sorted with TreeSet.