WifiCommandUtil
public
class
WifiCommandUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.WifiCommandUtil |
一个实用程序类,可解析 WLAN 命令输出。
摘要
嵌套类 | |
---|---|
class |
WifiCommandUtil.ScanResult
表示包含相关信息的 Wi-Fi 网络。 |
公共构造函数 | |
---|---|
WifiCommandUtil()
|
公共方法 | |
---|---|
static
|
parseScanResults(String input)
解析 `wifi list-scan-results` 命令输出,并返回 |
static
|
parseWifiInfo(String input)
解析“wifi status”输出,并返回有关已连接 Wi-Fi 网络的信息映射。 |
static
String
|
resolveNetworkType(String flags)
根据从 list-scan-result 命令返回的标志解析网络类型。 |
公共构造函数
WifiCommandUtil
public WifiCommandUtil ()
公共方法
parseScanResults
public staticparseScanResults (String input)
解析 `wifi list-scan-results` 命令输出,并返回 ScanResult
列表。
参数 | |
---|---|
input |
String :要解析的 list-scan-results 命令的输出。 |
返回 | |
---|---|
|
ScanResult 列表。 |
parseWifiInfo
public staticparseWifiInfo (String input)
解析“wifi status”输出,并返回有关已连接 Wi-Fi 网络的信息映射。
参数 | |
---|---|
input |
String :要解析的“wifi status”命令的输出。 |
返回 | |
---|---|
|
显示已连接网络相关信息的地图。 |
resolveNetworkType
public static String resolveNetworkType (String flags)
根据从 list-scan-result 命令返回的标志解析网络类型。
参数 | |
---|---|
flags |
String |
返回 | |
---|---|
String |