DeviceWifiResourceMetricCollector

public class DeviceWifiResourceMetricCollector
extends Object implements IResourceMetricCollector

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


O coletor coleta as métricas atuais de velocidade do link e a intensidade do sinal de Wi-Fi conectado.

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 de Wi-Fi.

Campos

RUÍDO

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

PAPEL_DE_SINAL_WIFI

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 de Wi-Fi.

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

deviceManager IDeviceManager: a instância IDeviceManager.

Retorna
um ERROR(/Collection) do dispositivo Resource.