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 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2020-09-08。
[]
[]