Thiết bịHành độngUtil
public class DeviceActionUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceActionUtil |
Một lớp Tiện ích để thực hiện các hành động của thiết bị.
Bản tóm tắt
Các lớp lồng nhau | |
---|---|
class | DeviceActionUtil.DeviceActionConfigError Ngoại lệ cho lỗi cấu hình. |
Phương pháp công khai | |
---|---|
static DeviceActionUtil | create (File deviceActionMainJar, File bundletoolJar) Tạo một cá thể. |
CommandResult | execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) Thực hiện lệnh hành động của thiết bị. |
void | generateLogFile ( CommandResult result) Tạo tệp nhật ký máy chủ. |
void | saveToLogs ( DeviceActionUtil.Command cmd, ITestLogger testLogger) Lưu tất cả các tập tin được tạo vào nhật ký kiểm tra. |
Phương pháp công khai
tạo nên
public static DeviceActionUtil create (File deviceActionMainJar, File bundletoolJar)
Tạo một cá thể.
Thông số | |
---|---|
deviceActionMainJar | File |
bundletoolJar | File |
Trả lại | |
---|---|
DeviceActionUtil |
Ném | |
---|---|
DeviceActionUtil.DeviceActionConfigError |
hành hình
public CommandResult execute (DeviceActionUtil.Command command, String deviceId,actionArgs)
Thực hiện lệnh hành động của thiết bị.
Thông số | |
---|---|
command | DeviceActionUtil.Command : để thực thi. |
deviceId | String : của thiết bị. |
actionArgs | command . |
Trả lại | |
---|---|
CommandResult |
tạoLogFile
public void generateLogFile (CommandResult result)
Tạo tệp nhật ký máy chủ.
Thông số | |
---|---|
result | CommandResult |
lưuToLogs
public void saveToLogs (DeviceActionUtil.Command cmd, ITestLogger testLogger)
Lưu tất cả các tập tin được tạo vào nhật ký kiểm tra.
Thông số | |
---|---|
cmd | DeviceActionUtil.Command |
testLogger | ITestLogger |
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2023-12-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Thiếu thông tin tôi cần"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Quá phức tạp/quá nhiều bước"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Đã lỗi thời"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Vấn đề về bản dịch"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Khác"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Dễ hiểu"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Giúp tôi giải quyết được vấn đề"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Khác"
}]