Google 致力于为黑人社区推动种族平等。查看具体举措

嵌套远程设备

public class NestedRemoteDevice
extends TestDevice

对象
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.cloud.NestedRemoteDevice


在远程 Cuttlefish VM 中运行的设备的表示。这将改变本地设备TestDevice在某些情况下的行为采取设置的优势。

概括

公共构造函数

NestedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

创建NestedRemoteDevice

公共方法

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

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

拆卸并恢复虚拟设备,以便继续进行测试。

公共构造函数

嵌套远程设备

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

创建NestedRemoteDevice

参数
device IDevice :相关IDevice

stateMonitor IDeviceStateMonitor :在IDeviceStateMonitor机制使用

allocationMonitor IDeviceMonitor :在IDeviceMonitor通知的分配状态的变化。

公共方法

调用前设置

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

参数
info IBuildInfo

attributes MultiMap

投掷
DeviceNotAvailableException
TargetSetupError

重置虚拟设备

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

拆卸并恢复虚拟设备,以便继续进行测试。

参数
logger ITestLogger

info IBuildInfo

resetDueToFailure boolean

退货
boolean

投掷
DeviceNotAvailableException