DeviceWifiResourceMetricCollector
public
class
DeviceWifiResourceMetricCollector
extends Object
implements
IResourceMetricCollector
java.lang.Object | |
↳ | com.android.tradefed.monitoring.collector.DeviceWifiResourceMetricCollector |
The collector collects current connected wifi signal strength and link speed metrics.
Summary
Fields | |
---|---|
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
|
Public constructors | |
---|---|
DeviceWifiResourceMetricCollector()
|
Public methods | |
---|---|
|
getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)
Issues adb shell command and parses the WiFi metrics. |
Fields
NOISE
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
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
Public constructors
DeviceWifiResourceMetricCollector
public DeviceWifiResourceMetricCollector ()
Public methods
getDeviceResourceMetrics
publicgetDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
Issues adb shell command and parses the WiFi metrics.
Parameters | |
---|---|
descriptor |
DeviceDescriptor : the DeviceDescriptor about the metricizing device. |
deviceManager |
IDeviceManager : the IDeviceManager instance. |
Returns | |
---|---|
|
a ERROR(/Collection) of device Resource .
|