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

傳回快速系統啟動模式應使用的暫存資料夾路徑。

abstract int getInUsePermits(IHostOptions.PermitLimitType type)

傳回指定類型中正在使用的許可證數量

abstract getKnownGceDeviceIpPool()

與特定 IP 相關聯的已知 gce-device。

abstract getKnownPreconfigureNativeDevicePool()

已知的預先設定原生裝置 IP 集區。

abstract getKnownPreconfigureVirtualDevicePool()

已知的預先設定虛擬裝置資源池。

abstract getKnownRemoteDeviceIpPool()

與特定 IP 相關聯的已知遠端裝置。

default getKnownTcpDeviceIpPool()

與特定 IP 相關聯的已知 TCP 裝置。

abstract getLabels()

取得主機的標籤。

abstract String getNetworkInterface()

傳回用於連線至遠端測試裝置的網路介面。

abstract getServiceAccountJsonKeyFiles()

傳回服務帳戶 JSON 金鑰檔案的 Map。

abstract long getTestPhaseTimeout()

傳回指定的測試階段層級逾時時間。

abstract boolean getUseZip64InPartialDownload()

檢查是否應在部分下載中使用 zip64 格式。

abstract void initConcurrentLocks()

初始化並行鎖定

abstract boolean isFastbootdEnable()

傳回是否啟用快速啟動模式支援功能。

abstract boolean isHostMetricReportingDisabled()

傳回是否應停用主機指標回報功能。

abstract boolean isIncrementalFlashingEnabled()

傳回是否啟用遞增閃爍功能。

abstract boolean isOptOutOfIncrementalFlashing()

傳回主機是否已選擇不使用遞增式閃燈。

abstract void returnPermit(IHostOptions.PermitLimitType type)

傳回指定類型的許可證

abstract boolean shouldFlashWithFuseZip()

傳回是否應使用 Fuse 掛接的裝置映像檔 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。

傳回

getKnownPreconfigureNativeDevicePool

public abstract  getKnownPreconfigureNativeDevicePool ()

已知的預先設定原生裝置 IP 集區。

傳回

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 金鑰檔案的 Map。

傳回

getTestPhaseTimeout

public abstract long getTestPhaseTimeout ()

傳回指定的測試階段層級逾時時間。預設值為 0,表示沒有逾時限制。

傳回
long

getUseZip64InPartialDownload

public abstract boolean getUseZip64InPartialDownload ()

檢查是否應在部分下載中使用 zip64 格式。

傳回
boolean

initConcurrentLocks

public abstract void initConcurrentLocks ()

初始化並行鎖定

isFastbootdEnable

public abstract boolean isFastbootdEnable ()

傳回是否啟用快速啟動模式支援功能。

傳回
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 ()

傳回是否應使用 Fuse 掛接的裝置映像檔 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