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 | ||
LaunchControlProvider,費用只要 DeviceFolderBuildInfo。
從 Android 建構伺服器擷取 CTS 建構版本和裝置建構版本。
系統會先擷取裝置建構版本,因此提供給這個類別的建構版本風味等引數,應與您要擷取的裝置建構版本相符。
根據預設,這個類別會嘗試下載與裝置版本具有相同建構 ID 和分支版本 的 CTS 版本。您可以使用 cts* 選項擷取不同的 CTS 建構版本。
摘要
公用建構函式 | |
|---|---|
CtsDeviceLaunchControlProvider()
|
|
公用方法 | |
|---|---|
void
|
cleanUp(IBuildInfo info)
清理所有暫時建構檔案。 |
IBuildInfo
|
downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
從 remoteBuild 下載 --download-build-key 中設定的必要檔案金鑰,並儲存在 |
RemoteBuildInfo
|
queryForBuild()
執行啟動控制項查詢,如果發生錯誤,請多次重試。 |
Set<String>
|
reportTestZipFileFilter()
|
公用建構函式
CtsDeviceLaunchControlProvider
public CtsDeviceLaunchControlProvider ()
公用方法
downloadBuildFiles
public 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
public RemoteBuildInfo queryForBuild ()
執行啟動控制項查詢,如果發生錯誤,請多次重試。
| 傳回 | |
|---|---|
RemoteBuildInfo |
從啟動控制項擷取的 RemoteBuildInfo |
| 擲回 | |
|---|---|
BuildRetrievalError |
|
reportTestZipFileFilter
public Set<String> reportTestZipFileFilter ()
| 傳回 | |
|---|---|
Set<String> |
|