อุปกรณ์ActionUtil

public class DeviceActionUtil
extends Object

java.lang.Object
com.android.tradefed.util.DeviceActionUtil


คลาสยูทิลิตี้เพื่อดำเนินการการกระทำของอุปกรณ์

สรุป

คลาสที่ซ้อนกัน

class DeviceActionUtil.DeviceActionConfigError

ข้อยกเว้นสำหรับข้อผิดพลาดในการกำหนดค่า

วิธีการสาธารณะ

static DeviceActionUtil create (File deviceActionMainJar, File bundletoolJar)

สร้างอินสแตนซ์

CommandResult execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) execute ( DeviceActionUtil.Command command, String deviceId, actionArgs)

ดำเนินการคำสั่งการดำเนินการของอุปกรณ์

void generateLogFile ( CommandResult result)

สร้างไฟล์บันทึกของโฮสต์

void saveToLogs ( DeviceActionUtil.Command cmd, ITestLogger testLogger)

บันทึกไฟล์ที่สร้างขึ้นทั้งหมดเพื่อทดสอบบันทึก

วิธีการสาธารณะ

สร้าง

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

สร้างอินสแตนซ์

พารามิเตอร์
deviceActionMainJar File

bundletoolJar File

การส่งคืน
DeviceActionUtil

ขว้าง
DeviceActionUtil.DeviceActionConfigError

ดำเนินการ

public CommandResult execute (DeviceActionUtil.Command command, 
                String deviceId, 
                 actionArgs)

ดำเนินการคำสั่งการดำเนินการของอุปกรณ์

พารามิเตอร์
command DeviceActionUtil.Command : เพื่อดำเนินการ

deviceId String : ของอุปกรณ์

actionArgs : action args สำหรับ command

การส่งคืน
CommandResult

สร้าง LogFile

public void generateLogFile (CommandResult result)

สร้างไฟล์บันทึกของโฮสต์

พารามิเตอร์
result CommandResult

saveToLogs

public void saveToLogs (DeviceActionUtil.Command cmd, 
                ITestLogger testLogger)

บันทึกไฟล์ที่สร้างขึ้นทั้งหมดเพื่อทดสอบบันทึก

พารามิเตอร์
cmd DeviceActionUtil.Command

testLogger ITestLogger