IBatteryInfo

public interface IBatteryInfo

com.android.tradefed.device.battery.IBatteryInfo


The interface defining the interaction with a battery of a device.

Summary

Public methods

abstract IBatteryInfo.BatteryState checkBatteryState(ITestDevice device)

Returns the current state of a device battery.

abstract void disableCharging(ITestDevice device)

Disable the battery charging of a device.

abstract void enableCharging(ITestDevice device)

Enable the battery charging of a device.

Public methods

checkBatteryState

public abstract IBatteryInfo.BatteryState checkBatteryState (ITestDevice device)

Returns the current state of a device battery.

Parameters
device ITestDevice

Returns
IBatteryInfo.BatteryState

Throws
DeviceNotAvailableException

disableCharging

public abstract void disableCharging (ITestDevice device)

Disable the battery charging of a device.

Parameters
device ITestDevice

Throws
DeviceNotAvailableException

enableCharging

public abstract void enableCharging (ITestDevice device)

Enable the battery charging of a device.

Parameters
device ITestDevice

Throws
DeviceNotAvailableException