ManagedRemoteDevice

public class ManagedRemoteDevice
extends TestDevice implements ITestLoggerReceiver

java.lang.Object
   ↳ com.android.tradefed.device.NativeDevice
     ↳ com.android.tradefed.device.TestDevice
       ↳ com.android.tradefed.device.cloud.ManagedRemoteDevice


在虛擬機器中執行的裝置,我們透過 VM 內的 Tradefed 執行個體遠端管理。

摘要

公用建構函式

ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

建立 ManagedRemoteDevice

公用方法

void postInvocationTearDown(Throwable exception)

裝置專屬的額外必要清除步驟,會在叫用完成後執行。

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

裝置專屬的必要設定額外步驟,會在叫用流程前於裝置上執行。

公用建構函式

ManagedRemoteDevice

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

建立 ManagedRemoteDevice

參數
device IDevice:相關聯的 IDevice

stateMonitor IDeviceStateMonitor:要使用的 IDeviceStateMonitor 機制

allocationMonitor IDeviceMonitorIDeviceMonitor,用於通知分配狀態變更。

公用方法

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

裝置專屬的額外必要清除步驟,會在叫用完成後執行。

參數
exception Throwable:如果有的話,這是因叫用失敗而引發的最終例外狀況。

preInvocationSetup

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

裝置專屬的必要設定額外步驟,會在叫用流程之前於裝置上執行。

參數
info IBuildInfo:裝置的 IBuildInfo

attributes MultiMap:儲存在叫用環境中的屬性

擲回
DeviceNotAvailableException
TargetSetupError