主機選項

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 中設定的選項有效。

公用方法

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 並行 Flasher 上限

getConcurrentVirtualDeviceStartupLimit

public abstract Integer getConcurrentVirtualDeviceStartupLimit ()

傳回同時啟動的虛擬裝置數量上限。由啟動虛擬裝置的 RemoteAndroidVirtualDevice 使用。

傳回
Integer

getDownloadCacheDir

public abstract File getDownloadCacheDir ()

傳回用來儲存下載構件的路徑。

傳回
File

getFastbootTmpDir

public abstract File getFastbootTmpDir ()

傳回 Quickboot 應做為暫存資料夾的路徑。

傳回
File

getInUsePermits

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

isHostMetricReporting 已停用

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

應使用 FlashWithFuseZip

public abstract boolean shouldFlashWithFuseZip ()

傳回是否要使用保險絲掛載裝置映像檔 ZIP 檔案完成刷新。

傳回
boolean

應使用 SsoClient

public abstract Boolean shouldUseSsoClient ()

檢查是否應使用 SingleSignOn 用戶端。

傳回
Boolean

外帶許可

public abstract void takePermit (IHostOptions.PermitLimitType type)

接受指定類型的許可

參數
type IHostOptions.PermitLimitType

VerifyOptions

public abstract void validateOptions ()

確認 IHostOptions 中設定的選項有效。

擲回
ConfigurationException