IBatteryInfo

public interface IBatteryInfo

com.android.tradefed.device.battery.IBatteryInfo


Bir cihazın piliyle etkileşimi tanımlayan arayüz.

Özet

Genel yöntemler

abstract IBatteryInfo.BatteryState checkBatteryState ( ITestDevice device)

Bir cihazın pilinin mevcut durumunu döndürür.

abstract void disableCharging ( ITestDevice device)

Bir cihazın pil şarjını devre dışı bırakın.

abstract void enableCharging ( ITestDevice device)

Bir cihazın pil şarjını etkinleştirin.

Genel yöntemler

kontrolPilDurumu

public abstract IBatteryInfo.BatteryState checkBatteryState (ITestDevice device)

Bir cihazın pilinin mevcut durumunu döndürür.

Parametreler
device ITestDevice

İadeler
IBatteryInfo.BatteryState

Atar
DeviceNotAvailableException

Şarjı devre dışı bırak

public abstract void disableCharging (ITestDevice device)

Bir cihazın pil şarjını devre dışı bırakın.

Parametreler
device ITestDevice

Atar
DeviceNotAvailableException

Şarj etmeyi etkinleştir

public abstract void enableCharging (ITestDevice device)

Bir cihazın pil şarjını etkinleştirin.

Parametreler
device ITestDevice

Atar
DeviceNotAvailableException