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


DeviceFolderBuildInfoLaunchControlProvider

Android ビルドサーバーから CTS ビルドとデバイスビルドの両方を取得します。

デバイスビルドが最初に取得されるため、このクラスに指定された build-flavor などの引数は、取得するデバイスビルドと一致する必要があります。

デフォルトでは、このクラスはデバイスビルドと同じビルド ID と同じブランチの CTS ビルドをダウンロードしようとします。cts* オプションは、別の CTS ビルドを取得するために使用できます。

概要

パブリック コンストラクタ

CtsDeviceLaunchControlProvider()

パブリック メソッド

void cleanUp(IBuildInfo info)

一時ビルドファイルをクリーンアップします。

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)

一時ビルドファイルをクリーンアップします。

パラメータ
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: リリース制御で定義されているビルドの名前

downloader IFileDownloader: ビルドファイルのダウンロードに使用する IFileDownloader

戻り値
IBuildInfo IBuildInfo にビルドファイルのローカル バージョンが入力されている

例外
BuildRetrievalError

queryForBuild

public RemoteBuildInfo queryForBuild ()

エラーが発生した場合は複数回再試行して、リリース制御クエリを実行します。

戻り値
RemoteBuildInfo 起動制御から取得された RemoteBuildInfo

例外
BuildRetrievalError

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

戻り値
Set<String>