主机选项

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