IHostOptions

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 デバイス。

abstract getKnownPreconfigureVirtualDevicePool()

既知の事前構成済みの仮想デバイスプール。

abstract getKnownRemoteDeviceIpPool()

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

default 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 に設定されたオプションが有効であることを確認します。

パブリック メソッド

getAvailablePermit

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

getInUsePermit

public abstract int getInUsePermits (IHostOptions.PermitLimitType type)

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

パラメータ
type IHostOptions.PermitLimitType

戻り値
int

getKnownGceDeviceIpPool

public abstract  getKnownGceDeviceIpPool ()

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

戻り値

getKnownPreconfigureVirtualDevicePool

public abstract  getKnownPreconfigureVirtualDevicePool ()

既知の事前構成済みの仮想デバイスプール。

戻り値

getKnownRemoteDeviceIpPool

public abstract  getKnownRemoteDeviceIpPool ()

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

戻り値

getKnownTcpDeviceIpPool

public  getKnownTcpDeviceIpPool ()

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

戻り値

getLabels

public abstract  getLabels ()

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

戻り値

getNetworkInterface

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

TakePermit

public abstract void takePermit (IHostOptions.PermitLimitType type)

指定されたタイプの許可を受け取ります。

パラメータ
type IHostOptions.PermitLimitType

validateOptions

public abstract void validateOptions ()

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

例外
ConfigurationException