主機選項

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

getClFlashstation

public abstract File getClFlashstation ()

返回遠程 cl_flashstation 腳本文件。

退貨
File

獲取並發下載限制

public abstract Integer getConcurrentDownloadLimit ()

返回允許的最大並發下載數。由下載遠程構建的IBuildProvider使用。

退貨
Integer

getConcurrentFlasherLimit

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

getKnownGceDeviceIpPool

public abstract  getKnownGceDeviceIpPool ()

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

退貨

getKnownPreconfigureVirtualDevicePool

public abstract  getKnownPreconfigureVirtualDevicePool ()

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

退貨

getKnownRemoteDeviceIpPool

public abstract  getKnownRemoteDeviceIpPool ()

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

退貨

getKnownTcpDeviceIpPool

public abstract  getKnownTcpDeviceIpPool ()

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

退貨

獲取標籤

public abstract  getLabels ()

獲取主機標籤。

退貨

獲取網絡接口

public abstract String getNetworkInterface ()

返回用於連接到遠程測試設備的網絡接口。

退貨
String

getServiceAccountJsonKeyFiles

public abstract  getServiceAccountJsonKeyFiles ()

返回服務帳戶 json 密鑰文件的映射。

退貨

獲取測試階段超時

public abstract long getTestPhaseTimeout ()

返回指定的測試階段級別超時。默認值為 0,表示沒有超時。

退貨
long

getUseZip64InPartialDownload

public abstract boolean getUseZip64InPartialDownload ()

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

退貨
boolean

初始化並發鎖

public abstract void initConcurrentLocks ()

初始化並發鎖

isFastbootdEnable

public abstract boolean isFastbootdEnable ()

返回是否啟用了 fastbootd 模式支持。

退貨
boolean

isFlashstationEnabled

public abstract boolean isFlashstationEnabled ()

返回是否應使用 flashstation 完成閃爍。

退貨
boolean

isHostMetricReportingDisabled

public abstract boolean isHostMetricReportingDisabled ()

返回是否應禁用主機指標報告。

退貨
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