Iホストオプション

public interface IHostOptions

com.android.tradefed.host.IHostOptions


ホスト オプション ホルダー インターフェイス。このインターフェイスは、ホスト全体のオプションにアクセスするために使用されます。

まとめ

パブリックメソッド

abstract Integer getAvailablePermits ( IHostOptions.PermitLimitType type)

指定されたタイプの利用可能な許可の数を返します

abstract Long getCacheSizeLimit ()

ローカル ファイル キャッシュの最大許容サイズ (バイト) を返します。

abstract Integer getConcurrentDownloadLimit ()

許可される同時ダウンロードの最大数を返します。

abstract Integer getConcurrentFlasherLimit ()

許可する同時フラッシュの最大数を返します。

abstract Integer getConcurrentVirtualDeviceStartupLimit ()

許可される仮想デバイスの同時起動の最大数を返します。

abstract File getDownloadCacheDir ()

ダウンロードされたアーティファクトの保存に使用されるパスを返します。

abstract File getFastbootTmpDir ()

fastboot が一時フォルダーとして使用するパスを返します。

abstract int getInUsePermits ( IHostOptions.PermitLimitType type)

指定されたタイプで使用されている許可の数を返します。

abstract getKnownGceDeviceIpPool ()

特定の IP に関連付けられた既知の gce-device。

abstract getKnownPreconfigureVirtualDevicePool ()

既知の事前構成された仮想デバイス プール。

abstract getKnownRemoteDeviceIpPool ()

特定の IP に関連付けられた既知のリモート デバイス。

abstract getKnownTcpDeviceIpPool ()

特定の IP に関連付けられた既知の tcp デバイス。

abstract getLabels ()

ホストのラベルを取得します。

abstract String getNetworkInterface ()

リモート テスト デバイスへの接続に使用されるネットワーク インターフェイスを返します。

abstract getServiceAccountJsonKeyFiles ()

サービス アカウントの JSON キー ファイルのマップを返します。

abstract long getTestPhaseTimeout ()

指定されたテストフェーズレベルのタイムアウトを返します。

abstract boolean getUseZip64InPartialDownload ()

部分ダウンロードで zip64 形式を使用する必要があるかどうかを確認します。

abstract void initConcurrentLocks ()

同時ロックを初期化します

abstract boolean isFastbootdEnable ()

fastbootd モードのサポートが有効かどうかを返します。

abstract boolean isHostMetricReportingDisabled ()

ホスト メトリック レポートを無効にするかどうかを返します。

abstract boolean isIncrementalFlashingEnabled ()

インクリメンタルフラッシュが有効かどうかを返します。

abstract boolean isOptOutOfIncrementalFlashing ()

ホストが増分フラッシュをオプトアウトするかどうかを返します。

abstract void returnPermit ( IHostOptions.PermitLimitType type)

指定されたタイプの許可を返します

abstract boolean shouldFlashWithFuseZip ()

ヒューズ マウントされたデバイス イメージ zip ファイルを使用してフラッシュを実行する必要があるかどうかを返します。

abstract Boolean shouldUseSsoClient ()

SingleSignOn クライアントを使用する必要があるかどうかを確認します。

abstract void takePermit ( IHostOptions.PermitLimitType type)

指定された種類の許可を取得します

abstract void validateOptions ()

IHostOptionsに設定されたオプションが有効であることを検証します。

パブリックメソッド

getAvailablePermits

public abstract Integer getAvailablePermits (IHostOptions.PermitLimitType type)

指定されたタイプの利用可能な許可の数を返します

パラメーター
type IHostOptions.PermitLimitType

戻り値
Integer

getCacheSizeLimit

public abstract Long getCacheSizeLimit ()

ローカル ファイル キャッシュの最大許容サイズ (バイト) を返します。

戻り値
Long

getConcurrentDownloadLimit

public abstract Integer getConcurrentDownloadLimit ()

許可される同時ダウンロードの最大数を返します。リモート ビルドをダウンロードするIBuildProviderによって使用されます。

戻り値
Integer

getConcurrentFlasherLimit

public abstract Integer getConcurrentFlasherLimit ()

許可する同時フラッシュの最大数を返します。 DeviceFlashPreparerによって使用されます。

戻り値
Integer同時点滅制限。

getConcurrentVirtualDeviceStartupLimit

public abstract Integer getConcurrentVirtualDeviceStartupLimit ()

許可される仮想デバイスの同時起動の最大数を返します。仮想デバイスを起動するRemoteAndroidVirtualDeviceによって使用されます。

戻り値
Integer

getDownloadCacheDir

public abstract File getDownloadCacheDir ()

ダウンロードされたアーティファクトの保存に使用されるパスを返します。

戻り値
File

getFastbootTmpDir

public abstract File getFastbootTmpDir ()

fastboot が一時フォルダーとして使用するパスを返します。

戻り値
File

getInUsePermits

public abstract int getInUsePermits (IHostOptions.PermitLimitType type)

指定されたタイプで使用されている許可の数を返します。

パラメーター
type IHostOptions.PermitLimitType

戻り値
int

getKnownGceDeviceIpPool

public abstract  getKnownGceDeviceIpPool ()

特定の IP に関連付けられた既知の gce-device。

戻り値

getKnown事前構成仮想デバイスプール

public abstract  getKnownPreconfigureVirtualDevicePool ()

既知の事前構成された仮想デバイス プール。

戻り値

getKnownRemoteDeviceIpPool

public abstract  getKnownRemoteDeviceIpPool ()

特定の IP に関連付けられた既知のリモート デバイス。

戻り値

getKnownTcpDeviceIpPool

public abstract  getKnownTcpDeviceIpPool ()

特定の IP に関連付けられた既知の tcp デバイス。

戻り値

getLabels

public abstract  getLabels ()

ホストのラベルを取得します。

戻り値

getネットワークインターフェース

public abstract String getNetworkInterface ()

リモート テスト デバイスへの接続に使用されるネットワーク インターフェイスを返します。

戻り値
String

getServiceAccountJsonKeyFiles

public abstract  getServiceAccountJsonKeyFiles ()

サービス アカウントの JSON キー ファイルのマップを返します。

戻り値

getTestPhaseTimeout

public abstract long getTestPhaseTimeout ()

指定されたテストフェーズレベルのタイムアウトを返します。デフォルトはタイムアウトなしの 0 です。

戻り値
long

getUseZip64InPartialDownload

public abstract boolean getUseZip64InPartialDownload ()

部分ダウンロードで zip64 形式を使用する必要があるかどうかを確認します。

戻り値
boolean

initConcurrentLocks

public abstract void initConcurrentLocks ()

同時ロックを初期化します

isFastbootdEnable

public abstract boolean isFastbootdEnable ()

fastbootd モードのサポートが有効かどうかを返します。

戻り値
boolean

isHostMetricReportingDisabled

public abstract boolean isHostMetricReportingDisabled ()

ホスト メトリック レポートを無効にするかどうかを返します。

戻り値
boolean

isIncrementalFlashingEnabled

public abstract boolean isIncrementalFlashingEnabled ()

インクリメンタルフラッシュが有効かどうかを返します。

戻り値
boolean

isOptOutOfIncrementalFlashing

public abstract boolean isOptOutOfIncrementalFlashing ()

ホストが増分フラッシュをオプトアウトするかどうかを返します。

戻り値
boolean

返却許可

public abstract void returnPermit (IHostOptions.PermitLimitType type)

指定されたタイプの許可を返します

パラメーター
type IHostOptions.PermitLimitType

shouldFlashWithFuseZip

public abstract boolean shouldFlashWithFuseZip ()

ヒューズ マウントされたデバイス イメージ zip ファイルを使用してフラッシュを実行する必要があるかどうかを返します。

戻り値
boolean

shouldUseSsoClient

public abstract Boolean shouldUseSsoClient ()

SingleSignOn クライアントを使用する必要があるかどうかを確認します。

戻り値
Boolean

許可を取る

public abstract void takePermit (IHostOptions.PermitLimitType type)

指定された種類の許可を取得します

パラメーター
type IHostOptions.PermitLimitType

検証オプション

public abstract void validateOptions ()

IHostOptionsに設定されたオプションが有効であることを検証します。

投げる
ConfigurationException