TestDeviceOptions
public class TestDeviceOptions
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.TestDeviceOptions |
ITestDevice
Option
のコンテナ
概要
ネストされたクラス | |
---|---|
enum | TestDeviceOptions.InstanceType
|
定数 | |
---|---|
int | DEFAULT_ADB_PORT
|
田畑 | |
---|---|
public static final String | INSTANCE_TYPE_OPTION
|
パブリックコンストラクター | |
---|---|
TestDeviceOptions () |
パブリックメソッド | |
---|---|
int | getAdbRecoveryTimeout () |
long | getAvailableTimeout () |
File | getAvdConfigFile () Gce Avd構成ファイルを返して、インスタンスを開始します。 |
String | getAvdConfigTestResourceName () Gce Avd構成テストリソース名を返し、インスタンスを開始します。 |
File | getAvdDriverBinary () バイナリへのパスを返し、GceAvdインスタンスを開始します。 |
String | getBaseImage () 現在のインスタンスに使用されるベースイメージ名を返します |
String | getConnCheckUrl () |
static String | getCreateCommandByInstanceType ( TestDeviceOptions.InstanceType type) |
Integer | getCutoffBattery () |
static | getExtraParamsByInstanceType ( TestDeviceOptions.InstanceType type, String baseImage) |
int | getFastbootTimeout () |
String | getGceAccount () ドライバーで使用するgceメールアカウントを返す |
long | getGceCmdTimeout () インスタンスがオンラインになるまでのGceAvdタイムアウトを返します。 |
String | getGceDriverBuildIdParam () ビルド情報からビルドIDとペアにする必要があるGCEドライバーパラメーターを返します |
Log.LogLevel | getGceDriverLogLevel () GceAvdドライバーのログレベルを返します。 |
getGceDriverParams () オプションで提供された追加のGCEドライバーパラメーターを返します | |
int | getGceMaxAttempt () gceデバイスの起動の最大試行回数を返します |
TestDeviceOptions.InstanceType | getInstanceType () 作成する必要のある仮想デバイスのインスタンスタイプを返します |
String | getInstanceUser () 作成する必要があるGCE仮想デバイスのインスタンスタイプを返します |
String | getLogcatOptions () |
long | getMaxLogcatDataSize () 保持するtmplogcatデータのおおよその最大サイズをバイト単位で取得します。 |
long | getMaxWifiConnectTime () |
long | getOnlineTimeout () |
getPostBootCommands () | |
int | getRebootTimeout () |
int | getRemoteAdbPort () adbサーバーがリッスンするインスタンスのリモートポートを返します |
getRemoteFetchFilePattern () scpを介してフェッチを試みるパターンのリストを返します。 | |
File | getSerivceAccountJsonKeyFile () |
File | getSshPrivateKeyPath () GceAvdインスタンスでの操作に使用するsshキーのパスを返します。 |
int | getUnencryptRebootTimeout () |
boolean | getUseFastbootErase () |
int | getWifiAttempts () |
int | getWifiRetryWaitTime () |
String | getWifiUtilAPKPath () |
boolean | isDisableKeyguard () 起動が完了したら、キーガードを無効にする必要があるかどうかを確認します |
boolean | isEnableAdbRoot () このデバイスの起動時にadbrootを有効にする必要があるかどうかを確認します |
boolean | isLogcatCaptureEnabled () |
boolean | isWifiExpoRetryEnabled () |
void | setAdbRecoveryTimeout (int adbRecoveryTimeout) |
void | setAvdConfigFile (File avdConfigFile) GceAvd構成ファイルを設定してインスタンスを開始します。 |
void | setAvdDriverBinary (File avdDriverBinary) バイナリへのパスを設定して、GceAvdインスタンスを開始します。 |
void | setConnCheckUrl (String url) |
void | setCutoffBattery (int cutoffBattery) 呼び出しを続行するには、最小バッテリーレベルを設定します。 |
void | setDisableKeyguard (boolean disableKeyguard) 起動が完了したらキーガードを無効にするかどうかを設定します |
void | setFastbootTimeout (int fastbootTimeout) |
void | setGceCmdTimeout (long gceCmdTimeout) インスタンスがオンラインになるようにGceAvdタイムアウトを設定します。 |
void | setGceDriverBuildIdParam (String gceDriverBuildIdParam) ビルド情報からビルドIDとペアにする必要があるGCEドライバーパラメーターを設定します |
void | setGceDriverLogLevel (Log.LogLevel mGceDriverLogLevel) GceAvdドライバーのログレベルを設定します。 |
void | setGceMaxAttempt (int gceMaxAttempt) gceデバイスの起動の最大試行回数を設定します |
void | setLogcatOptions (String logcatOptions) logcatに渡されるオプションを設定します |
void | setMaxLogcatDataSize (long maxLogcatDataSize) 保持するtmplogcatのおおよその最大サイズをバイト単位で設定します |
void | setOnlineTimeout (long onlineTimeout) |
void | setRebootTimeout (int rebootTimeout) |
void | setServiceAccountJsonKeyFile (File jsonKeyFile) サービスアカウントのjsonキーファイルを設定します。 |
void | setSshPrivateKeyPath (File sshPrivateKeyPath) GceAvdインスタンスでの操作に使用するsshキーのパスを設定します。 |
void | setUnencryptRebootTimeout (int unencryptRebootTimeout) |
void | setUseFastbootErase (boolean useFastbootErase) |
void | setWifiAttempts (int wifiAttempts) |
boolean | shouldDisableReboot () |
boolean | shouldSkipTearDown () GCEの破棄をスキップする必要がある場合はtrueを返します。 |
boolean | shouldUseContentProvider () Tradefedコンテンツプロバイダーを使用してファイルをプッシュ/プルできるかどうかを返します。 |
boolean | waitForGceTearDown () 続行する前にGCEの破棄完了をブロックする必要がある場合は、trueを返します。 |
定数
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
定数値:5555(0x000015b3)
田畑
INSTANCE_TYPE_OPTION
public static final String INSTANCE_TYPE_OPTION
パブリックコンストラクター
TestDeviceOptions
public TestDeviceOptions ()
パブリックメソッド
getAdbRecoveryTimeout
public int getAdbRecoveryTimeout ()
戻り値 | |
---|---|
int | リカバリモードで起動するためのミリ秒単位のタイムアウト。 |
getAvailableTimeout
public long getAvailableTimeout ()
戻り値 | |
---|---|
long | デバイスが使用可能になるまで待機するデフォルトの時間(ミリ秒)。 |
getAvdConfigFile
public File getAvdConfigFile ()
Gce Avd構成ファイルを返して、インスタンスを開始します。
戻り値 | |
---|---|
File |
getAvdConfigTestResourceName
public String getAvdConfigTestResourceName ()
Gce Avd構成テストリソース名を返し、インスタンスを開始します。
戻り値 | |
---|---|
String |
getAvdDriverBinary
public File getAvdDriverBinary ()
バイナリへのパスを返し、GceAvdインスタンスを開始します。
戻り値 | |
---|---|
File |
getBaseImage
public String getBaseImage ()
現在のインスタンスに使用されるベースイメージ名を返します
戻り値 | |
---|---|
String |
getConnCheckUrl
public String getConnCheckUrl ()
戻り値 | |
---|---|
String | 接続テストに使用されるデフォルトのURL。 |
getCreateCommandByInstanceType
public static String getCreateCommandByInstanceType (TestDeviceOptions.InstanceType type)
パラメーター | |
---|---|
type | TestDeviceOptions.InstanceType |
戻り値 | |
---|---|
String |
getCutoffBattery
public Integer getCutoffBattery ()
戻り値 | |
---|---|
Integer | 呼び出しを続行するための最小バッテリーレベル。 |
getExtraParamsByInstanceType
public staticgetExtraParamsByInstanceType (TestDeviceOptions.InstanceType type, String baseImage)
パラメーター | |
---|---|
type | TestDeviceOptions.InstanceType |
baseImage | String |
戻り値 | |
---|---|
getFastbootTimeout
public int getFastbootTimeout ()
戻り値 | |
---|---|
int | ミリ秒単位でfastbootモードで起動するためのタイムアウト。 |
getGceAccount
public String getGceAccount ()
ドライバーで使用するgceメールアカウントを返す
戻り値 | |
---|---|
String |
getGceCmdTimeout
public long getGceCmdTimeout ()
インスタンスがオンラインになるまでのGceAvdタイムアウトを返します。
戻り値 | |
---|---|
long |
getGceDriverBuildIdParam
public String getGceDriverBuildIdParam ()
ビルド情報からビルドIDとペアにする必要があるGCEドライバーパラメーターを返します
戻り値 | |
---|---|
String |
getGceDriverLogLevel
public Log.LogLevel getGceDriverLogLevel ()
GceAvdドライバーのログレベルを返します。
戻り値 | |
---|---|
Log.LogLevel |
getGceDriverParams
publicgetGceDriverParams ()
オプションで提供された追加のGCEドライバーパラメーターを返します
戻り値 | |
---|---|
getGceMaxAttempt
public int getGceMaxAttempt ()
gceデバイスの起動の最大試行回数を返します
戻り値 | |
---|---|
int |
getInstanceType
public TestDeviceOptions.InstanceType getInstanceType ()
作成する必要のある仮想デバイスのインスタンスタイプを返します
戻り値 | |
---|---|
TestDeviceOptions.InstanceType |
getInstanceUser
public String getInstanceUser ()
作成する必要があるGCE仮想デバイスのインスタンスタイプを返します
戻り値 | |
---|---|
String |
getLogcatOptions
public String getLogcatOptions ()
戻り値 | |
---|---|
String | 構成されたlogcatオプション |
getMaxLogcatDataSize
public long getMaxLogcatDataSize ()
保持するtmplogcatデータのおおよその最大サイズをバイト単位で取得します。
戻り値 | |
---|---|
long |
getMaxWifiConnectTime
public long getMaxWifiConnectTime ()
戻り値 | |
---|---|
long | Wi-Fiへの接続を試行する最大時間。 |
getOnlineTimeout
public long getOnlineTimeout ()
戻り値 | |
---|---|
long | デバイスがオンラインになるのを待機するデフォルトの時間(ミリ秒)。 |
getPostBootCommands
publicgetPostBootCommands ()
戻り値 | |
---|---|
再起動後に実行するシェルコマンドのリスト。 |
getRebootTimeout
public int getRebootTimeout ()
戻り値 | |
---|---|
int | システム全体の起動のミリ秒単位のタイムアウト。 |
getRemoteAdbPort
public int getRemoteAdbPort ()
adbサーバーがリッスンするインスタンスのリモートポートを返します
戻り値 | |
---|---|
int |
getRemoteFetchFilePattern
publicgetRemoteFetchFilePattern ()
scpを介してフェッチを試みるパターンのリストを返します。
戻り値 | |
---|---|
getSerivceAccountJsonKeyFile
public File getSerivceAccountJsonKeyFile ()
戻り値 | |
---|---|
File | サービスアカウントのjsonキーファイル。 |
getSshPrivateKeyPath
public File getSshPrivateKeyPath ()
GceAvdインスタンスでの操作に使用するsshキーのパスを返します。
戻り値 | |
---|---|
File |
getUnencryptRebootTimeout
public int getUnencryptRebootTimeout ()
戻り値 | |
---|---|
int | ファイルシステムがフォーマットされ、デバイスが暗号化解除後に再起動するまでのミリ秒単位のタイムアウト。 |
getUseFastbootErase
public boolean getUseFastbootErase ()
戻り値 | |
---|---|
boolean | fastboot形式の代わりにfastbooteraseを使用してパーティションをワイプするかどうか。 |
getWifiAttempts
public int getWifiAttempts ()
戻り値 | |
---|---|
int | Wi-Fiネットワークへの接続のデフォルトの試行回数。 |
getWifiRetryWaitTime
public int getWifiRetryWaitTime ()
戻り値 | |
---|---|
int | Wi-Fi接続の再試行間の基本待機時間。 |
getWifiUtilAPKPath
public String getWifiUtilAPKPath ()
戻り値 | |
---|---|
String | wifiutilapkパス |
isDisableKeyguard
public boolean isDisableKeyguard ()
起動が完了したら、キーガードを無効にする必要があるかどうかを確認します
戻り値 | |
---|---|
boolean |
isEnableAdbRoot
public boolean isEnableAdbRoot ()
このデバイスの起動時にadbrootを有効にする必要があるかどうかを確認します
戻り値 | |
---|---|
boolean |
isLogcatCaptureEnabled
public boolean isLogcatCaptureEnabled ()
戻り値 | |
---|---|
boolean | バックグラウンドlogcatキャプチャが有効になっている場合はtrue |
isWifiExpoRetryEnabled
public boolean isWifiExpoRetryEnabled ()
戻り値 | |
---|---|
boolean | 指数バックオフ戦略を使用する必要がある場合。 |
setAdbRecoveryTimeout
public void setAdbRecoveryTimeout (int adbRecoveryTimeout)
パラメーター | |
---|---|
adbRecoveryTimeout | int :リカバリモードで起動するためのミリ秒単位のタイムアウト。 |
setAvdConfigFile
public void setAvdConfigFile (File avdConfigFile)
GceAvd構成ファイルを設定してインスタンスを開始します。
パラメーター | |
---|---|
avdConfigFile | File |
setAvdDriverBinary
public void setAvdDriverBinary (File avdDriverBinary)
バイナリへのパスを設定して、GceAvdインスタンスを開始します。
パラメーター | |
---|---|
avdDriverBinary | File |
setConnCheckUrl
public void setConnCheckUrl (String url)
パラメーター | |
---|---|
url | String |
setCutoffBattery
public void setCutoffBattery (int cutoffBattery)
呼び出しを続行するには、最小バッテリーレベルを設定します。
パラメーター | |
---|---|
cutoffBattery | int |
setDisableKeyguard
public void setDisableKeyguard (boolean disableKeyguard)
起動が完了したらキーガードを無効にするかどうかを設定します
パラメーター | |
---|---|
disableKeyguard | boolean |
setFastbootTimeout
public void setFastbootTimeout (int fastbootTimeout)
パラメーター | |
---|---|
fastbootTimeout | int :fastbootモードで起動するためのミリ秒単位のタイミング。 |
setGceCmdTimeout
public void setGceCmdTimeout (long gceCmdTimeout)
インスタンスがオンラインになるようにGceAvdタイムアウトを設定します。
パラメーター | |
---|---|
gceCmdTimeout | long |
setGceDriverBuildIdParam
public void setGceDriverBuildIdParam (String gceDriverBuildIdParam)
ビルド情報からビルドIDとペアにする必要があるGCEドライバーパラメーターを設定します
パラメーター | |
---|---|
gceDriverBuildIdParam | String |
setGceDriverLogLevel
public void setGceDriverLogLevel (Log.LogLevel mGceDriverLogLevel)
GceAvdドライバーのログレベルを設定します。
パラメーター | |
---|---|
mGceDriverLogLevel | Log.LogLevel |
setGceMaxAttempt
public void setGceMaxAttempt (int gceMaxAttempt)
gceデバイスの起動の最大試行回数を設定します
パラメーター | |
---|---|
gceMaxAttempt | int |
setLogcatOptions
public void setLogcatOptions (String logcatOptions)
logcatに渡されるオプションを設定します
パラメーター | |
---|---|
logcatOptions | String |
setMaxLogcatDataSize
public void setMaxLogcatDataSize (long maxLogcatDataSize)
保持するtmplogcatのおおよその最大サイズをバイト単位で設定します
パラメーター | |
---|---|
maxLogcatDataSize | long |
setOnlineTimeout
public void setOnlineTimeout (long onlineTimeout)
パラメーター | |
---|---|
onlineTimeout | long |
setRebootTimeout
public void setRebootTimeout (int rebootTimeout)
パラメーター | |
---|---|
rebootTimeout | int :システムが完全に起動するまでのミリ秒単位のタイムアウト。 |
setServiceAccountJsonKeyFile
public void setServiceAccountJsonKeyFile (File jsonKeyFile)
サービスアカウントのjsonキーファイルを設定します。
パラメーター | |
---|---|
jsonKeyFile | File :キーファイル。 |
setSshPrivateKeyPath
public void setSshPrivateKeyPath (File sshPrivateKeyPath)
GceAvdインスタンスでの操作に使用するsshキーのパスを設定します。
パラメーター | |
---|---|
sshPrivateKeyPath | File |
setUnencryptRebootTimeout
public void setUnencryptRebootTimeout (int unencryptRebootTimeout)
パラメーター | |
---|---|
unencryptRebootTimeout | int :フォーマットされるファイルシステムと暗号化解除後にデバイスが再起動するためのミリ秒単位のタイムアウト。 |
setUseFastbootErase
public void setUseFastbootErase (boolean useFastbootErase)
パラメーター | |
---|---|
useFastbootErase | boolean :パーティションをワイプするためにfastboot形式の代わりにfastbooteraseを使用するかどうか。 |
setWifiAttempts
public void setWifiAttempts (int wifiAttempts)
パラメーター | |
---|---|
wifiAttempts | int |
shouldDisableReboot
public boolean shouldDisableReboot ()
戻り値 | |
---|---|
boolean | デバイスの再起動を無効にする必要がある場合 |
shouldSkipTearDown
public boolean shouldSkipTearDown ()
GCEの破棄をスキップする必要がある場合はtrueを返します。それ以外の場合はFalse。
戻り値 | |
---|---|
boolean |
shouldUseContentProvider
public boolean shouldUseContentProvider ()
Tradefedコンテンツプロバイダーを使用してファイルをプッシュ/プルできるかどうかを返します。
戻り値 | |
---|---|
boolean |
waitForGceTearDown
public boolean waitForGceTearDown ()
続行する前にGCEの破棄の完了をブロックする必要がある場合は、trueを返します。
戻り値 | |
---|---|
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.