RemoteAndroidVirtualDevice

public class RemoteAndroidVirtualDevice
extends RemoteAndroidDevice

java.lang.Object
   ↳ com.android.tradefed.device.NativeDevice
     ↳ com.android.tradefed.device.TestDevice
       ↳ com.android.tradefed.device.RemoteAndroidDevice
         ↳ com.android.tradefed.device.cloud.RemoteAndroidVirtualDevice


ขยายRemoteAndroidDeviceลักษณะการทำงานสำหรับอุปกรณ์ Android แบบฟูลสแต็กที่ทำงานใน Google Compute Engine (GCE) สมมติว่าหมายเลขซีเรียลของอุปกรณ์จะอยู่ในรูปแบบ : ใน adb

สรุป

เครื่องมือสร้างสาธารณะ

RemoteAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

สร้าง RemoteAndroidVirtualDevice

เมธอดสาธารณะ

DeviceInspectionResult debugDeviceNotAvailable()

ตรวจสอบอุปกรณ์และแสดงข้อมูลโดยละเอียดเมื่ออุปกรณ์ไม่พร้อมใช้งาน

GceAvdInfo getAvdInfo()

เลิกใช้เมธอดนี้แล้ว ควรใช้ Connection API โดยตรง

DeviceDescriptor getDeviceDescriptor(boolean shortDescriptor)

ส่งคืน DeviceDescriptor จากข้อมูลอุปกรณ์เพื่อรับข้อมูลเกี่ยวกับอุปกรณ์โดยไม่ต้อง ส่งออบเจ็กต์อุปกรณ์จริง

getTombstones()

Cuttlefish มีฟีเจอร์พิเศษที่นำเครื่องหมายหลุมศพไปยังโฮสต์ระยะไกลเพื่อให้เรา รับเครื่องหมายหลุมศพได้โดยตรง

CommandResult powerwash()

พยายาม Powerwash อินสแตนซ์ GCE

CommandResult powerwashGce(String user, Integer offset)

เลิกใช้เมธอดนี้แล้ว นำออกเพื่อใช้การเชื่อมต่อ

boolean powerwashGce()

เครื่องมือสร้างสาธารณะ

RemoteAndroidVirtualDevice

public RemoteAndroidVirtualDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

สร้าง RemoteAndroidVirtualDevice

พารามิเตอร์
device IDevice: IDevice ที่เชื่อมโยง

stateMonitor IDeviceStateMonitor: กลไก IDeviceStateMonitor ที่จะใช้

allocationMonitor IDeviceMonitor: IDeviceMonitor เพื่อแจ้งการเปลี่ยนแปลงสถานะการจัดสรร

เมธอดสาธารณะ

debugDeviceNotAvailable

public DeviceInspectionResult debugDeviceNotAvailable ()

ตรวจสอบอุปกรณ์และแสดงข้อมูลโดยละเอียดเมื่ออุปกรณ์ไม่พร้อมใช้งาน

คิกรีเทิร์น
DeviceInspectionResult

getAvdInfo

public GceAvdInfo getAvdInfo ()

เลิกใช้เมธอดนี้แล้ว
ควรใช้ Connection API โดยตรง

แสดงผล GceAvdInfo จาก VM ระยะไกลที่สร้างขึ้น แสดงผล Null หากการเริ่มต้นไม่สำเร็จ

คิกรีเทิร์น
GceAvdInfo

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

ส่งคืน DeviceDescriptor จากข้อมูลอุปกรณ์เพื่อรับข้อมูลเกี่ยวกับอุปกรณ์โดยไม่ต้อง ส่งออบเจ็กต์อุปกรณ์จริง

พารามิเตอร์
shortDescriptor boolean: จะจำกัดตัวอธิบายให้มีข้อมูลขั้นต่ำหรือไม่

คิกรีเทิร์น
DeviceDescriptor

getTombstones

public  getTombstones ()

Cuttlefish มีฟีเจอร์พิเศษที่นำเครื่องหมายหลุมศพไปยังโฮสต์ระยะไกล ซึ่งเราสามารถ รับเครื่องหมายหลุมศพได้โดยตรง

คิกรีเทิร์น
รายการไฟล์หลุมศพ ซึ่งจะว่างเปล่าหากไม่มีไฟล์หลุมศพ

การขว้าง
DeviceNotAvailableException

ทำการ Powerwash

public CommandResult powerwash ()

พยายาม Powerwash อินสแตนซ์ GCE

คิกรีเทิร์น
CommandResult แสดงผล CommandResult ของความพยายามในการทำ Powerwash

การขว้าง
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError

powerwashGce

public CommandResult powerwashGce (String user, 
                Integer offset)

เลิกใช้เมธอดนี้แล้ว
นำออกเพื่อใช้การเชื่อมต่อ

พารามิเตอร์
user String

offset Integer

คิกรีเทิร์น
CommandResult

การขว้าง
TargetSetupError

powerwashGce

public boolean powerwashGce ()

คิกรีเทิร์น
boolean

การขว้าง
TargetSetupError