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 is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.