主机选项
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 () 验证在 |
公共方法
获取可用许可证
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 abstractgetKnownGceDeviceIpPool ()
与特定 IP 关联的已知 gce 设备。
退货 | |
---|---|
getKnownPreconfigureVirtualDevicePool
public abstractgetKnownPreconfigureVirtualDevicePool ()
已知的预配置虚拟设备池。
退货 | |
---|---|
getKnownRemoteDeviceIpPool
public abstractgetKnownRemoteDeviceIpPool ()
与特定 IP 关联的已知远程设备。
退货 | |
---|---|
getKnownTcpDeviceIpPool
public abstractgetKnownTcpDeviceIpPool ()
与特定 IP 关联的已知 tcp 设备。
退货 | |
---|---|
获取标签
public abstractgetLabels ()
获取主机标签。
退货 | |
---|---|
获取网络接口
public abstract String getNetworkInterface ()
返回用于连接到远程测试设备的网络接口。
退货 | |
---|---|
String |
getServiceAccountJsonKeyFiles
public abstractgetServiceAccountJsonKeyFiles ()
返回服务帐户 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 |