使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

PushFilePreparer

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies

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


尝试将任意数量的文件从任意主机路径推送到任意设备路径的ITargetPreparer

应该在*之后执行一个新的构建,并且*在* DeviceSetup 运行之后(如果启用)

概括

公共构造函数

PushFilePreparer ()

公共方法

IAbi getAbi ()

final getPushSpecs ( DeviceDescriptor descriptor)

创建要推送的文件列表。

reportDependencies ()
File resolveRelativeFilePath ( IBuildInfo buildInfo, String fileName)

通过IBuildInfo和测试用例目录解析相对文件路径。

void setAbi ( IAbi abi)

void setInvocationContext ( IInvocationContext invocationContext)

void setUp ( TestInformation testInfo)

boolean shouldAbortOnFailure ()

是否在推送失败时中止。

void tearDown ( TestInformation testInfo, Throwable e)

公共构造函数

PushFilePreparer

public PushFilePreparer ()

公共方法

得到阿比

public IAbi getAbi ()

退货
IAbi

getPushSpecs

public final  getPushSpecs (DeviceDescriptor descriptor)

创建要推送的文件列表。

参数
descriptor DeviceDescriptor

退货

投掷
TargetSetupError

报告依赖项

public  reportDependencies ()

退货

解析相对文件路径

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

通过IBuildInfo和测试用例目录解析相对文件路径。

参数
buildInfo IBuildInfo :构建工件信息

fileName String : 要解析的相对文件路径

退货
File构建信息或测试用例目录中的文件

设置阿比

public void setAbi (IAbi abi)

参数
abi IAbi

设置调用上下文

public void setInvocationContext (IInvocationContext invocationContext)

参数
invocationContext IInvocationContext

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
BuildError
DeviceNotAvailableException
TargetSetupError

shouldAbortOnFailure

public boolean shouldAbortOnFailure ()

是否在推送失败时中止。

退货
boolean

拆除

public void tearDown (TestInformation testInfo, 
                Throwable e)

参数
testInfo TestInformation

e Throwable

投掷
DeviceNotAvailableException