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 downloadDefaultZips()

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

boolean dumpTestTemplate()

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

String getChildGlobalConfig()

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

getEnvVariables()

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

getJavaOptions()

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

String getParentPreparerConfig()

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

String getSandboxBuildId()

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

File getSandboxTfDirectory()

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

getTestsZips()

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

long getWaitForEventsTimeout()

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

boolean shouldEnableDebugThread()

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

boolean shouldUseProtoReporter()

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

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 ()

パブリック メソッド

downloadDefaultZips

public boolean downloadDefaultZips ()

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

戻り値
boolean

dumpTestTemplate

public boolean dumpTestTemplate ()

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

戻り値
boolean

getChildGlobalConfig

public String getChildGlobalConfig ()

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

戻り値
String

getEnvVariables

public  getEnvVariables ()

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

戻り値

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

shouldUseProtoReporter

public boolean shouldUseProtoReporter ()

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

戻り値
boolean

startAvdInParent

public boolean startAvdInParent ()

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

戻り値
boolean