IBatteryInfo
public interface IBatteryInfo
com.android.tradefed.device.battery.IBatteryInfo |
Bir cihazın bataryası ile etkileşimi tanımlayan arayüz.
Özet
İç içe geçmiş sınıflar | |
---|---|
enum | IBatteryInfo.BatteryState Mevcut pil şarj durumunu açıklar. |
Herkese açık yöntemler | |
---|---|
abstract IBatteryInfo.BatteryState | checkBatteryState (ITestDevice device) Bir cihaz 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. |
Herkese açık yöntemler
checkBatteryState
public abstract IBatteryInfo.BatteryState checkBatteryState (ITestDevice device)
Bir cihaz pilinin mevcut durumunu döndürür.
Parametreler | |
---|---|
device | ITestDevice |
İadeler | |
---|---|
IBatteryInfo.BatteryState |
Atar | |
---|---|
DeviceNotAvailableException |
disableCharging
public abstract void disableCharging (ITestDevice device)
Bir cihazın pil şarjını devre dışı bırakın.
Parametreler | |
---|---|
device | ITestDevice |
Atar | |
---|---|
DeviceNotAvailableException |
enableCharging
public abstract void enableCharging (ITestDevice device)
Bir cihazın pil şarjını etkinleştirin.
Parametreler | |
---|---|
device | ITestDevice |
Atar | |
---|---|
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"İhtiyacım olan bilgiler yok"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Çok karmaşık / çok fazla adım var"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Güncel değil"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Çeviri sorunu"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Örnek veya kod sorunu"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Diğer"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Anlaması kolay"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Sorunumu çözdü"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Diğer"
}]