BatteryTemperature

public class BatteryTemperature
extends Object implements IBatteryTemperature

java.lang.Object
   ↳ com.android.tradefed.device.BatteryTemperature


Summary

Nested classes

class BatteryTemperature.DumpsysBatteryTemperatureReceiver

Parse the output of "adb shell dumpsys battery" to collect the temperature. 

Public constructors

BatteryTemperature()

Public methods

Integer getBatteryTemperature(IDevice device)

Get the device's battery temperature, in degrees celsius.

Public constructors

BatteryTemperature

public BatteryTemperature ()

Public methods

getBatteryTemperature

public Integer getBatteryTemperature (IDevice device)

Get the device's battery temperature, in degrees celsius.

TODO: Implement as ddmlib IDevice#getBatteryTemperature()

Parameters
device IDevice

Returns
Integer The device's temperature, in degrees celsius. If unavailable, the return value is 0.