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 จากข้อมูลอุปกรณ์เพื่อรับข้อมูลเกี่ยวกับอุปกรณ์โดยไม่ต้อง ส่งออบเจ็กต์อุปกรณ์จริง

List<File> 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 List<File> getTombstones ()

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

การคืนสินค้า
List<File> รายการไฟล์ที่ถูกทำเครื่องหมายว่าไม่พร้อมใช้งาน ซึ่งจะว่างเปล่าหากไม่มีไฟล์ที่ถูกทำเครื่องหมาย

ส่ง
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