Cục bộAndroidThiết bị ảo

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 dành cho các thiết bị ảo cục bộ chạy trên máy chủ TradeFed.

Bản tóm tắt

Nhà thầu xây dựng công cộng

LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Phương pháp công khai

void postInvocationTearDown (Throwable exception)

Thực hiện quy trình chia nhỏ thông thường và dừng thiết bị ảo.

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

Thực hiện 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ị.

Nhà thầu xây dựng công cộng

Cục bộAndroidThiết bị ảo

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

Thông số
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

Phương pháp công khai

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Thực hiện quy trình chia nhỏ thông thường và dừng thiết bị ảo.

Thông số
exception Throwable

preInvocationSetup

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

Thực hiện quy trình thiết lập chung và khởi chạy thiết bị ảo.

Thông số
info IBuildInfo

attributes MultiMap

Ném
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Thông số
testLogger ITestLogger

tắt

public void shutdown ()

Tắt thiết bị.