DeviceInternetAccessibilityResourceMetricCollector

public class DeviceInternetAccessibilityResourceMetricCollector
extends Object implements IResourceMetricCollector

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


The collector pings google.com to check if the device has internet accessibility or not.

Summary

Fields

public static final String AVG_PING

public static final String AVG_PING6_TAG

public static final String AVG_PING_TAG

public static final Float FAILED_VAL

public static final String INTERNET_ACCESSIBILITY_METRIC_NAME

public static final String PING6_CMD

public static final String PING_CMD

public static final Pattern SUCCESS_PATTERN

Public constructors

DeviceInternetAccessibilityResourceMetricCollector()

Public methods

long getDeviceMetricizeTimeoutMs()

Gets the device metricize timeout in ms.

getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)

Issues ping command to collect internet accessibility metrics.

Fields

AVG_PING

public static final String AVG_PING

AVG_PING6_TAG

public static final String AVG_PING6_TAG

AVG_PING_TAG

public static final String AVG_PING_TAG

FAILED_VAL

public static final Float FAILED_VAL

INTERNET_ACCESSIBILITY_METRIC_NAME

public static final String INTERNET_ACCESSIBILITY_METRIC_NAME

PING6_CMD

public static final String PING6_CMD

PING_CMD

public static final String PING_CMD

SUCCESS_PATTERN

public static final Pattern SUCCESS_PATTERN

Public constructors

DeviceInternetAccessibilityResourceMetricCollector

public DeviceInternetAccessibilityResourceMetricCollector ()

Public methods

getDeviceMetricizeTimeoutMs

public long getDeviceMetricizeTimeoutMs ()

Gets the device metricize timeout in ms.

Returns
long

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

Issues ping command to collect internet accessibility metrics.

Parameters
descriptor DeviceDescriptor: the DeviceDescriptor about the metricizing device.

deviceManager IDeviceManager: the IDeviceManager instance.

Returns
a ERROR(/Collection) of device Resource.