DeviceStorageAgeResourceMetricCollector

public class DeviceStorageAgeResourceMetricCollector
extends Object implements IResourceMetricCollector

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


從 logcat 剖析儲存效期。必須為這個收集器啟用儲存器。請勾選 才能使用這個收集器,否則將會傳回空白資源。

摘要

欄位

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)

收集裝置資源指標。

欄位

年齡

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 ()

公用方法

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

收集裝置資源指標。這個函式必須在 getDeviceMetricizeTimeoutMs() 毫秒內傳回,否則結果會是 捨棄 LabResourceDeviceMonitor。此外,也請參閱 Thread.currentThread().isInterrupted() 並立即傳回。

參數
descriptor DeviceDescriptor:有關指標化裝置的 DeviceDescriptor

deviceManager IDeviceManagerIDeviceManager 例項。

傳回
裝置 ERROR(/Collection) (Resource)。