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 Set<String> getKnownGceDeviceIpPool()

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

abstract List<String> getKnownPreconfigureNativeDevicePool()

事前設定済みのネイティブ デバイスの既知の IP プール。

abstract List<String> getKnownPreconfigureVirtualDevicePool()

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

abstract Set<String> getKnownRemoteDeviceIpPool()

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

default Set<String> getKnownTcpDeviceIpPool()

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

abstract List<String> getLabels()

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

abstract String getNetworkInterface()

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

abstract Map<String, File> getServiceAccountJsonKeyFiles()

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

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 boolean useAndroidBuildApiV4()

v4 Android Build API を使用するかどうかを返します。

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 Set<String> getKnownGceDeviceIpPool ()

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

戻り値
Set<String>

getKnownPreconfigureNativeDevicePool

public abstract List<String> getKnownPreconfigureNativeDevicePool ()

事前設定済みのネイティブ デバイス IP プール。

戻り値
List<String>

getKnownPreconfigureVirtualDevicePool

public abstract List<String> getKnownPreconfigureVirtualDevicePool ()

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

戻り値
List<String>

getKnownRemoteDeviceIpPool

public abstract Set<String> getKnownRemoteDeviceIpPool ()

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

戻り値
Set<String>

getKnownTcpDeviceIpPool

public Set<String> getKnownTcpDeviceIpPool ()

特定の IP に関連付けられている既知の tcp-device。

戻り値
Set<String>

getLabels

public abstract List<String> getLabels ()

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

戻り値
List<String>

getNetworkInterface

public abstract String getNetworkInterface ()

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

戻り値
String

getServiceAccountJsonKeyFiles

public abstract Map<String, File> getServiceAccountJsonKeyFiles ()

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

戻り値
Map<String, File>

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

returnPermit

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

useAndroidBuildApiV4

public abstract boolean useAndroidBuildApiV4 ()

v4 Android Build API を使用するかどうかを返します。

戻り値
boolean

validateOptions

public abstract void validateOptions ()

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

例外
ConfigurationException