DeviceLaunchControlProvider

public class DeviceLaunchControlProvider
extends LaunchControlProvider implements IDeviceBuildProvider

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


IDeviceBuildInfoLaunchControlProvider

概要

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

DeviceLaunchControlProvider()

パブリック メソッド

void addDownloadKey(RemoteBuildInfo.BuildAttributeKey attrKey)

指定された BuildAttributeKey を含むファイルのダウンロードを要求します。

void cleanUp(IBuildInfo info)

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

static Set<String> discoverDependencies(IConfiguration config)

構成の依存関係を検出します。

void evaluateDeviceImageChanges(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IDeviceBuildInfo localBuild)

デバイス イメージが変更されたかどうかを評価するために必要な部分をダウンロードします。

IBuildInfo getBuild(ITestDevice device)

テスト対象のビルドのデータを取得します。

ITestDevice getDevice()
static String getPathForPattern(RemoteBuildInfo buildInfo, String pattern, boolean ignoreSubdir)

RemoteBuildInfo から画像のリモートパスを取得するヘルパー メソッド

static String getPathForPattern(RemoteBuildInfo buildInfo, String pattern)

RemoteBuildInfo から画像のリモートパスを取得するヘルパー メソッド

RemoteBuildInfo getRemoteBuild()

すべてのファイルをダウンロードせずに、起動制御のレスポンスを取得します。

Set<String> reportTestZipFileFilter()
void setAltStaticDeviceInfoClass(String altStaticDeviceInfoClass)
void setBootstrapBuildInfo(boolean bootstrapBuildInfo)

テスト用に公開

boolean shouldAutopopulateFilters()
void skipDownload(RemoteBuildInfo.BuildAttributeKey attrKey)

指定された BuildAttributeKey のファイルがダウンロードされないようにします。

保護されたメソッド

void convertBuildToSigned(RemoteBuildInfo remoteBuild)

この RemoteBuildInfo のパラメータを変更して、署名付きビルドを記述します。

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

remoteBuild から --download-build-key で設定された必要なファイルキーをダウンロードし、IBuildInfo に保存します。

void resolveBuildInfoFromDevice(ITestDevice device)

デバイスからビルド ID とフレーバーを取得し、ビルドサーバーからブランチ情報を取得します。

void setDevice(ITestDevice device)

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

DeviceLaunchControlProvider

public DeviceLaunchControlProvider ()

パブリック メソッド

addDownloadKey

public void addDownloadKey (RemoteBuildInfo.BuildAttributeKey attrKey)

指定された BuildAttributeKey を含むファイルのダウンロードを必須にします。除外は包含よりも優先されるため、ファイルがスキップ リストに含まれている場合、ここで言及されていてもダウンロードされません。

パラメータ
attrKey RemoteBuildInfo.BuildAttributeKey

cleanUp

public void cleanUp (IBuildInfo info)

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

パラメータ
info IBuildInfo

discoverDependencies

public static Set<String> discoverDependencies (IConfiguration config)

構成の依存関係を検出します。

パラメータ
config IConfiguration

戻り値
Set<String>

evaluateDeviceImageChanges

public void evaluateDeviceImageChanges (RemoteBuildInfo remoteBuild, 
                IFileDownloader downloader, 
                IDeviceBuildInfo localBuild)

デバイス イメージが変更されたかどうかを評価するために必要な部分をダウンロードします。

パラメータ
remoteBuild RemoteBuildInfo

downloader IFileDownloader

localBuild IDeviceBuildInfo

getBuild

public IBuildInfo getBuild (ITestDevice device)

テスト対象のビルドのデータを取得する

パラメータ
device ITestDevice: テスト用に割り当てられた ITestDevice

戻り値
IBuildInfo テスト対象のビルドの IBuildInfo。テストに使用できるビルドがない場合は null

例外
BuildRetrievalError
DeviceNotAvailableException

getDevice

public ITestDevice getDevice ()

戻り値
ITestDevice

getPathForPattern

public static String getPathForPattern (RemoteBuildInfo buildInfo, 
                String pattern, 
                boolean ignoreSubdir)

RemoteBuildInfo から画像のリモートパスを取得するヘルパー メソッド

パラメータ
buildInfo RemoteBuildInfo: RemoteBuildInfo

pattern String: イメージのリモートパスのパターン

ignoreSubdir boolean: true の場合、パターン内のサブディレクトリを無視します

戻り値
String リモートパス

getPathForPattern

public static String getPathForPattern (RemoteBuildInfo buildInfo, 
                String pattern)

RemoteBuildInfo から画像のリモートパスを取得するヘルパー メソッド

パラメータ
buildInfo RemoteBuildInfo: RemoteBuildInfo

pattern String: イメージのリモートパスのパターン

戻り値
String リモートパス

getRemoteBuild

public RemoteBuildInfo getRemoteBuild ()

すべてのファイルをダウンロードせずに、起動制御のレスポンスを取得します。

このパッケージ外の特殊化が直接使用できるように公開されました。通常は代わりに getBuild() を使用する必要があります。

戻り値
RemoteBuildInfo 起動制御からの RemoteBuildInfo レスポンス

例外
BuildRetrievalError

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

戻り値
Set<String>

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

パラメータ
altStaticDeviceInfoClass String

setBootstrapBuildInfo

public void setBootstrapBuildInfo (boolean bootstrapBuildInfo)

テスト用に公開

shouldAutopopulateFilters

public boolean shouldAutopopulateFilters ()

戻り値
boolean

skipDownload

public void skipDownload (RemoteBuildInfo.BuildAttributeKey attrKey)

指定された BuildAttributeKey を持つファイルのダウンロードをスキップします。

パラメータ
attrKey RemoteBuildInfo.BuildAttributeKey

保護されたメソッド

convertBuildToSigned

protected void convertBuildToSigned (RemoteBuildInfo remoteBuild)

この RemoteBuildInfo のパラメータを変更して、署名付きビルドを記述します。

パラメータ
remoteBuild RemoteBuildInfo: 変更する RemoteBuildInfo

例外
BuildRetrievalError

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

resolveBuildInfoFromDevice

protected void resolveBuildInfoFromDevice (ITestDevice device)

デバイスからビルド ID とフレーバーを取得し、ビルドサーバーからブランチ情報を取得します

例外
BuildRetrievalError
DeviceNotAvailableException

setDevice

protected void setDevice (ITestDevice device)

パラメータ
device ITestDevice