IHostOptions

public interface IHostOptions

com.android.tradefed.host.IHostOptions


主机选项容器界面。 此接口用于访问主机层级的选项。

摘要

公共方法

abstract Integer getAvailablePermits(IHostOptions.PermitLimitType type)

返回给定类型的可用许可数

abstract Long getCacheSizeLimit()

返回允许的本地文件缓存大小上限(字节)。

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 关联的已知远程设备。

default 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 isHostMetricReportingDisabled()

返回是否应停用主机指标报告功能。

abstract boolean isIncrementalFlashingEnabled()

返回是否启用增量刷写的指示值。

abstract boolean isOptOutOfIncrementalFlashing()

返回主机是否选择停用增量刷写的信息。

abstract void returnPermit(IHostOptions.PermitLimitType type)

返回给定类型的许可

abstract boolean shouldFlashWithFuseZip()

返回是否应使用安装了保险丝的设备映像 zip 文件进行刷写。

abstract Boolean shouldUseSsoClient()

检查它是否应使用 SingleSignOn 客户端。

abstract void takePermit(IHostOptions.PermitLimitType type)

接受指定类型的许可

abstract void validateOptions()

验证在 IHostOptions 上设置的选项是否有效。

公共方法

getAvailablePermits

public abstract Integer getAvailablePermits (IHostOptions.PermitLimitType type)

返回给定类型的可用许可数

参数
type IHostOptions.PermitLimitType

返回
Integer

getCacheSizeLimit

public abstract Long getCacheSizeLimit ()

返回允许的本地文件缓存大小上限(字节)。

返回
Long

getConcurrentDownloadLimit

public abstract Integer getConcurrentDownloadLimit ()

返回允许的并发下载数量上限。供下载远程构建的 IBuildProvider 使用。

返回
Integer

getConcurrentFlasherLimit

public abstract Integer getConcurrentFlasherLimit ()

返回允许的并发刷写数量上限。由 DeviceFlashPreparer 使用。

返回
Integer 并发刷写器限制

getConcurrentVirtualDeviceStartupLimit

public abstract Integer getConcurrentVirtualDeviceStartupLimit ()

返回允许的并发虚拟设备启动次数上限。供启动虚拟设备的 RemoteAndroidVirtualDevice 使用。

返回
Integer

getDownloadCacheDir

public abstract File getDownloadCacheDir ()

返回用于存储下载的制品的路径。

返回
File

getFastbootTmpDir

public abstract File getFastbootTmpDir ()

返回 fastboot 应用作临时文件夹的路径。

返回
File

getInUsePermits

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  getKnownTcpDeviceIpPool ()

与特定 IP 关联的已知 TCP 设备。

返回

get 标签

public abstract  getLabels ()

获取主机标签。

返回

getNetworkInterface

public abstract String getNetworkInterface ()

返回用于连接到远程测试设备的网络接口。

返回
String

getServiceAccountJsonKeyFiles

public abstract  getServiceAccountJsonKeyFiles ()

返回服务账号 JSON 密钥文件的映射。

返回

getTestPhaseTimeout

public abstract long getTestPhaseTimeout ()

返回指定的测试阶段级超时。默认值为 0,表示没有超时。

返回
long

getUseZip64InPartialDownload

public abstract boolean getUseZip64InPartialDownload ()

检查是否应在部分下载时使用 zip64 格式。

返回
boolean

initConcurrentLocks

public abstract void initConcurrentLocks ()

初始化并发锁

isfastbootdEnable

public abstract boolean isFastbootdEnable ()

返回是否启用 fastbootd 模式支持。

返回
boolean

isHostMetricReporting 已停用

public abstract boolean isHostMetricReportingDisabled ()

返回是否应停用主机指标报告功能。

返回
boolean

is 增量 FlashingEnabled

public abstract boolean isIncrementalFlashingEnabled ()

返回是否启用增量刷写的指示值。

返回
boolean

isOptOutOfGainFlashing

public abstract boolean isOptOutOfIncrementalFlashing ()

返回主机是否选择停用增量刷写的信息。

返回
boolean

退货许可

public abstract void returnPermit (IHostOptions.PermitLimitType type)

返回指定类型的许可

参数
type IHostOptions.PermitLimitType

shouldFlashWithFuseZip

public abstract boolean shouldFlashWithFuseZip ()

返回是否应使用装有融合熔断的设备映像 ZIP 文件进行刷写。

返回
boolean

shouldUseSsoClient

public abstract Boolean shouldUseSsoClient ()

检查它是否应使用 SingleSignOn 客户端。

返回
Boolean

TakePermit

public abstract void takePermit (IHostOptions.PermitLimitType type)

接受指定类型的许可

参数
type IHostOptions.PermitLimitType

验证选项

public abstract void validateOptions ()

验证在 IHostOptions 上设置的选项是否有效。

抛出
ConfigurationException