DeviceBatteryResourceMetricCollector

public class DeviceBatteryResourceMetricCollector
extends Object implements IResourceMetricCollector

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


Kolektor ini mengumpulkan metrik baterai perangkat. Ini mengeluarkan perintah shell adb dan mengurai respons, metrik mencakup status, kondisi, level, skala, dan suhu.

Ringkasan

Konstanta

float BATTERY_TEMP_DENOMINATOR

Kolom

public static final String BATTERY_CMD

public static final Pattern BATTERY_PATTERN

public static final String BATTERY_RESOURCE_NAME

public static final String FIELD_GROUP

public static final String TEMPERATURE

public static final String VALUE_GROUP

Konstruktor publik

DeviceBatteryResourceMetricCollector()

Metode publik

getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)

Mendapatkan status baterai perangkat.

Konstanta

DENOMINATOR_TEMP_BATERAI

public static final float BATTERY_TEMP_DENOMINATOR

Nilai Konstanta: 10,0

Kolom

BATERAI_CMD

public static final String BATTERY_CMD

POLA_BATERAI

public static final Pattern BATTERY_PATTERN

BATTERY_RESOURCE_NAME

public static final String BATTERY_RESOURCE_NAME

KOLOM_GROUP

public static final String FIELD_GROUP

SUHU

public static final String TEMPERATURE

VALUE_GROUP

public static final String VALUE_GROUP

Konstruktor publik

DeviceBatteryResourceMetricCollector

public DeviceBatteryResourceMetricCollector ()

Metode publik

getDeviceResourceMetrics

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

Mendapatkan status baterai perangkat.

Parameter
descriptor DeviceDescriptor: DeviceDescriptor tentang perangkat metrik.

deviceManager IDeviceManager: instance IDeviceManager.

Hasil
ERROR(/Collection) perangkat Resource.