DeviceWifiResourceMetricCollector

public class DeviceWifiResourceMetricCollector
extends Object implements IResourceMetricCollector

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


Le collecteur collecte les métriques actuelles sur l'intensité du signal Wi-Fi connecté et la vitesse de la liaison.

Résumé

Champs

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

Constructeurs publics

DeviceWifiResourceMetricCollector()

Méthodes publiques

getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)

Émet la commande shell adb et analyse les métriques Wi-Fi.

Champs

BRUIT

public static final String NOISE

RSSI

public static final String RSSI

VITESSE

public static final String SPEED

SSID

public static final String SSID

WIFI_METRIC_NAME

public static final String WIFI_METRIC_NAME

SIGNAL_CMD

public static final String WIFI_SIGNAL_CMD

SIGNAL_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

Constructeurs publics

DeviceWifiResourceMetricCollector

public DeviceWifiResourceMetricCollector ()

Méthodes publiques

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

Émet la commande shell adb et analyse les métriques Wi-Fi.

Paramètres
descriptor DeviceDescriptor: DeviceDescriptor concernant l'appareil de mesure.

deviceManager IDeviceManager: instance IDeviceManager.

Renvoie
une ERROR(/Collection) de l'appareil Resource.