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 |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-03 UTC.