อุปกรณ์ระยะไกลที่มีการจัดการ

public class ManagedRemoteDevice
extends TestDevice implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.device.NativeDevice
  com.android.tradefed.device.TestDevice
    com.android.tradefed.device.cloud.ManagedRemoteDevice


อุปกรณ์ที่ทำงานภายในเครื่องเสมือนที่เราจัดการจากระยะไกลผ่านอินสแตนซ์ที่เทรดเฟดอยู่ภายใน VM

สรุป

ช่างก่อสร้างสาธารณะ

ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

สร้าง ManagedRemoteDevice

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

TestDeviceOptions getOptions()

ลบล้าง Getter พื้นฐานเพื่อให้สามารถแปลค่าตัวเลือกแบบไดนามิกก่อนที่จะพยายามดำเนินการ การตั้งค่าจากระยะไกล

GceAvdInfo getRemoteAvdInfo()

แสดงผล GceAvdInfo ที่อธิบายอินสแตนซ์ระยะไกล

void postInvocationTearDown(Throwable exception)

void preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)

void setTestLogger(ITestLogger testLogger)

วิธีการป้องกัน

long getCurrentTime()

แสดงเวลาระบบปัจจุบัน

void launchGce()

เปิดอุปกรณ์ gce จริงตามข้อมูลบิลด์

ช่างก่อสร้างสาธารณะ

อุปกรณ์ระยะไกลที่มีการจัดการ

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

สร้าง ManagedRemoteDevice

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

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

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

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

getOptions

public TestDeviceOptions getOptions ()

ลบล้าง Getter พื้นฐานเพื่อให้สามารถแปลค่าตัวเลือกแบบไดนามิกก่อนที่จะพยายามดำเนินการ การตั้งค่าจากระยะไกล

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

รับข้อมูลระยะไกลAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

แสดงผล GceAvdInfo ที่อธิบายอินสแตนซ์ระยะไกล

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

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

พารามิเตอร์
exception Throwable

ตั้งค่าการเรียกใช้ล่วงหน้า

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

พารามิเตอร์
info IBuildInfo

attributes MultiMap

การขว้าง
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

พารามิเตอร์
testLogger ITestLogger

วิธีการป้องกัน

getCurrentTime

protected long getCurrentTime ()

แสดงเวลาระบบปัจจุบัน เปิดเผยสำหรับการทดสอบ

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

Launcher

protected void launchGce ()

เปิดอุปกรณ์ gce จริงตามข้อมูลบิลด์

การขว้าง
TargetSetupError