SandboxOptions
public
final
class
SandboxOptions
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.sandbox.SandboxOptions |
ISandbox にオプションを受け渡すことができるクラス。
概要
定数 | |
|---|---|
String |
CHILD_GLOBAL_CONFIG
|
String |
ENABLE_DEBUG_THREAD
|
String |
PARENT_PREPARER_CONFIG
|
String |
SANDBOX_BUILD_ID
|
String |
TF_LOCATION
|
String |
USE_PROTO_REPORTER
|
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
定数値: "sub-global-config"
ENABLE_DEBUG_THREAD
public static final String ENABLE_DEBUG_THREAD
定数値: "sandbox-debug-thread"
PARENT_PREPARER_CONFIG
public static final String PARENT_PREPARER_CONFIG
定数値: "parent-preparer-config"
SANDBOX_BUILD_ID
public static final String SANDBOX_BUILD_ID
定数値: "sandbox-build-id"
TF_LOCATION
public static final String TF_LOCATION
定数値: "tf-location"
USE_PROTO_REPORTER
public static final String USE_PROTO_REPORTER
定数値: "use-proto-reporter"
WAIT_FOR_EVENTS_TIMEOUT
public static final String WAIT_FOR_EVENTS_TIMEOUT
定数値: "wait-for-events"
パブリック コンストラクタ
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
publicgetEnvVariables ()
サンドボックスの Java プロセスに渡す環境変数のマップ。
| 戻り値 | |
|---|---|
|
|
getForcePartialDownloadFileRegexList
publicgetForcePartialDownloadFileRegexList ()
正規表現のセットを返します。サンドボックス部分ダウンロードでは、正規表現に一致するファイルが常にダウンロードされます。
| 戻り値 | |
|---|---|
|
|
getJavaOptions
publicgetJavaOptions ()
サンドボックスの Java プロセスに渡すオプションのリスト。
| 戻り値 | |
|---|---|
|
|
getParentPreparerConfig
public String getParentPreparerConfig ()
サンドボックスの親プロセスで実行する準備ツールを返します。
| 戻り値 | |
|---|---|
String |
|
getSandboxBuildId
public String getSandboxBuildId ()
実行中に使用されるサンドボックスに強制適用されたビルド ID を返します。
| 戻り値 | |
|---|---|
String |
|
getSandboxTfDirectory
public File getSandboxTfDirectory ()
実行のサンドボックス化に使用する Trade Federation バージョンを含む、指定されたディレクトリを返します。
| 戻り値 | |
|---|---|
File |
|
getTestsZips
publicgetTestsZips ()
サンドボックス用にステージングするテスト 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 |
|