BatteryController
public class BatteryController
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.battery.BatteryController |
デバイスのバッテリ充電状態を制御できるユーティリティクラス。
概要
パブリックコンストラクター | |
---|---|
BatteryController () |
パブリックメソッド | |
---|---|
static IBatteryInfo | getBatteryInfoForDevice (ITestDevice device) 返し |
static IBatteryInfo.BatteryState | getDeviceChargingState (ITestDevice device) デバイスの充電状態を返します。 |
パブリックコンストラクター
BatteryController
public BatteryController ()
パブリックメソッド
getBatteryInfoForDevice
public static IBatteryInfo getBatteryInfoForDevice (ITestDevice device)
返しIBatteryInfo
デバイスのは。何か問題が発生した場合、またはデバイスがサポートされていない場合はnullを返します。
パラメーター | |
---|---|
device | ITestDevice |
戻り値 | |
---|---|
IBatteryInfo |
getDeviceChargingState
public static IBatteryInfo.BatteryState getDeviceChargingState (ITestDevice device)
デバイスの充電状態を返します。デバイスがサポートされていない場合はそれが返されますIBatteryInfo.BatteryState.UNDEFINED
。
パラメーター | |
---|---|
device | ITestDevice |
戻り値 | |
---|---|
IBatteryInfo.BatteryState |
投げる | |
---|---|
DeviceNotAvailableException |