NestedRemoteDevice

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)

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

ตัวสร้างแบบสาธารณะ

NestedRemoteDevice

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

resetVirtualDevice

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

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

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

info IBuildInfo

resetDueToFailure boolean

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

การโยน
DeviceNotAvailableException