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

本地AndroidVirtualDevice

public class LocalAndroidVirtualDevice
extendsRemoteAndroidDevice implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.RemoteAndroidDevice
com.android.tradefed.device.LocalAndroidVirtualDevice


在TradeFed主機上運行的本地虛擬設備的類。

概要

公共建設者

LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

公開方法

void postInvocationTearDown (Throwable exception)

執行常規拆卸程序並停止虛擬設備。

void preInvocationSetup (IBuildInfo info)

執行通用設置過程並啟動虛擬設備。

void setTestLogger (ITestLogger testLogger)

公共建設者

本地AndroidVirtualDevice

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

參量
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

公開方法

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

執行常規拆卸程序並停止虛擬設備。

參量
exception Throwable

preInvocationSetup

public void preInvocationSetup (IBuildInfo info)

執行通用設置過程並啟動虛擬設備。

參量
info IBuildInfo

投擲
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

參量
testLogger ITestLogger