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 |
ปิดการใช้งานการชาร์จ
public abstract void disableCharging (ITestDevice device)
ปิดใช้งานการชาร์จแบตเตอรี่ของอุปกรณ์
พารามิเตอร์ | |
---|---|
device | ITestDevice |
ขว้าง | |
---|---|
DeviceNotAvailableException |
เปิดใช้งานการชาร์จ
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 and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]