运行命令目标准备器

public class RunCommandTargetPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.RunCommandTargetPreparer


概括

公共构造函数

RunCommandTargetPreparer ()

公共方法

final void addRunCommand (String cmd)

添加将由准备器运行的命令。

getCommands ()
getExecutedCommands ()
void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

受保护的方法

ITestDevice getDevice ( TestInformation testInfo)

返回要应用准备器的设备。

公共构造函数

运行命令目标准备器

public RunCommandTargetPreparer ()

公共方法

添加运行命令

public final void addRunCommand (String cmd)

添加将由准备器运行的命令。

参数
cmd String

获取命令

public  getCommands ()

退货

获取执行命令

public  getExecutedCommands ()

退货

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
DeviceNotAvailableException
TargetSetupError

拆除

public void tearDown (TestInformation testInfo, 
                Throwable e)

参数
testInfo TestInformation

e Throwable

投掷
DeviceNotAvailableException

受保护的方法

获取设备

protected ITestDevice getDevice (TestInformation testInfo)

返回要应用准备器的设备。

退货
ITestDevice应用制备器的设备。

投掷
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError