主機選項

public class HostOptions
extends Object implements IHostOptions

java.lang.Object
com.android.tradefed.host.HostOptions


託管選擇權持有者類別。此類用於儲存主機範圍的選項。

概括

公共構造函數

HostOptions ()

公共方法

Integer getAvailablePermits ( IHostOptions.PermitLimitType type)

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

Long getCacheSizeLimit ()

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

File getClFlashstation ()

返回遠端 cl_flashstation 腳本檔案。

Integer getConcurrentDownloadLimit ()

傳回允許的最大並發下載數。

Integer getConcurrentFlasherLimit ()

傳回允許的最大並發閃爍數。

Integer getConcurrentVirtualDeviceStartupLimit ()

傳回允許的並發虛擬設備啟動的最大數量。

File getDownloadCacheDir ()

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

File getFastbootTmpDir ()

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

int getInUsePermits ( IHostOptions.PermitLimitType type)

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

getKnownGceDeviceIpPool ()

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

getKnownPreconfigureVirtualDevicePool ()

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

getKnownRemoteDeviceIpPool ()

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

getKnownTcpDeviceIpPool ()

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

getLabels ()

取得主機的標籤。

String getNetworkInterface ()

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

getServiceAccountJsonKeyFiles ()

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

long getTestPhaseTimeout ()

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

boolean getUseZip64InPartialDownload ()

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

void initConcurrentLocks ()

初始化並發鎖

boolean isFastbootdEnable ()

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

boolean isFlashstationEnabled ()

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

boolean isHostMetricReportingDisabled ()

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

boolean isIncrementalFlashingEnabled ()

傳回是否啟用增量閃爍。

boolean isOptOutOfIncrementalFlashing ()

返回主機是否選擇退出增量刷新。

void returnPermit ( IHostOptions.PermitLimitType type)

傳回給定類型的許可證

boolean shouldFlashWithFuseZip ()

傳回是否應使用熔絲安裝的裝置映像 zip 檔案來完成刷新。

Boolean shouldUseSsoClient ()

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

void takePermit ( IHostOptions.PermitLimitType type)

取得給定類型的許可證

void validateOptions ()

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

公共構造函數

主機選項

public HostOptions ()

公共方法

取得可用許可證

public Integer getAvailablePermits (IHostOptions.PermitLimitType type)

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

參數
type IHostOptions.PermitLimitType

退貨
Integer

取得快取大小限制

public Long getCacheSizeLimit ()

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

退貨
Long

獲取ClFlashstation

public File getClFlashstation ()

返回遠端 cl_flashstation 腳本檔案。

退貨
File

取得並發下載限制

public Integer getConcurrentDownloadLimit ()

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

退貨
Integer

取得並發閃爍限制

public Integer getConcurrentFlasherLimit ()

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

退貨
Integer並發閃光器限制。

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

public Integer getConcurrentVirtualDeviceStartupLimit ()

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

退貨
Integer

取得下載快取目錄

public File getDownloadCacheDir ()

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

退貨
File

取得FastbootTmpDir

public File getFastbootTmpDir ()

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

退貨
File

取得使用許可

public int getInUsePermits (IHostOptions.PermitLimitType type)

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

參數
type IHostOptions.PermitLimitType

退貨
int

取得KnownGceDeviceIpPool

public  getKnownGceDeviceIpPool ()

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

退貨

getKnownPreconfigureVirtualDevicePool

public  getKnownPreconfigureVirtualDevicePool ()

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

退貨

取得已知遠端設備 IpPool

public  getKnownRemoteDeviceIpPool ()

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

退貨

取得KnownTcpDeviceIpPool

public  getKnownTcpDeviceIpPool ()

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

退貨

取得標籤

public  getLabels ()

取得主機的標籤。

退貨

取得網路介面

public String getNetworkInterface ()

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

退貨
String

取得ServiceAccountJsonKeyFiles

public  getServiceAccountJsonKeyFiles ()

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

退貨

取得測試階段逾時

public long getTestPhaseTimeout ()

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

退貨
long

getUseZip64InPartialDownload

public boolean getUseZip64InPartialDownload ()

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

退貨
boolean

初始化並發鎖

public void initConcurrentLocks ()

初始化並發鎖

是否啟用快速啟動

public boolean isFastbootdEnable ()

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

退貨
boolean

是否啟用Flashstation

public boolean isFlashstationEnabled ()

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

退貨
boolean

isHostMetricReportingDisabled

public boolean isHostMetricReportingDisabled ()

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

退貨
boolean

已啟用增量閃爍

public boolean isIncrementalFlashingEnabled ()

傳回是否啟用增量閃爍。

退貨
boolean

isOptOutOfIncrementalFlashing

public boolean isOptOutOfIncrementalFlashing ()

返回主機是否選擇退出增量刷新。

退貨
boolean

返回許可證

public void returnPermit (IHostOptions.PermitLimitType type)

傳回給定類型的許可證

參數
type IHostOptions.PermitLimitType

shouldFlashWithFuseZip

public boolean shouldFlashWithFuseZip ()

傳回是否應使用熔絲安裝的裝置映像 zip 檔案來完成刷新。

退貨
boolean

應該使用SsoClient

public Boolean shouldUseSsoClient ()

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

退貨
Boolean

取得許可證

public void takePermit (IHostOptions.PermitLimitType type)

取得給定類型的許可證

參數
type IHostOptions.PermitLimitType

驗證選項

public void validateOptions ()

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

投擲
ConfigurationException