DeviceWifiResourceMetricCollector

public class DeviceWifiResourceMetricCollector
extends Object implements IResourceMetricCollector

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


O coletor coleta a força do sinal wi-fi conectado atualmente e as métricas de velocidade do link.

Resumo

Campos

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

Construtores públicos

DeviceWifiResourceMetricCollector ()

Métodos públicos

getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)

Emite o comando adb shell e analisa as métricas WiFi.

Campos

BARULHO

public static final String NOISE

RSSI

public static final String RSSI

VELOCIDADE

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

Construtores públicos

DeviceWifiResourceMetricCollector

public DeviceWifiResourceMetricCollector ()

Métodos públicos

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

Emite o comando adb shell e analisa as métricas WiFi.

Parâmetros
descriptor DeviceDescriptor : o DeviceDescriptor sobre o dispositivo de métrica.

deviceManager IDeviceManager : a instância IDeviceManager .

Devoluções
um ERROR(/Collection) do dispositivo Resource .