public class

WifiHelper

extends Object
java.lang.Object
   ↳ com.android.tradefed.device.WifiHelper

Class Overview

Helper class for manipulating wifi services on device.

Summary

Constants
String INSTRUMENTATION_PKG
Public Constructors
WifiHelper(ITestDevice device)
Public Methods
boolean addOpenNetwork(String ssid)
boolean addWpaPskNetwork(String ssid, String psk)
boolean disableWifi()
boolean enableWifi()
static File extractWifiUtilApk()
Helper method to extract the wifi util apk from the classpath
String getIpAddress()
String getSSID()
boolean hasValidIp()
boolean isWifiEnabled()
void removeAllNetworks()
boolean waitForIp(long timeout)
boolean waitForWifiEnabled(long timeout)
boolean waitForWifiEnabled()
boolean waitForWifiState(WifiState... expectedStates)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String INSTRUMENTATION_PKG

Constant Value: "com.android.tradefed.utils.wifi"

Public Constructors

public WifiHelper (ITestDevice device)

Public Methods

public boolean addOpenNetwork (String ssid)

public boolean addWpaPskNetwork (String ssid, String psk)

public boolean disableWifi ()

public boolean enableWifi ()

public static File extractWifiUtilApk ()

Helper method to extract the wifi util apk from the classpath

Throws
IOException

public String getIpAddress ()

public String getSSID ()

public boolean hasValidIp ()

public boolean isWifiEnabled ()

public void removeAllNetworks ()

public boolean waitForIp (long timeout)

public boolean waitForWifiEnabled (long timeout)

public boolean waitForWifiEnabled ()

public boolean waitForWifiState (WifiState... expectedStates)