WifiCommandUtil
public
class
WifiCommandUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.WifiCommandUtil |
可剖析 Wi-Fi 指令輸出的公用程式類別。
摘要
巢狀類別 | |
---|---|
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 cmd 傳回的標記,解析網路類型。 |
公用建構函式
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 |