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 |
Lớp cho các thiết bị ảo cục bộ chạy trên máy chủ TradeFed.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
LocalAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
|
Phương thức công khai | |
---|---|
void
|
postInvocationTearDown(Throwable exception)
Thực thi quy trình tháo dỡ thông thường và dừng thiết bị ảo. |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
Thực thi quy trình thiết lập chung và khởi chạy thiết bị ảo. |
void
|
setTestLogger(ITestLogger testLogger)
|
void
|
shutdown()
Tắt thiết bị. |
Hàm khởi tạo công khai
LocalAndroidVirtualDevice
public LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Tham số | |
---|---|
device |
IDevice |
stateMonitor |
IDeviceStateMonitor |
allocationMonitor |
IDeviceMonitor |
Phương thức công khai
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Thực thi quy trình tháo dỡ thông thường và dừng thiết bị ảo.
Tham số | |
---|---|
exception |
Throwable |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
Thực thi quy trình thiết lập chung và khởi chạy thiết bị ảo.
Tham số | |
---|---|
info |
IBuildInfo |
attributes |
MultiMap |
Gửi | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Tham số | |
---|---|
testLogger |
ITestLogger |
tắt
public void shutdown ()
Tắt thiết bị.