CtsLaunchControlProvider

public class CtsLaunchControlProvider
extends LaunchControlProvider implements IDiscoverDependencies

java.lang.Object
   ↳ com.google.android.tradefed.build.LaunchControlProvider
     ↳ com.google.android.tradefed.build.CtsLaunchControlProvider


CTS build 的 LaunchControlProvider

从 Android build 服务器检索并提取 CTS zip。提取的 CTS 表示为 IFolderBuildInfo

摘要

字段

public static final Set<String> CONFIG_ONLY_REGEX

public static final Set<String> JARS_AND_CONFIG_REGEX

公共构造函数

CtsLaunchControlProvider()

公共方法

void cleanExtra()
void cleanUp(IBuildInfo info)

清理所有临时 build 文件。

boolean getForceCas()
Set<String> reportTestZipFileFilter()
void setCtsExtra(List<String> ctsExtra)
void setCtsExtraAltPath(File altPath)
void setCtsForcePartialDownloadRegex(Set<String> ctsForcePartialDownloadRegex)
void setCtsPackageName(String ctsZipName)
void setCtsUsePartialDownload(boolean shouldUsePartialDownload)
void setDefaultRollout(boolean defaultRollout)
void setDelayDownloadinSharding(boolean delayDownload)
void setForceDisablePartialDownloadExperiment(boolean forceDisablePartialDownloadExperiment)
void setPartialDownloadDefaultRollout(Set<String> partialDownloadDefaultRollout)
void setPartialDownloadDisallowList(Set<String> partialDownloadDisallowList)
void setPartialDownloadRolloutArtifact(String partialDownloadRolloutArtifact)
void setThrowIfExtraNotFound(boolean shouldThrow)

受保护的方法

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

remoteBuild 下载在 --download-build-key 中配置的必要文件密钥,并将其存储在 IBuildInfo 中。

RemoteBuildInfo queryForBuild()

执行启动控制查询,如果出错则多次重试。

字段

CONFIG_ONLY_REGEX

public static final Set<String> CONFIG_ONLY_REGEX

JARS_AND_CONFIG_REGEX

public static final Set<String> JARS_AND_CONFIG_REGEX

公共构造函数

CtsLaunchControlProvider

public CtsLaunchControlProvider ()

公共方法

cleanExtra

public void cleanExtra ()

cleanUp

public void cleanUp (IBuildInfo info)

清理所有临时 build 文件。

参数
info IBuildInfo

getForceCas

public boolean getForceCas ()

返回
boolean

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

返回
Set<String>

setCtsExtra

public void setCtsExtra (List<String> ctsExtra)

参数
ctsExtra List

setCtsExtraAltPath

public void setCtsExtraAltPath (File altPath)

参数
altPath File

setCtsForcePartialDownloadRegex

public void setCtsForcePartialDownloadRegex (Set<String> ctsForcePartialDownloadRegex)

参数
ctsForcePartialDownloadRegex Set

setCtsPackageName

public void setCtsPackageName (String ctsZipName)

参数
ctsZipName String

setCtsUsePartialDownload

public void setCtsUsePartialDownload (boolean shouldUsePartialDownload)

参数
shouldUsePartialDownload boolean

setDefaultRollout

public void setDefaultRollout (boolean defaultRollout)

参数
defaultRollout boolean

setDelayDownloadinSharding

public void setDelayDownloadinSharding (boolean delayDownload)

参数
delayDownload boolean

setForceDisablePartialDownloadExperiment

public void setForceDisablePartialDownloadExperiment (boolean forceDisablePartialDownloadExperiment)

参数
forceDisablePartialDownloadExperiment boolean

setPartialDownloadDefaultRollout

public void setPartialDownloadDefaultRollout (Set<String> partialDownloadDefaultRollout)

参数
partialDownloadDefaultRollout Set

setPartialDownloadDisallowList

public void setPartialDownloadDisallowList (Set<String> partialDownloadDisallowList)

参数
partialDownloadDisallowList Set

setPartialDownloadRolloutArtifact

public void setPartialDownloadRolloutArtifact (String partialDownloadRolloutArtifact)

参数
partialDownloadRolloutArtifact String

setThrowIfExtraNotFound

public void setThrowIfExtraNotFound (boolean shouldThrow)

参数
shouldThrow boolean

受保护的方法

downloadBuildFiles

protected 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

protected RemoteBuildInfo queryForBuild ()

执行启动控制查询,如果出错则多次重试。

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

抛出
BuildRetrievalError