CtsLaunchControlProvider
public
class
CtsLaunchControlProvider
extends LaunchControlProvider
implements
IDiscoverDependencies
| java.lang.Object | ||
| ↳ | com.google.android.tradefed.build.LaunchControlProvider | |
| ↳ | com.google.android.tradefed.build.CtsLaunchControlProvider | |
CTS 建構版本的 LaunchControlProvider。
從 Android 建構伺服器擷取並解壓縮 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)
清理所有暫時建構檔案。 |
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 中設定的必要檔案金鑰,並儲存在 |
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 ()
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:啟動控制項定義的建構版本名稱 |
downloader |
IFileDownloader:用於下載建構檔案的 IFileDownloader |
| 傳回 | |
|---|---|
IBuildInfo |
IBuildInfo,其中包含建構檔案的本地化版本 |
| 擲回 | |
|---|---|
BuildRetrievalError |
|
queryForBuild
protected RemoteBuildInfo queryForBuild ()
執行啟動控制項查詢,如果發生錯誤,請多次重試。
| 傳回 | |
|---|---|
RemoteBuildInfo |
從啟動控制項擷取的 RemoteBuildInfo |
| 擲回 | |
|---|---|
BuildRetrievalError |
|