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 |