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