DeviceInternetAccessibilityResourceMetricCollector

public class DeviceInternetAccessibilityResourceMetricCollector
extends Object implements IResourceMetricCollector

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


收集器会对 google.com 执行 ping 操作,以检查设备是否可以访问互联网。

摘要

字段

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

失败值

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

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

发出 ping 命令以收集互联网无障碍功能指标。

参数
descriptor DeviceDescriptor:关于设备计量的 DeviceDescriptor

deviceManager IDeviceManagerIDeviceManager 实例。

返回
设备 ResourceERROR(/Collection)