อุปกรณ์ระยะไกลที่ซ้อนกัน

public class NestedRemoteDevice
extends TestDevice

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


การแสดงอุปกรณ์ที่ทำงานภายใน Cuttlefish VM ระยะไกล โดยจะเปลี่ยนพฤติกรรม TestDevice ของอุปกรณ์ภายในเครื่องในบางกรณีเพื่อใช้ประโยชน์จากการตั้งค่า

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

NestedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

สร้าง NestedRemoteDevice

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

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

final boolean resetVirtualDevice (ITestLogger logger, IBuildInfo info, boolean resetDueToFailure)

รื้อถอนและกู้คืนอุปกรณ์เสมือนเพื่อให้สามารถดำเนินการทดสอบต่อไปได้

ผู้รับเหมาก่อสร้างสาธารณะ

อุปกรณ์ระยะไกลที่ซ้อนกัน

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

สร้าง NestedRemoteDevice

พารามิเตอร์
device IDevice : IDevice ที่เกี่ยวข้อง

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

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

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

preInvocationSetup

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

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

attributes MultiMap

ขว้าง
DeviceNotAvailableException
TargetSetupError

รีเซ็ตอุปกรณ์เสมือน

public final boolean resetVirtualDevice (ITestLogger logger, 
                IBuildInfo info, 
                boolean resetDueToFailure)

รื้อถอนและกู้คืนอุปกรณ์เสมือนเพื่อให้สามารถดำเนินการทดสอบต่อไปได้

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

info IBuildInfo

resetDueToFailure boolean

การส่งคืน
boolean

ขว้าง
DeviceNotAvailableException