Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

NestedRemoteDevice

public class NestedRemoteDevice
extends TestDevice

java.lang.Object
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

公開方法

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

拆除並還原虛擬設備,以便可以進行測試。

公共建設者

NestedRemoteDevice

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

創建一個NestedRemoteDevice

參量
device IDevice :關聯的IDevice

stateMonitor IDeviceStateMonitor :要使用的IDeviceStateMonitor機制

allocationMonitor IDeviceMonitorIDeviceMonitor通知分配狀態更改。

公開方法

resetVirtualDevice

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

拆除並還原虛擬設備,以便繼續進行測試。

參量
logger ITestLogger

info IBuildInfo

resetDueToFailure boolean

退貨
boolean

投擲
DeviceNotAvailableException