Google is committed to advancing racial equity for Black communities. See how.

IBatteryInfo

public interface IBatteryInfo

com.android.tradefed.device.battery.IBatteryInfo


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

Summary

Nested classes

enum IBatteryInfo.BatteryState

Describes the current battery charging state. 

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