TfLaunchControlProvider

public class TfLaunchControlProvider
extends LaunchControlProvider

java.lang.Object
com.google.android.tradefed.build.LaunchControlProvider
  com.google.android.tradefed.build.TfLaunchControlProvider


用于将 google-tradefed build 作为 IFolderBuildInfo 检索的 LaunchControlProvider

从 Android build 服务器检索并提取 google-tradefed.zip。

摘要

公共构造函数

TfLaunchControlProvider()

公共方法

void addConsideredEntryForContent(String entryName)
void cleanUp(IBuildInfo info)

清理所有临时 build 文件。

IBuildInfo downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)

remoteBuild 下载必要的文件键(如 --download-build-key 中配置的那样),并将它们存储在 IBuildInfo 中。

RemoteBuildInfo queryForBuild()

执行启动控制查询,并在出错时多次重试。

Set<String> reportTestZipFileFilter()
void setAospFallback(boolean fallbackToAosp)

是否回退到获取 tradefed 软件包的 aosp 版本。

boolean wasFallbackUsed()

受保护的方法

void downloadAdditionalFiles(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IBuildInfo localBuild)

公共构造函数

TfLaunchControlProvider

public TfLaunchControlProvider ()

公共方法

addConsideredEntryForContent

public void addConsideredEntryForContent (String entryName)

参数
entryName String

cleanUp

public void cleanUp (IBuildInfo info)

清理所有临时 build 文件。

参数
info IBuildInfo

downloadBuildFiles

public IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, 
                String testTargetName, 
                String buildName, 
                IFileDownloader downloader)

remoteBuild下载必要的文件键(如 --download-build-key 中配置的那样),并将它们存储在 IBuildInfo 中。

参数
remoteBuild RemoteBuildInfo:启动控制服务器响应

testTargetName String:测试目标名称

buildName String:build 的名称,由启动控制定义

downloader IFileDownloader:用于下载 build 文件的 IFileDownloader

返回
IBuildInfo 填充了 build 文件本地版本的 IBuildInfo

抛出
BuildRetrievalError

queryForBuild

public RemoteBuildInfo queryForBuild ()

执行启动控制查询,并在出错时多次重试。

返回
RemoteBuildInfo 从启动控制检索到的 RemoteBuildInfo

抛出
BuildRetrievalError

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

返回
Set<String>

setAospFallback

public void setAospFallback (boolean fallbackToAosp)

是否回退到获取 tradefed 软件包的 aosp 版本。

参数
fallbackToAosp boolean

wasFallbackUsed

public boolean wasFallbackUsed ()

返回
boolean

受保护的方法

downloadAdditionalFiles

protected void downloadAdditionalFiles (RemoteBuildInfo remoteBuild, 
                IFileDownloader downloader, 
                IBuildInfo localBuild)

参数
remoteBuild RemoteBuildInfo

downloader IFileDownloader

localBuild IBuildInfo

抛出
BuildRetrievalError