Google 致力于为黑人社区推动种族平等。查看具体举措

DeviceInternetAccessibilityResourceMetricCollector

public class DeviceInternetAccessibilityResourceMetricCollector
extends Object implements IResourceMetricCollector

对象
com.android.tradefed.monitoring.collector.DeviceInternetAccessibilityResourceMetricCollector


收集器 ping google.com 以检查设备是否可以访问互联网。

概括

字段

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

公共构造函数

DeviceInternetAccessibilityResourceMetricCollector ()

公共方法

long getDeviceMetricizeTimeoutMs ()

以毫秒为单位获取设备度量超时。

getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)

发出 ping 命令以收集互联网可访问性指标。

字段

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

失败_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

成功模式

public static final Pattern SUCCESS_PATTERN

公共构造函数

DeviceInternetAccessibilityResourceMetricCollector

public DeviceInternetAccessibilityResourceMetricCollector ()

公共方法

getDeviceMetricizeTimeoutMs

public long getDeviceMetricizeTimeoutMs ()

以毫秒为单位获取设备度量超时。

退货
long

获取设备资源指标

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

发出 ping 命令以收集互联网可访问性指标。

参数
descriptor DeviceDescriptor :在DeviceDescriptor有关metricizing设备。

deviceManager IDeviceManager :在IDeviceManager实例。

退货
一个ERROR(/Collection)设备的Resource