设备 WifiResourceMetricCollector

public class DeviceWifiResourceMetricCollector
extends Object implements IResourceMetricCollector

java.lang.Object 中
   ↳ com.android.tradefed.monitoring.collector.DeviceWifiResourceMetricCollector


收集器会收集当前连接的 Wi-Fi 信号强度和链路速度指标。

摘要

字段

public static final String NOISE

public static final String RSSI

public static final String SPEED

public static final String SSID

public static final String WIFI_METRIC_NAME

public static final String WIFI_SIGNAL_CMD

public static final Pattern WIFI_SIGNAL_PATTERN

public static final String WIFI_STATUS_CMD

public static final Pattern WIFI_STATUS_PATTERN

公共构造函数

DeviceWifiResourceMetricCollector()

公共方法

getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)

发出 adb shell 命令并解析 Wi-Fi 指标。

字段

噪音

public static final String NOISE

RSSI

public static final String RSSI

SPEED

public static final String SPEED

SSID

public static final String SSID

WIFI_METRIC_NAME

public static final String WIFI_METRIC_NAME

WIFI_SIGNAL_CMD

public static final String WIFI_SIGNAL_CMD

WIFI_SIGNAL_PATTERN

public static final Pattern WIFI_SIGNAL_PATTERN

WIFI_STATUS_CMD

public static final String WIFI_STATUS_CMD

WIFI_STATUS_PATTERN

public static final Pattern WIFI_STATUS_PATTERN

公共构造函数

设备 WifiResourceMetricCollector

public DeviceWifiResourceMetricCollector ()

公共方法

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

发出 adb shell 命令并解析 Wi-Fi 指标。

参数
descriptor DeviceDescriptor:关于设备计量的 DeviceDescriptor

deviceManager IDeviceManagerIDeviceManager 实例。

返回
设备 ResourceERROR(/Collection)