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()

พยายามล้างข้อมูลอินสแตนซ์ 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

ล้างข้อมูล

public CommandResult powerwash ()

พยายามล้างข้อมูลอินสแตนซ์ GCE

คิกรีเทิร์น
CommandResult แสดงผล CommandResult ของการพยายามล้างข้อมูล

การโยน
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