I电池信息

public interface IBatteryInfo

com.android.tradefed.device.battery.IBatteryInfo


定义与设备电池交互的接口。

概括

公共方法

abstract IBatteryInfo.BatteryState checkBatteryState ( ITestDevice device)

返回设备电池的当前状态。

abstract void disableCharging ( ITestDevice device)

禁用设备的电池充电。

abstract void enableCharging ( ITestDevice device)

启用设备的电池充电。

公共方法

检查电池状态

public abstract IBatteryInfo.BatteryState checkBatteryState (ITestDevice device)

返回设备电池的当前状态。

参数
device ITestDevice

退货
IBatteryInfo.BatteryState

投掷
DeviceNotAvailableException

禁用充电

public abstract void disableCharging (ITestDevice device)

禁用设备的电池充电。

参数
device ITestDevice

投掷
DeviceNotAvailableException

启用充电

public abstract void enableCharging (ITestDevice device)

启用设备的电池充电。

参数
device ITestDevice

投掷
DeviceNotAvailableException