public class WifiTracker extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
WifiTracker.WifiListener |
Modifier and Type | Field and Description |
---|---|
static int |
sVerboseLogging
verbose logging flag. this flag is set thru developer debugging options
and used so as to assist with in-the-field WiFi connectivity debugging
|
Constructor and Description |
---|
WifiTracker(Context context,
WifiTracker.WifiListener wifiListener,
boolean includeSaved,
boolean includeScans) |
WifiTracker(Context context,
WifiTracker.WifiListener wifiListener,
boolean includeSaved,
boolean includeScans,
boolean includePasspoints) |
WifiTracker(Context context,
WifiTracker.WifiListener wifiListener,
Looper workerLooper,
boolean includeSaved,
boolean includeScans) |
WifiTracker(Context context,
WifiTracker.WifiListener wifiListener,
Looper workerLooper,
boolean includeSaved,
boolean includeScans,
boolean includePasspoints) |
Modifier and Type | Method and Description |
---|---|
boolean |
doSavedNetworksExist() |
void |
dump(PrintWriter pw) |
void |
forceScan()
Force a scan for wifi networks to happen now.
|
void |
forceUpdate()
Forces an update of the wifi networks when not scanning.
|
List<AccessPoint> |
getAccessPoints()
Gets the current list of access points.
|
static List<AccessPoint> |
getCurrentAccessPoints(Context context,
boolean includeSaved,
boolean includeScans,
boolean includePasspoints) |
WifiManager |
getManager() |
boolean |
isConnected() |
boolean |
isWifiEnabled() |
void |
pauseScanning()
Temporarily stop scanning for wifi networks.
|
void |
resumeScanning()
Resume scanning for wifi networks after it has been paused.
|
void |
startTracking()
Start tracking wifi networks.
|
void |
stopTracking()
Stop tracking wifi networks.
|
public static int sVerboseLogging
public WifiTracker(Context context, WifiTracker.WifiListener wifiListener, boolean includeSaved, boolean includeScans)
public WifiTracker(Context context, WifiTracker.WifiListener wifiListener, Looper workerLooper, boolean includeSaved, boolean includeScans)
public WifiTracker(Context context, WifiTracker.WifiListener wifiListener, boolean includeSaved, boolean includeScans, boolean includePasspoints)
public WifiTracker(Context context, WifiTracker.WifiListener wifiListener, Looper workerLooper, boolean includeSaved, boolean includeScans, boolean includePasspoints)
public void forceUpdate()
public void forceScan()
public void pauseScanning()
public void resumeScanning()
public void startTracking()
public void stopTracking()
public List<AccessPoint> getAccessPoints()
public WifiManager getManager()
public boolean isWifiEnabled()
public boolean doSavedNetworksExist()
public boolean isConnected()
public void dump(PrintWriter pw)
public static List<AccessPoint> getCurrentAccessPoints(Context context, boolean includeSaved, boolean includeScans, boolean includePasspoints)