自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
WifiCommandUtil
public
class
WifiCommandUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.device.WifiCommandUtil
|
可剖析 Wi-Fi 指令輸出的公用程式類別。
摘要
公用建構函式
WifiCommandUtil
public WifiCommandUtil ()
公用方法
parseScanResults
public static parseScanResults (String input)
剖析 `wifi list-scan-results` 指令的輸出內容,並傳回 ScanResult
清單。
參數 |
input |
String :要剖析的 list-scan-results 指令輸出內容。 |
parseWifiInfo
public static parseWifiInfo (String input)
剖析「wifi status」輸出內容,並傳回已連線 Wi-Fi 網路的資訊對應表。
參數 |
input |
String :要剖析的「wifi status」指令輸出內容。 |
resolveNetworkType
public static String resolveNetworkType (String flags)
根據 list-scan-result 指令傳回的標記,解析網路類型。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-03-26 (世界標準時間)。
[null,null,["上次更新時間:2025-03-26 (世界標準時間)。"],[],[]]