ManagedRemoteDevice
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 | ||
อุปกรณ์ที่ทำงานภายในเครื่องเสมือนที่เราจัดการจากระยะไกลผ่านอินสแตนซ์ Tradefed ภายใน VM
สรุป
ตัวสร้างแบบสาธารณะ | |
|---|---|
ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
สร้าง |
|
เมธอดสาธารณะ | |
|---|---|
void
|
postInvocationTearDown(Throwable exception)
ขั้นตอนเพิ่มเติมสำหรับการล้างข้อมูลที่จำเป็นสำหรับอุปกรณ์โดยเฉพาะที่จะดำเนินการหลังจากการเรียกใช้เสร็จสิ้น |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
ขั้นตอนเพิ่มเติมสำหรับการตั้งค่าที่จำเป็นเฉพาะอุปกรณ์ที่จะดำเนินการในอุปกรณ์ก่อนขั้นตอนเรียกใช้ |
ตัวสร้างแบบสาธารณะ
ManagedRemoteDevice
public ManagedRemoteDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)สร้าง ManagedRemoteDevice
| พารามิเตอร์ | |
|---|---|
device |
IDevice: IDevice ที่เชื่อมโยง |
stateMonitor |
IDeviceStateMonitor: กลไก IDeviceStateMonitor ที่จะใช้ |
allocationMonitor |
IDeviceMonitor: IDeviceMonitor เพื่อแจ้งให้ทราบถึงการเปลี่ยนแปลงสถานะการจัดสรร |
เมธอดสาธารณะ
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
ขั้นตอนเพิ่มเติมสำหรับการล้างข้อมูลที่จำเป็นสำหรับอุปกรณ์โดยเฉพาะที่จะดำเนินการหลังจากการเรียกใช้เสร็จสิ้น
| พารามิเตอร์ | |
|---|---|
exception |
Throwable: ข้อยกเว้นสุดท้ายที่ยกขึ้นเมื่อการเรียกใช้ไม่สำเร็จ (หากมี) |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
ขั้นตอนเพิ่มเติมสำหรับการตั้งค่าที่จำเป็นเฉพาะอุปกรณ์ที่จะดำเนินการในอุปกรณ์ก่อนขั้นตอนเรียกใช้
| พารามิเตอร์ | |
|---|---|
info |
IBuildInfo: IBuildInfo ของอุปกรณ์ |
attributes |
MultiMap: แอตทริบิวต์ที่เก็บไว้ในบริบทการเรียกใช้ |
| การโยน | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|