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 и ее аффилированных лиц.
Последнее обновление: 2020-09-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Отсутствует нужная мне информация"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Слишком сложен/слишком много шагов"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Устарел"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Проблема с переводом текста"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Проблемы образцов/кода"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Другое"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Прост для понимания"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Помог мне решить мою проблему"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Другое"
}]