CtsDeviceLaunchControlProvider

public class CtsDeviceLaunchControlProvider
extends DeviceLaunchControlProvider implements IDiscoverDependencies

java.lang.Object
   ↳ com.google.android.tradefed.build.LaunchControlProvider
     ↳ com.google.android.tradefed.build.DeviceLaunchControlProvider
       ↳ com.google.android.tradefed.build.CtsDeviceLaunchControlProvider


适用于 DeviceFolderBuildInfo 的 LaunchControlProvider。

从 Android build 服务器检索 CTS build 和设备 build。

系统会先检索设备 build,因此提供给此类的 build-flavor 等实参应与您要检索的设备 build 相匹配。

默认情况下,此类会尝试下载与设备 build 具有相同 build-id 和相同分支的 CTS build。cts* 选项可用于检索其他 CTS build。

摘要

公共构造函数

CtsDeviceLaunchControlProvider()

公共方法

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()

公共构造函数

CtsDeviceLaunchControlProvider

public CtsDeviceLaunchControlProvider ()

公共方法

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>