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

DeviceStorageAgeResourceMetricCollector

public class DeviceStorageAgeResourceMetricCollector
extends Object implements IResourceMetricCollector

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


从 logcat 解析存储年龄。必须为此收集器启用 storaged。使用此收集器前请检查,否则将返回空资源。

概括

字段

public static final String AGE_TAG

public static final String LIFE_A_TAG

public static final String LIFE_B_TAG

public static final String STORAGE_AGE_CMD_FORMAT

public static final Pattern STORAGE_AGE_PATTERN

public static final String STORAGE_AGE_RESOURCE_NAME

公共构造函数

DeviceStorageAgeResourceMetricCollector ()

公共方法

getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)

收集设备资源指标。

字段

AGE_TAG

public static final String AGE_TAG

LIFE_A_TAG

public static final String LIFE_A_TAG

LIFE_B_TAG

public static final String LIFE_B_TAG

STORAGE_AGE_CMD_FORMAT

public static final String STORAGE_AGE_CMD_FORMAT

STORAGE_AGE_PATTERN

public static final Pattern STORAGE_AGE_PATTERN

STORAGE_AGE_RESOURCE_NAME

public static final String STORAGE_AGE_RESOURCE_NAME

公共构造函数

DeviceStorageAgeResourceMetricCollector

public DeviceStorageAgeResourceMetricCollector ()

公共方法

获取设备资源指标

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

收集设备资源指标。该功能必须在返回getDeviceMetricizeTimeoutMs()毫秒,否则结果将被丢弃LabResourceDeviceMonitor 。另外,请在昂贵的操作之前检查 Thread.currentThread().isInterrupted() 并立即返回。

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

deviceManager IDeviceManager :在IDeviceManager实例。

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