Thiết bị Android ảo cục bộ

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.

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 chia nhỏ 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 phổ biến 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

Thiết bị Android ảo cục bộ

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 chia nhỏ thông thường và dừng thiết bị ảo.

Tham số
exception Throwable

Thiết lập preInvocation

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

Thực thi quy trình thiết lập phổ biến 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 máy

public void shutdown ()

Tắt thiết bị.