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 : hành động lập luận cho 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