主機選項

public interface IHostOptions

com.android.tradefed.host.IHostOptions


主機選項持有者介面。此介面用於存取主機範圍的選項。

概括

公共方法

abstract Integer getAvailablePermits ( IHostOptions.PermitLimitType type)

傳回給定類型的可用許可證數量

abstract Long getCacheSizeLimit ()

傳回本機檔案快取允許的最大大小(位元組)。

abstract File getClFlashstation ()

返回遠端 cl_flashstation 腳本檔案。

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 關聯的已知遠端設備。

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

返回是否應使用 flashstation 進行閃爍。

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

公共方法

取得可用許可證

public abstract Integer getAvailablePermits (IHostOptions.PermitLimitType type)

傳回給定類型的可用許可證數量

參數
type IHostOptions.PermitLimitType

退貨
Integer

取得快取大小限制

public abstract Long getCacheSizeLimit ()

傳回本機檔案快取允許的最大大小(位元組)。

退貨
Long

獲取ClFlashstation

public abstract File getClFlashstation ()

返回遠端 cl_flashstation 腳本檔案。

退貨
File

取得並發下載限制

public abstract Integer getConcurrentDownloadLimit ()

傳回允許的最大並發下載數。由下載遠端建置的IBuildProvider使用。

退貨
Integer

取得並發閃爍限制

public abstract Integer getConcurrentFlasherLimit ()

傳回允許的最大並發閃爍數。由DeviceFlashPreparer使用。

退貨
Integer並發閃光器限制。

取得並發虛擬設備啟動限制

public abstract Integer getConcurrentVirtualDeviceStartupLimit ()

傳回允許的並發虛擬設備啟動的最大數量。由RemoteAndroidVirtualDevice使用來啟動虛擬設備。

退貨
Integer

取得下載快取目錄

public abstract File getDownloadCacheDir ()

傳回用於儲存下載的工件的路徑。

退貨
File

取得FastbootTmpDir

public abstract File getFastbootTmpDir ()

返回 fastboot 應用作臨時資料夾的路徑。

退貨
File

取得使用許可

public abstract int getInUsePermits (IHostOptions.PermitLimitType type)

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

參數
type IHostOptions.PermitLimitType

退貨
int

取得KnownGceDeviceIpPool

public abstract  getKnownGceDeviceIpPool ()

與特定 IP 關聯的已知 gce 設備。

退貨

getKnownPreconfigureVirtualDevicePool

public abstract  getKnownPreconfigureVirtualDevicePool ()

已知的預先配置虛擬設備池。

退貨

取得已知遠端設備 IpPool

public abstract  getKnownRemoteDeviceIpPool ()

與特定 IP 關聯的已知遠端設備。

退貨

取得KnownTcpDeviceIpPool

public abstract  getKnownTcpDeviceIpPool ()

與特定 IP 關聯的已知 tcp 設備。

退貨

取得標籤

public abstract  getLabels ()

取得主機的標籤。

退貨

取得網路介面

public abstract String getNetworkInterface ()

返回用於連接到遠端測試設備的網路介面。

退貨
String

取得ServiceAccountJsonKeyFiles

public abstract  getServiceAccountJsonKeyFiles ()

傳回服務帳戶 json 金鑰檔案的對應。

退貨

取得測試階段逾時

public abstract long getTestPhaseTimeout ()

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

退貨
long

getUseZip64InPartialDownload

public abstract boolean getUseZip64InPartialDownload ()

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

退貨
boolean

初始化並發鎖

public abstract void initConcurrentLocks ()

初始化並發鎖

是否啟用快速啟動

public abstract boolean isFastbootdEnable ()

傳回是否啟用 fastbootd 模式支援。

退貨
boolean

是否啟用Flashstation

public abstract boolean isFlashstationEnabled ()

返回是否應使用 flashstation 進行閃爍。

退貨
boolean

isHostMetricReportingDisabled

public abstract boolean isHostMetricReportingDisabled ()

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

退貨
boolean

已啟用增量閃爍

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

應該使用SsoClient

public abstract Boolean shouldUseSsoClient ()

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

退貨
Boolean

取得許可證

public abstract void takePermit (IHostOptions.PermitLimitType type)

取得給定類型的許可證

參數
type IHostOptions.PermitLimitType

驗證選項

public abstract void validateOptions ()

驗證IHostOptions上設定的選項是否有效。

投擲
ConfigurationException