SandboxOptions

public final class SandboxOptions
extends Object

java.lang.Object
   ↳ com.android.tradefed.sandbox.SandboxOptions


ISandbox にオプションを受け取ったり、オプションを提供したりできるクラス。

概要

フィールド

public static final String CHILD_GLOBAL_CONFIG

public static final String ENABLE_DEBUG_THREAD

public static final String PARENT_PREPARER_CONFIG

public static final String SANDBOX_BUILD_ID

public static final String TF_LOCATION

public static final String USE_PROTO_REPORTER

public static final String WAIT_FOR_EVENTS_TIMEOUT

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

SandboxOptions()

パブリック メソッド

boolean delayDownloadAfterSharding()

シャーディング後にダウンロードを遅らせるかどうかを返します。

boolean downloadDefaultZips()

デフォルトのテスト zip をダウンロードするかどうかを返します。

boolean dumpTestTemplate()

フォールバック モードでテスト テンプレートをダンプするかどうかを返します。

String getChildGlobalConfig()

子サンドボックスに使用する構成を返します。

getEnvVariables()

サンドボックスの Java プロセスに渡す環境変数のマップ。

getForcePartialDownloadFileRegexList()

正規表現のセットを返します。サンドボックスの部分ダウンロードでは、正規表現に一致するファイルが常にダウンロードされます。

getJavaOptions()

サンドボックスの Java プロセスに渡すオプションのリスト。

String getParentPreparerConfig()

準備ツールがサンドボックスの親プロセスで実行する必要がある構成を返します。

String getSandboxBuildId()

実行時にサンドボックスで使用するように強制されたビルド ID を返します。

File getSandboxTfDirectory()

実行のサンドボックス化に使用する Trade Federation バージョンを含む指定されたディレクトリを返します。

getTestsZips()

サンドボックス用にステージングするテスト ZIP のセットを返します。

long getWaitForEventsTimeout()

サンドボックスの実行が完了した後、イベントが処理されるまで待機する時間を返します。

boolean shouldEnableDebugThread()

デバッグ スレッドを有効にします。

boolean shouldParallelSetup()

サンドボックスの設定を並列で実行するかどうかを返します。

boolean shouldUseParallelDownload()

セットアップ中に並列ダウンロードを使用するかどうかを返します。

boolean shouldUsePartialDownload()

部分ダウンロードのキャッシュを使用するかどうかを返します。

boolean shouldUseProtoReporter()

protobuf レポートを使用するかどうかを返します。

boolean shouldUseSplitDiscovery()

独立した検出でセットアップを使用するかどうかを返します。

boolean shouldUseTestDiscovery()

tradefed observatory を使用して JAR ステージングを最適化するかどうかを返します。

boolean startAvdInParent()

親サンドボックスで avd デバイスを起動するかどうか、または子で起動するかどうかを返します。

フィールド

CHILD_GLOBAL_CONFIG

public static final String CHILD_GLOBAL_CONFIG

ENABLE_DEBUG_THREAD

public static final String ENABLE_DEBUG_THREAD

PARENT_PREPARER_CONFIG

public static final String PARENT_PREPARER_CONFIG

SANDBOX_BUILD_ID

public static final String SANDBOX_BUILD_ID

TF_LOCATION

public static final String TF_LOCATION

USE_PROTO_REPORTER

public static final String USE_PROTO_REPORTER

WAIT_FOR_EVENTS_TIMEOUT

public static final String WAIT_FOR_EVENTS_TIMEOUT

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

SandboxOptions

public SandboxOptions ()

パブリック メソッド

delayDownloadAfterSharding

public boolean delayDownloadAfterSharding ()

シャーディング後にダウンロードを遅らせるかどうかを返します。

戻り値
boolean

downloadDefaultZips

public boolean downloadDefaultZips ()

デフォルトのテスト zip をダウンロードするかどうかを返します。

戻り値
boolean

dumpTestTemplate

public boolean dumpTestTemplate ()

フォールバック モードでテスト テンプレートをダンプするかどうかを返します。

戻り値
boolean

getChildGlobalConfig

public String getChildGlobalConfig ()

子サンドボックスに使用する構成を返します。親のクラスを使用する場合は null です。

戻り値
String

getEnvVariables

public  getEnvVariables ()

サンドボックスの Java プロセスに渡す環境変数のマップ。

戻り値

getForcePartialDownloadFileRegexList

public  getForcePartialDownloadFileRegexList ()

正規表現のセットを返します。サンドボックスの部分ダウンロードでは、正規表現に一致するファイルが常にダウンロードされます。

戻り値

getJavaOptions

public  getJavaOptions ()

サンドボックスの Java プロセスに渡すオプションのリスト。

戻り値

getParentPreparerConfig

public String getParentPreparerConfig ()

準備ツールがサンドボックスの親プロセスで実行する必要がある構成を返します。

戻り値
String

getSandboxBuildId

public String getSandboxBuildId ()

実行時にサンドボックスで使用するように強制されたビルド ID を返します。

戻り値
String

getSandboxTfDirectory

public File getSandboxTfDirectory ()

実行のサンドボックス化に使用する Trade Federation バージョンを含む指定されたディレクトリを返します。

戻り値
File

getTestsZips

public  getTestsZips ()

サンドボックス用にステージングするテスト ZIP のセットを返します。

戻り値

getWaitForEventsTimeout

public long getWaitForEventsTimeout ()

サンドボックスの実行が完了した後、イベントが処理されるまで待機する時間を返します。

戻り値
long

shouldEnableDebugThread

public boolean shouldEnableDebugThread ()

デバッグ スレッドを有効にします。

戻り値
boolean

shouldParallelSetup

public boolean shouldParallelSetup ()

サンドボックスの設定を並行して実行するかどうかを返します。

戻り値
boolean

shouldUseParallelDownload

public boolean shouldUseParallelDownload ()

セットアップ中に並列ダウンロードを使用するかどうかを返します。

戻り値
boolean

shouldUsePartialDownload

public boolean shouldUsePartialDownload ()

部分ダウンロードのキャッシュを使用するかどうかを返します。

戻り値
boolean

shouldUseProtoReporter

public boolean shouldUseProtoReporter ()

protobuf レポートを使用するかどうかを返します。

戻り値
boolean

shouldUseSplitDiscovery

public boolean shouldUseSplitDiscovery ()

独立した検出でセットアップを使用するかどうかを返します。

戻り値
boolean

shouldUseTestDiscovery

public boolean shouldUseTestDiscovery ()

tradefed observatory を使用して JAR ステージングを最適化するかどうかを返します。

戻り値
boolean

startAvdInParent

public boolean startAvdInParent ()

親サンドボックスで avd デバイスを起動するかどうか、または子で起動するかどうかを返します。

戻り値
boolean