IPatteryInfo
public interface IBatteryInfo
com.android.tradefed.device.battery.IBatteryInfo |
Giao diện xác định tương tác với pin của thiết bị.
Tóm lược
Các lớp lồng nhau | |
---|---|
enum | IBatteryInfo.BatteryState Mô tả trạng thái sạc pin hiện tại. |
Phương pháp công khai | |
---|---|
abstract IBatteryInfo.BatteryState | checkBatteryState (ITestDevice device) Trả về trạng thái hiện tại của pin thiết bị. |
abstract void | disableCharging (ITestDevice device) Tắt tính năng sạc pin của thiết bị. |
abstract void | enableCharging (ITestDevice device) Cho phép sạc pin của thiết bị. |
Phương pháp công khai
checkBatteryState
public abstract IBatteryInfo.BatteryState checkBatteryState (ITestDevice device)
Trả về trạng thái hiện tại của pin thiết bị.
Thông số | |
---|---|
device | ITestDevice |
Lợi nhuận | |
---|---|
IBatteryInfo.BatteryState |
Ném | |
---|---|
DeviceNotAvailableException |
disableCharging
public abstract void disableCharging (ITestDevice device)
Tắt tính năng sạc pin của thiết bị.
Thông số | |
---|---|
device | ITestDevice |
Ném | |
---|---|
DeviceNotAvailableException |
enableCharging
public abstract void enableCharging (ITestDevice device)
Cho phép sạc pin của thiết bị.
Thông số | |
---|---|
device | ITestDevice |
Ném | |
---|---|
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.
[]
[]