IBatteryInfo
public interface IBatteryInfo
com.android.tradefed.device.battery.IBatteryInfo |
장치의 배터리와의 상호 작용을 정의하는 인터페이스입니다.
요약
중첩 된 클래스 | |
---|---|
enum | IBatteryInfo.BatteryState 현재 배터리 충전 상태를 설명합니다. |
공개 방법 | |
---|---|
abstract IBatteryInfo.BatteryState | checkBatteryState (ITestDevice device) 장치 배터리의 현재 상태를 반환합니다. |
abstract void | disableCharging (ITestDevice device) 장치의 배터리 충전을 비활성화합니다. |
abstract void | enableCharging (ITestDevice device) 장치의 배터리 충전을 활성화합니다. |
공개 방법
checkBatteryState
public abstract IBatteryInfo.BatteryState checkBatteryState (ITestDevice device)
장치 배터리의 현재 상태를 반환합니다.
매개 변수 | |
---|---|
device | ITestDevice |
보고 | |
---|---|
IBatteryInfo.BatteryState |
던짐 | |
---|---|
DeviceNotAvailableException |
disableCharging
public abstract void disableCharging (ITestDevice device)
장치의 배터리 충전을 비활성화합니다.
매개 변수 | |
---|---|
device | ITestDevice |
던짐 | |
---|---|
DeviceNotAvailableException |
enableCharging
public abstract void enableCharging (ITestDevice device)
장치의 배터리 충전을 활성화합니다.
매개 변수 | |
---|---|
device | ITestDevice |
던짐 | |
---|---|
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 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":"기타"
}]