NestedDeviceStateMonitor

public class NestedDeviceStateMonitor
extends DeviceStateMonitor

java.lang.Object
   ↳ com.android.tradefed.device.NativeDeviceStateMonitor
     ↳ com.android.tradefed.device.DeviceStateMonitor
       ↳ com.android.tradefed.device.cloud.NestedDeviceStateMonitor


设备状态监控器,用于对嵌套设备执行额外的检查,以适应虚拟化环境的特殊性。

摘要

公共构造函数

NestedDeviceStateMonitor(IDeviceManager mgr, IDevice device, boolean fastbootEnabled)

受保护的方法

boolean postOnlineCheck(long waitTime)

在联网设备上执行的其他检查

公共构造函数

NestedDeviceStateMonitor

public NestedDeviceStateMonitor (IDeviceManager mgr, 
                IDevice device, 
                boolean fastbootEnabled)

参数
mgr IDeviceManager

device IDevice

fastbootEnabled boolean

受保护的方法

postOnlineCheck

protected boolean postOnlineCheck (long waitTime)

在联网设备上执行的其他检查

参数
waitTime long:放弃之前等待的时间(以毫秒为单位)

返回
boolean true(如果检查在 waitTime 过期之前成功通过)。否则为 false

抛出
DeviceNotAvailableException