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