主机选项
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 () 返回是否应禁用主机指标报告。 |
void | returnPermit ( IHostOptions.PermitLimitType type) 返回给定类型的许可证 |
boolean | shouldFlashWithFuseZip () 返回是否应该使用保险丝安装的设备映像 zip 文件进行闪烁。 |
Boolean | shouldUseSsoClient () 检查它是否应该使用 SingleSignOn 客户端。 |
void | takePermit ( IHostOptions.PermitLimitType type) 获取给定类型的许可证 |
void | validateOptions () 验证在 |
公共构造函数
主机选项
public HostOptions ()
公共方法
获取可用许可证
public Integer getAvailablePermits (IHostOptions.PermitLimitType type)
返回给定类型的可用许可数
参数 | |
---|---|
type | IHostOptions.PermitLimitType |
退货 | |
---|---|
Integer |
获取缓存大小限制
public Long getCacheSizeLimit ()
返回本地文件缓存的最大允许大小(字节)。
退货 | |
---|---|
Long |
getClFlashstation
public File getClFlashstation ()
返回远程 cl_flashstation 脚本文件。
退货 | |
---|---|
File |
获取并发下载限制
public Integer getConcurrentDownloadLimit ()
返回允许的最大并发下载数。由下载远程构建的IBuildProvider
使用。
退货 | |
---|---|
Integer |
getConcurrentFlasherLimit
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 |
getKnownGceDeviceIpPool
publicgetKnownGceDeviceIpPool ()
与特定 IP 关联的已知 gce 设备。
退货 | |
---|---|
getKnownPreconfigureVirtualDevicePool
publicgetKnownPreconfigureVirtualDevicePool ()
已知的预配置虚拟设备池。
退货 | |
---|---|
getKnownRemoteDeviceIpPool
publicgetKnownRemoteDeviceIpPool ()
与特定 IP 关联的已知远程设备。
退货 | |
---|---|
getKnownTcpDeviceIpPool
publicgetKnownTcpDeviceIpPool ()
与特定 IP 关联的已知 tcp 设备。
退货 | |
---|---|
获取标签
publicgetLabels ()
获取主机标签。
退货 | |
---|---|
获取网络接口
public String getNetworkInterface ()
返回用于连接到远程测试设备的网络接口。
退货 | |
---|---|
String |
getServiceAccountJsonKeyFiles
publicgetServiceAccountJsonKeyFiles ()
返回服务帐户 json 密钥文件的映射。
退货 | |
---|---|
获取测试阶段超时
public long getTestPhaseTimeout ()
返回指定的测试阶段级别超时。默认值为 0,表示没有超时。
退货 | |
---|---|
long |
getUseZip64InPartialDownload
public boolean getUseZip64InPartialDownload ()
检查它是否应该在部分下载中使用 zip64 格式。
退货 | |
---|---|
boolean |
初始化并发锁
public void initConcurrentLocks ()
初始化并发锁
isFastbootdEnable
public boolean isFastbootdEnable ()
返回是否启用了 fastbootd 模式支持。
退货 | |
---|---|
boolean |
isFlashstationEnabled
public boolean isFlashstationEnabled ()
返回是否应使用 flashstation 完成闪烁。
退货 | |
---|---|
boolean |
isHostMetricReportingDisabled
public boolean isHostMetricReportingDisabled ()
返回是否应禁用主机指标报告。
退货 | |
---|---|
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 |