NestedRemoteThiết bị

public class NestedRemoteDevice
extends TestDevice

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.cloud.NestedRemoteDevice


Hình đại diện của thiết bị chạy bên trong máy ảo Mực nang từ xa. Nó sẽ thay đổi hành vi TestDevice của thiết bị cục bộ trong một số trường hợp để tận dụng lợi thế của thiết lập.

Bản tóm tắt

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

NestedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Tạo một NestedRemoteDevice .

Phương pháp công khai

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

final boolean resetVirtualDevice (ITestLogger logger, IBuildInfo info, boolean resetDueToFailure)

Phá bỏ và khôi phục thiết bị ảo để có thể tiến hành thử nghiệm.

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

NestedRemoteThiết bị

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

Tạo một NestedRemoteDevice .

Thông số
device IDevice : IDevice được liên kết

stateMonitor IDeviceStateMonitor : cơ chế IDeviceStateMonitor để sử dụng

allocationMonitor IDeviceMonitor : IDeviceMonitor để thông báo về những thay đổi trạng thái phân bổ.

Phương pháp công khai

preInvocationSetup

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

Thông số
info IBuildInfo

attributes MultiMap

Ném
DeviceNotAvailableException
TargetSetupError

thiết lập lạiThiết bị ảo

public final boolean resetVirtualDevice (ITestLogger logger, 
                IBuildInfo info, 
                boolean resetDueToFailure)

Phá bỏ và khôi phục thiết bị ảo để có thể tiến hành thử nghiệm.

Thông số
logger ITestLogger

info IBuildInfo

resetDueToFailure boolean

Trả lại
boolean

Ném
DeviceNotAvailableException