HostOptions

public class HostOptions
extends Object implements IHostOptions

java.lang.Object
   ↳ com.android.tradefed.host.HostOptions


ホスト オプション ホルダークラス。このクラスは、ホスト全体のオプションを格納するために使用されます。

概要

パブリック コンストラクタ

HostOptions()

パブリック メソッド

Integer getAvailablePermits(IHostOptions.PermitLimitType type)

特定のタイプの許可証の数を返します

Long getCacheSizeLimit()

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

Integer getConcurrentDownloadLimit()

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

Integer getConcurrentFlasherLimit()

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

Integer getConcurrentVirtualDeviceStartupLimit()

仮想デバイスの同時実行の最大数を返します。

File getDownloadCacheDir()

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

File getFastbootTmpDir()

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

int getInUsePermits(IHostOptions.PermitLimitType type)

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

getKnownGceDeviceIpPool()

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

getKnownPreconfigureVirtualDevicePool()

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

getKnownRemoteDeviceIpPool()

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

getLabels()

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

String getNetworkInterface()

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

getServiceAccountJsonKeyFiles()

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

long getTestPhaseTimeout()

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

boolean getUseZip64InPartialDownload()

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

void initConcurrentLocks()

同時ロックを初期化する

boolean isFastbootdEnable()

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

boolean isHostMetricReportingDisabled()

ホスト指標の報告を無効にするかどうかを返します。

boolean isIncrementalFlashingEnabled()

増分フラッシュが有効かどうかを返します。

boolean isOptOutOfIncrementalFlashing()

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

void returnPermit(IHostOptions.PermitLimitType type)

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

boolean shouldFlashWithFuseZip()

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

Boolean shouldUseSsoClient()

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

void takePermit(IHostOptions.PermitLimitType type)

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

void validateOptions()

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

パブリック コンストラクタ

HostOptions

public HostOptions ()

パブリック メソッド

getAvailablePermit

public Integer getAvailablePermits (IHostOptions.PermitLimitType type)

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

パラメータ
type IHostOptions.PermitLimitType

戻り値
Integer

getCacheSizeLimit

public Long getCacheSizeLimit ()

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

戻り値
Long

getConcurrentDownloadLimit

public Integer getConcurrentDownloadLimit ()

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

戻り値
Integer

getConcurrentFlasherLimit

public Integer getConcurrentFlasherLimit ()

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

戻り値
Integer 同時フラッシャーの上限があります。

getConcurrentVirtualDeviceStartupLimit

public Integer getConcurrentVirtualDeviceStartupLimit ()

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

戻り値
Integer

getDownloadCacheDir

public File getDownloadCacheDir ()

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

戻り値
File

getFastbootTmpDir

public File getFastbootTmpDir ()

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

戻り値
File

getInUsePermit

public int getInUsePermits (IHostOptions.PermitLimitType type)

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

パラメータ
type IHostOptions.PermitLimitType

戻り値
int

getKnownGceDeviceIpPool

public  getKnownGceDeviceIpPool ()

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

戻り値

getKnownPreconfigureVirtualDevicePool

public  getKnownPreconfigureVirtualDevicePool ()

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

戻り値

getKnownRemoteDeviceIpPool

public  getKnownRemoteDeviceIpPool ()

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

戻り値

getLabels

public  getLabels ()

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

戻り値

getNetworkInterface

public String getNetworkInterface ()

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

戻り値
String

getServiceAccountJsonKeyFiles

public  getServiceAccountJsonKeyFiles ()

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

戻り値

getTestPhaseTimeout

public long getTestPhaseTimeout ()

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

戻り値
long

getUseZip64InPartialDownload

public boolean getUseZip64InPartialDownload ()

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

戻り値
boolean

initConcurrentLocks

public void initConcurrentLocks ()

同時ロックを初期化する

isFastbootdEnable

public boolean isFastbootdEnable ()

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

戻り値
boolean

isHostMetricReportingDisabled

public boolean isHostMetricReportingDisabled ()

ホスト指標の報告を無効にするかどうかを返します。

戻り値
boolean

isIncrementalFlashingEnabled

public boolean isIncrementalFlashingEnabled ()

増分フラッシュが有効かどうかを返します。

戻り値
boolean

isOptOutOfIncrementalFlashing

public boolean isOptOutOfIncrementalFlashing ()

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

戻り値
boolean

返却許可

public void returnPermit (IHostOptions.PermitLimitType type)

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

パラメータ
type IHostOptions.PermitLimitType

shouldFlashWithFuseZip

public boolean shouldFlashWithFuseZip ()

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

戻り値
boolean

shouldUseSsoClient

public Boolean shouldUseSsoClient ()

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

戻り値
Boolean

TakePermit

public void takePermit (IHostOptions.PermitLimitType type)

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

パラメータ
type IHostOptions.PermitLimitType

validateOptions

public void validateOptions ()

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

例外
ConfigurationException