LocalAndroidVirtualDevice

public class LocalAndroidVirtualDevice
extends RemoteAndroidDevice implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.RemoteAndroidDevice
com.android.tradefed.device.LocalAndroidVirtualDevice


คลาสสำหรับอุปกรณ์เสมือนในเครื่องที่ทำงานบนโฮสต์ TradeFed

สรุป

ผู้สร้างสาธารณะ

LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

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

boolean adbTcpConnect (String host, String port)
boolean adbTcpDisconnect (String host, String port)
void postInvocationTearDown (Throwable exception)

ดำเนินการตามขั้นตอนการแยกส่วนทั่วไปและหยุดอุปกรณ์เสมือน

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

ดำเนินการตามขั้นตอนการตั้งค่าทั่วไปและเปิดใช้งานอุปกรณ์เสมือน

void setTestLogger ( ITestLogger testLogger)

ใส่อินสแตนซ์ ITestLogger

void shutdown ()

ปิดเครื่อง

ผู้สร้างสาธารณะ

LocalAndroidVirtualDevice

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

พารามิเตอร์
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

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

adbTcpConnect

public boolean adbTcpConnect (String host, 
                String port)

พารามิเตอร์
host String

port String

ส่งคืน
boolean

adbTcpDisconnect

public boolean adbTcpDisconnect (String host, 
                String port)

พารามิเตอร์
host String

port String

ส่งคืน
boolean

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

setTestLogger

public void setTestLogger (ITestLogger testLogger)

ใส่อินสแตนซ์ ITestLogger

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

ปิดตัวลง

public void shutdown ()

ปิดเครื่อง

,

LocalAndroidVirtualDevice

public class LocalAndroidVirtualDevice
extends RemoteAndroidDevice implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.RemoteAndroidDevice
com.android.tradefed.device.LocalAndroidVirtualDevice


คลาสสำหรับอุปกรณ์เสมือนในเครื่องที่ทำงานบนโฮสต์ TradeFed

สรุป

ผู้สร้างสาธารณะ

LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

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

boolean adbTcpConnect (String host, String port)
boolean adbTcpDisconnect (String host, String port)
void postInvocationTearDown (Throwable exception)

ดำเนินการตามขั้นตอนการแยกส่วนทั่วไปและหยุดอุปกรณ์เสมือน

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

ดำเนินการตามขั้นตอนการตั้งค่าทั่วไปและเปิดใช้งานอุปกรณ์เสมือน

void setTestLogger ( ITestLogger testLogger)

ใส่อินสแตนซ์ ITestLogger

void shutdown ()

ปิดเครื่อง

ผู้สร้างสาธารณะ

LocalAndroidVirtualDevice

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

พารามิเตอร์
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

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

adbTcpConnect

public boolean adbTcpConnect (String host, 
                String port)

พารามิเตอร์
host String

port String

ส่งคืน
boolean

adbTcpDisconnect

public boolean adbTcpDisconnect (String host, 
                String port)

พารามิเตอร์
host String

port String

ส่งคืน
boolean

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

setTestLogger

public void setTestLogger (ITestLogger testLogger)

ใส่อินสแตนซ์ ITestLogger

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

ปิดตัวลง

public void shutdown ()

ปิดเครื่อง