Google 致力于为黑人社区推动种族平等。查看具体举措

DeviceWifiResourceMetricCollector

public class DeviceWifiResourceMetricCollector
extends Object implements IResourceMetricCollector

对象
com.android.tradefed.monitoring.collector.DeviceWifiResourceMetricCollector


收集器收集当前连接的 wifi 信号强度和链接速度指标。

概括

字段

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 命令并解析 WiFi 指标。

字段

噪音

public static final String NOISE

RSSI

public static final String RSSI

速度

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

公共构造函数

DeviceWifiResourceMetricCollector

public DeviceWifiResourceMetricCollector ()

公共方法

获取设备资源指标

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

发出 adb shell 命令并解析 WiFi 指标。

参数
descriptor DeviceDescriptor :在DeviceDescriptor有关metricizing设备。

deviceManager IDeviceManager :在IDeviceManager实例。

退货
一个ERROR(/Collection)设备的Resource