自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release 而非 aosp-main 构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[]]