类索引

这些是 API 类。查看所有API 包

一个

Aapt解析器通过解析“aapt dump badging”的输出从 apk 中提取信息的类。
AaptParser.AaptVersion用于解析 APK 文件的 AAPT 版本的选项枚举。
阿比代表 ABI 的类。
AbiFormatter abi 的实用程序类。
AbiUtils用于处理设备 ABI 的实用程序类
抽象主机监视器主机健康监控的典型类。
AbstractXml解析器用于解析 xml 文件的助手基类
AbstractXmlParser.ParseException如果无法解析 XML 输入,则抛出
AcloudConfigParser解析 Acloud 配置的助手类(用于启动云设备实例)。
AcloudConfigParser.AcloudKeys可以从配置中搜索到的键集。
行动进行中正在进行的一般操作。
主动追踪帮助描述和管理活动跟踪的主类。
活动状态检查器在模块结束时运行的剩余活动的状态检查器。
AdbRootElevator一个AutoCloseable ,如果需要,在构造时启用 adb root 并在完成时恢复 root 状态。
AdbStopServerPreparer目标准备者在运行 adb 测试之前和之后停止主机上的 adb 服务器。
AdbUtils用于 adb 操作的实用程序类。
AfterClassWithInfoAfterClass类似的保证,但注解的方法必须需要TestInformation参数。
聚合后处理器一个度量聚合器,它为在多次迭代测试运行期间收集的数字度量提供最小值、最大值、平均值、方差、标准差、总数、计数和可选的百分位数,将它们视为双精度数。
AllTestAppsInstallSetupITargetPreparer IDeviceBuildInfo#getTestsDir()文件夹中的所有应用程序安装到设备上的 ITargetPreparer。
AltDirBehavior为各种测试工件安装程序/推送程序定义替代目录行为的枚举

AndroidJUnitTest使用 android.support.test.runner.AndroidJUnitRunner 在给定设备上运行检测测试包的测试。
AoaTargetPreparer ITargetPreparer使用 Android Open Accessory (AOAv2) 协议执行一系列操作(例如点击和滑动)。
AppBuildInfo代表 Android 应用程序及其测试包的IBuildInfo
AppDeviceBuildInfo此类已弃用。直接使用IDeviceBuildInfo
应用程序设置安装 apk 及其测试的ITargetPreparer
AppVersionFetcher从设备获取应用程序版本字符串的实用程序类。
AppVersionFetcher.AppVersionInfo应用版本信息类型。
ArchModuleController模块控制器在与任何给定架构不匹配时不运行测试。
ArgsOptionParser从解析的命令行参数填充Option字段。
ArrayUtil数组的实用方法
ArtChrootPreparer为 ART 测试创建 chroot 目录。
ArtGTest
ArtRunTest运行 ART 运行测试的测试运行器。
ArtRunTest.AdbShellCommandException一个异常类,用于报告在执行 ADB shell 命令期间发生的错误。
ATestFileSystemLogSaver ATest 使用此 LogSaver 类将日志保存在特定路径中。
AtestRunner ITestSuite的实现
追踪收藏家在测试期间运行跟踪并收集结果并将它们记录到调用的IMetricCollector
AtraceRunMetricCollector从测试设备的给定目录下的所有测试目录中收集跟踪,记录测试目录并后处理测试目录下的跟踪文件并聚合指标。
自动记录收集器描述哪个收集器可以由线束自动处理的枚举。
自动记者定义来自 Tradefed 自动报告器的映射的类。
平均后处理器计算指标列表平均值的后处理器的实现。

背景设备动作根据需要在给定设备上重复运行命令,直到取消操作。
BaseDeviceMetricCollector IMetricCollector的基本实现,允许在onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map))上开始和停止收集。
BaseEmulatorPreparer用于启动本地模拟器的通用准备器。
BaseHostJUnit4Test用于运行主机 JUnit4 样式测试的基本测试类。
BaseLeveledLog输出ILeveledLogOutput的基本实现,允许根据名称或组件过滤某些标签。
基本模块控制器IModuleController的基本实现,应该用于检查模块是否应该运行。
BaseMultiTargetPreparer允许禁用对象的IMultiTargetPreparer的基本实现。
基本后处理器每个实现都应该扩展的基础IPostProcessor
BaseRetryDecision IRetryDecision的基本实现。
BaseStreamLogger <OS 扩展 OutputStream>将日志消息定向到输出流和标准输出的ILeveledLogOutput
BaseTargetPreparer ITargetPreparer的基本实现类,允许控制对象是否被禁用。
基本测试套件使用新套件系统运行兼容性测试套件的测试。
电池控制器允许控制设备的电池充电状态的实用程序类。
BatteryRechargeDeviceRecovery允许在设备的电池电量低于给定阈值时触发命令。
电池温度
BatteryUnavailableDeviceRecovery如果电池电量不可用,将触发配置的恢复检查器。
BeforeClassWithInfoBeforeClass类似的保证,但注解的方法必须需要一个TestInformation参数。
二进制状态枚举用于记录具有 IGNORE 无操作状态的 ON/OFF 状态。
蓝牙连接延迟收集器收集器会将预定义的 statsd 持续时间指标配置推送到设备并收集每个配置文件的蓝牙连接持续时间。
蓝牙连接状态收集器此收集器将收集 BluetoothConnectionStateChanged 指标并记录每个配置文件的连接状态数。
蓝牙连接成功率后处理器计算蓝牙配置文件成功率的后处理器的实现

使用“metric-key-match”在数值数组 Example [0, 1, 2, 3, 0, 1, 2, 3] 中指定包含蓝牙连接状态的指标。

蓝牙实用程序用于在设备上调用 BluetoothInstrumentation 的实用函数

设备端 BluetoothInstrumentation 代码可在 AOSP 中找到: frameworks/base/core/tests/bluetoothtests

引导构建提供程序从测试设备引导构建信息的IDeviceBuildProvider

这通常用于具有外部提供的构建的设备,即

BootstrapServiceFileResolverLoader使用服务加载工具加载解析器。
错误报告保存错误报告文件引用的对象,兼容平面错误报告和压缩错误报告 (bugreportz)。
错误报告收集器一个传递ITestInvocationListener ,它在发生可配置事件时收集错误报告,然后在收集每个错误报告后在其子项上调用ITestInvocationListener#testLog
BugreportCollector.Filter
BugreportCollector.Freq
BugreportCollector.Noun
BugreportCollector.Predicate描述何时捕获错误报告的完整谓词。
BugreportCollector.Relation
BugreportCollector.SubPredicate
BugreportzOnFailureCollector当测试用例失败时收集错误报告。
BugreportzOnTestCaseFailureCollector当运行中的测试用例失败时收集错误报告。
构建错误如果提供的构建无法运行,则抛出。
构建信息应与ITestDevice关联的IBuildInfo的通用实现。
构建信息键类持有与构建信息查询相关的枚举。
BuildInfoKey.BuildInfoFileKey枚举描述可以通过IBuildInfo.getFile(com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey)查询的所有已知文件类型。
构建信息记录器将构建信息元数据写入指定文件的ITargetPreparer
构建信息工具帮助操作IBuildInfo的 util 类
构建检索错误检索构建以进行测试时发生致命错误。
构建序列化版本包含所有IBuildInfo的当前序列化版本的类。
BuildTestsZipUtils Android 构建系统生成的测试 zip 相关操作的帮助类
群发邮件允许以下配置的电子邮件发件人实用程序:发送间隔、初始突发大小、收件人和邮件总数。
BundletoolUtil使用 bundletool 命令行在设备上安装 .apks 的实用程序类。
ByteArrayInputStreamSource
字节数组列表表示轻量级字节数组的类。
字节数组实用程序对字节数组进行操作的实用程序,例如,将字节转换为整数。

C

汽车模块控制器该控制器防止在非汽车设备上执行测试用例。
携带DNA错误内部RuntimeException通过 JUnit4 框架携带DeviceNotAvailableException
携带中断异常当触发测试阶段超时并且需要从测试执行线程到调用执行线程携带InterruptedException时抛出。
CdmaDeviceFlasher在带有 CDMA 无线电的物理 Android 设备上闪烁图像的类。
CecControllerTokenProvider消费电子控制 (CEC) 相关令牌的令牌提供商。
中央目录信息CentralDirectoryInfo 是一个包含 zip 文件中文件/文件夹信息的类。
CheckPairingPreparer一个CompanionAwarePreparer ,用于验证主设备和配套设备之间的 BT 绑定
CircularAtraceUtil一个 atrace 实用程序,主要用于在 Monkey 测试期间识别 ANR 的根本原因。
循环字节数组用于保存固定大小数组的数据结构,该数组用作循环缓冲区,并跟踪数组中所有值的总和。
ClangCodeCoverageCollector一个BaseDeviceMetricCollector ,它将从设备中提取 Clang 覆盖测量并将它们记录为测试工件。
ClassNotFoundConfigurationException找不到对象的类时的ConfigurationException
类路径扫描器查找类路径上的条目。
ClassPathScanner.ClassNameFilter过滤和转换 java 类名的IClassPathFilter
ClassPathScanner.ExternalClassNameFilter拒绝内部类的ClassNameFilter
ClassPathScanner.IClassPathFilter类路径入口路径的过滤器

仿效FileFilter

发条工具用于共享多设备逻辑的发条实用程序
CloseableTraceScope允许通过 try-with-resources 报告跟踪部分的作用域类
集群构建信息用于从 TFC 管道传输的构建的IBuildInfo类。
ClusterBuildProvider用于下载 TFC 测试资源的IBuildProvider
集群客户端用于与 TFC 后端交互的IClusterClient实现。
集群命令表示从 TF Cluster 获取的任务的类。
ClusterCommand.RequestType
集群命令状态命令在 TF 集群中的状态。
ClusterCommandConfigBuilder为集群命令构建配置文件的类。
集群命令事件封装要上传的集群命令事件的类。
ClusterCommandEvent.Builder
ClusterCommandEvent.Type
集群命令启动器一个IRemoteTest类,用于通过子进程 TF 从 TFC 启动命令。
集群命令调度器支持 TFC(Tradefed Cluster)的ICommandScheduler
集群命令状态表示来自 TF Cluster 的命令的状态和取消原因的类。
集群设备信息封装要上传的集群设备信息的类。
ClusterDeviceInfo.Builder
集群设备监视器向 Tradefed 集群服务报告结果的IDeviceMonitor实现。
ClusterEventUploader <T 扩展IClusterEvent > ClusterEventUploader 类,将IClusterEvent上传到 TFC。
集群主机事件封装要上传的集群主机事件的类。
ClusterHostEvent.Builder
ClusterHostEvent.HostEventType不同类型的主机事件的枚举。
集群主机工具TF Cluster 的静态 util 函数,用于获取全局配置实例、主机信息等。
ClusterLogSaver将测试输出上传到 TFC 的ILogSaver类。
ClusterLogSaver.FilePickingStrategy文件挑选策略。
集群选项
代码覆盖测试在给定设备上运行仪器测试包并生成代码覆盖率报告的测试。
收集字节输出接收器一个IShellOutputReceiver ,它将整个 shell 输出收集到一个byte[]中。
收集输出接收器一个IShellOutputReceiver ,它将整个 shell 输出收集到一个String中。
收集测试监听器将收集所有测试结果的ITestInvocationListener
收集器助手Helper 在几个地方需要做一些IMetricCollector操作。
命令文件解析器包含一组命令行的文件的解析器。
CommandFileParser.CommandLine
命令中断器允许中断 TradeFederation 命令或将其标记为不可中断的服务。
命令行BuildInfoBuilder实用程序旨在从命令行捕获通常的构建信息参数并从中创建IBuildInfo
命令选项ICommandOptions的实现。
CommandOptionsGetter返回给定调用的命令选项值的服务实现。
命令结果包含命令的结果。
CommandRunner另一个 TradeFederation 入口点,它将运行命令行参数中指定的命令,然后退出。
CommandRunner.ExitCode可能退出的错误代码。
命令调度程序用于在所有可用设备上运行 TradeFederation 命令的调度程序。
CommandScheduler.HostState主机不同状态的枚举
命令状态表示定时操作的状态。
命令状态处理程序帮助监控和更新调用状态的处理程序。
CommonLogRemoteFileUtil此实用程序允许避免跨不同远程设备表示的代码重复,用于公共文件的远程日志获取逻辑。
CommonLogRemoteFileUtil.KnownLogFileEntry远程设备的已知日志条目的表示。
伴随分配器负责分配和释放配套设备的基类

应该实现getCompanionDeviceSelectionOptions()来描述分配伴随设备所需的标准

CompanionAwarePreparer一个ITargetPreparer ,它封装了获取已分配的配套设备的逻辑。
同伴感知测试封装获取和检查配套设备样板的基本测试类

子类可以调用getCompanion()来检索分配的同伴。

CompanionDeviceTracker用于分配和释放配套设备的类
CompanionRunCommandTargetPreparer在分配的配套设备上运行指定命令的ITargetPreparer
CompanionTestAppInstallSetup一个ITargetPreparer ,它将IDeviceBuildInfo#getTestsDir()文件夹中的一个或多个应用程序安装到分配的配套设备上。
CompileBootImageWithSpeedTargetPreparer使用编译器过滤器“速度”重新编译引导类路径和系统服务器。
条件故障监视器监视调用中的任何失败。
ConditionPriorityBlockingQueue <T>具有ERROR(/PriorityBlockingQueue)类操作的线程安全类,可以检索与特定条件匹配的对象。
ConditionPriorityBlockingQueue.AlwaysMatch <T>匹配任何对象的ConditionPriorityBlockingQueue.IMatcher
ConditionPriorityBlockingQueue.IMatcher <T>用于确定元素是否匹配某种条件的接口。
配置完成器为我们的 TF 配置实现Completer
配置将加载的配置对象存储在映射中的具体IConfiguration实现。
配置定义保存配置、其关联对象及其选项的记录。
配置定义.ConfigObjectDef保存类名信息的对象及其具有的外观编号(例如,如果配置具有两次相同的对象,则第一个将具有第一个外观编号)。
配置描述符描述配置本身某些方面的配置对象。
ConfigurationDescriptor.LocalTestRunner用于指示本地测试运行器的枚举。
配置异常如果无法加载配置则抛出。
配置工厂用于创建IConfiguration的工厂。
ConfigurationFactory.ConfigLoader IConfigDefLoader的实现,它从一个根配置跟踪包含的配置,并在循环包含时引发异常。
ConfigurationFactory.ExceptionLoader
配置工具处理配置文件的实用程序函数。
ConfigurationXmlParserSettings一个接受 ConfigurationXmlParser 设置的简单类

要将设置传递给此类,别名是必需的。

配置YamlParser YAML 样式 Tradefed 配置的解析器
配置工具用于创建、交互和推送 statsd 配置文件的实用程序类。
安慰TradeFederation 主控制台为用户提供交互界面

目前支持的操作如

  • 添加一个命令来测试
  • 列出设备及其状态
  • 列出正在进行的调用
  • 列出队列中的命令
  • 将调用日志转储到文件/标准输出
  • 关闭
Console.ArgRunnable <T>带有可以接受参数的run方法的Runnable
Console.CaptureList List<List<String>>的便利类型
ConsoleReaderOutputStream可用于使System.out.print()与用户的LineReader unfinishedLine 配合使用的 OutputStream。
控制台结果报告器结果报告器将测试结果打印到控制台。
内容提供者处理程序抽象内容提供者交互并允许将设备端内容提供者用于不同操作的处理程序。
计数测试结果监听器TestStatus跟踪测试总数的TestResultListener
CountTestCasesCollector计算并报告给定IRemoteTest的测试用例数。
覆盖测量转发器将覆盖率测量从构建提供者转发到记录器的占位符测试。
覆盖选项Tradefed 对象持有覆盖选项。
CoverageOptions.Toolchain
CpuThrottlingWaiter一个ITargetPreparer等待,直到所有内核上的最大频率恢复到可用的最高级别
CreateAvdPreparer
创建用户准备者目标准备者,用于创建用户并在最后清理它。
当前调用一个跟踪并提供当前调用信息的类,该信息在调用中的任何位置都很有用。
CurrentInvocation.InvocationInfo我们将始终为调用填充一些特殊的命名键。
CurrentInvocation.IsolationGrade描述隔离级别

D

DebugHostLogOnFailureCollector发生测试用例失败时收集和记录主机端日志的收集器。
DefaultRemoteAndroidTestRunner扩展 ddmlib RemoteAndroidTestRunner为 Tradefed 用例设置一些默认值。
DefaultTestsZipInstaller测试 zip 安装程序的默认实现。
委托调用执行InvocationExecution将执行委托给另一个 Tradefed 二进制文件。
依赖解析器一种新型提供程序,允许获取测试的所有依赖项。
设备分配结果表示命令分配尝试的结果。
设备分配状态从 IDeviceManager 角度表示设备的分配状态
设备可用检查器检查以确保模块不会使设备处于离线状态。
设备基线检查器在每个模块之前设置设备基线设置。
设备基线设置器用于创建设备基线设置的抽象类。
设备电池电量检查器一个IRemoteTest ,用于检查最低电池电量,如果没有最低电量,则等待电池达到第二个充电阈值。
DeviceBatteryResourceMetricCollector此收集器收集设备电池指标。
设备构建描述符IBuildInfo的包装类,其中包含用于检索设备平台构建信息的辅助方法。
设备构建信息代表完整 Android 设备构建和(可选)其测试的IBuildInfo
DeviceBuildInfoBootStrapper用从设备读取的属性替换构建信息字段的ITargetPreparer

这对于使用从外部源生成的构建测试设备很有用(例如

DeviceBuildInfoInjectorITargetPreparer元数据插入DeviceBuildDescriptorIBuildInfo
设备清洁器测试后执行重新启动或格式化为清理操作,并可选择关闭屏幕
DeviceCleaner.CleanupAction
DeviceCleaner.PostCleanupAction
DeviceConcurrentUtil包含用于并发设备端命令执行的实用方法和类

使用ERROR(/ExecutorService)运行以ShellCommandCallable实现的命令,并使用ERROR(/#joinFuture(String,Future,long))ERROR(/ExecutorService)返回的ERROR(/Future)同步以执行命令。

DeviceConcurrentUtil.ShellCommandCallable <V>一个ERROR(/Callable) ,它包含在ITestDevice上执行 shell 命令的详细信息。
设备配置持有人将加载的设备配置对象存储在其属性中的具体IDeviceConfiguration实现。
设备描述符包含描述被测设备的信息的类。
设备断开异常当设备不再通过其传输类型可访问时抛出,例如,如果设备不再通过 USB 或 TCP/IP 连接可见
设备错误标识符来自设备错误和设备报告错误的错误标识符。
DeviceFailedToBootError如果设备在使用构建刷新后无法启动,则抛出此异常。
DeviceFeatureModuleController模块控制器在不支持某些功能时不运行测试。
设备文件报告器一个实用程序类,用于检查设备中的文件并将它们发送到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)如果找到)。
DeviceFlashPreparer在物理 Android 硬件上闪烁图像的ITargetPreparer
设备可折叠状态由“cmd device_state print-states”返回的设备可折叠状态的表示。
DeviceFolderBuildInfo一个IDeviceBuildInfo ,它还包含本地文件系统目录中包含的其他构建工件。
DeviceImageZipFlashingTargetPreparer一个目标准备器,它使用通过特定格式提供的设备图像来刷新设备。
DeviceInternetAccessibilityResourceMetricCollector收集器 ping google.com 以检查设备是否可以访问互联网。
DeviceJUnit4ClassRunner JUnit4 测试运行器,也适用IDeviceTest
DeviceJUnit4ClassRunner.LogAnnotation假注释旨在将日志带给记者。
DeviceJUnit4ClassRunner.MetricAnnotation虚假注释旨在将指标传递给记者。
DeviceJUnit4ClassRunner.TestLogData ExternalResourceTestRule的实现。
DeviceJUnit4ClassRunner.TestMetrics ExternalResourceTestRule的实现。
DeviceJUnit4ClassRunnerBuilder提供RunnerBuilderDeviceJUnit4ClassRunner ,专门用于为ERROR(LongevitySuite/android.host.test.longevity.LongevitySuite LongevitySuite)LongevityHostRunner提供跑步者。
设备管理GrpcServer GRPC 服务器允许从 Tradefed 保留设备。
装置经理
DeviceManager.FastbootDevice Fastboot 模式下的设备表示。
设备度量数据保存度量收集器收集的所有数据的对象。
设备监视器多路复用器将请求传播到多个IDeviceMonitor的代理类。
DeviceNotAvailableException当设备不再可用于测试时抛出。
DeviceOwnerTargetPreparer设置设备所有者组件的ITargetPreparer
DeviceParameterizedRunner JUnit4 风格的参数化运行器,用于主机端驱动的参数化测试。
设备属性设备端属性名称的通用常量定义
DeviceRecoveryModeUtil
设备发布报告器处理与父进程通信的设备释放报告器要释放的设备。
设备重置功能设备重置的服务器端实现。
设备复位处理程序通用处理设备重置的实用程序。
设备运行时异常当设备操作未产生预期结果时抛出。
设备选择选项设备选择标准的容器。
DeviceSelectionOptions.DeviceRequestedType支持的不同可能类型的占位符设备。
设备设置检查器检查在模块运行期间设备设置是否已更改。
设备设置一个ITargetPreparer ,它根据提供的Option配置设备进行测试。
设备状态监视器用于监视IDevice状态的助手类。
DeviceStorageAgeResourceMetricCollector从 logcat 解析存储年龄。
设备存储填充器目标准备者填满存储空间,以便有一些可用空间。
设备存储状态检查器检查设备是否有足够的磁盘空间用于给定的分区。
DeviceStringPusher目标准备者将字符串写入文件。
设备套件扩展 JUnit4 容器Suite ,以便为需要它的测试提供ITestDevice
设备测试用例提供IRemoteTestIDeviceTest服务的 Helper JUnit 测试用例。
设备测试结果发生DeviceNotAvailableException时将中止的TestResult特化
DeviceTestResult.RuntimeDeviceNotAvailableException
设备测试运行选项与通过 BaseHostJUnit4Test 运行设备测试相关的选项的构建器类。
设备测试套件提供IRemoteTestIDeviceTest服务的 Helper JUnit 测试套件。
设备不可用监视器此侦听器仅尝试捕获测试用例级别的 DNAE。
设备无响应异常DeviceNotAvailableException的一种特殊化,表示设备对 adb 可见,但无响应(即命令超时、无法启动等)
DeviceUpdateTargetPreparer一个抽象的ITargetPreparer ,它负责使用来自外部源的设备映像文件(而不是构建服务)更新设备的常见步骤。
DeviceWifiResourceMetricCollector收集器收集当前连接的 wifi 信号强度和链接速度指标。
DeviceWiper擦除用户数据的ITargetPreparer
有向图<V>有向未加权图实现。
禁用 SELinuxTargetPreparer禁用 SELinux(如果启用)的目标准备器。
DryRunKeyStore用于试运行的密钥库,其中始终正确替换和找到任何密钥库值。
DryRunner透明地干运行测试,而不是实际执行它们。
动态文件存根测试这是一个 tradefed 测试,用于测试 tradefed 能否正确解析动态文件。
动态远程文件解析器帮助解析远程文件路径的类。
DynamicRemoteFileResolver.FileResolverLoader加载IRemoteFileResolver的实现。
动态系统准备器一个ITargetPreparer ,它在使用动态系统更新的设备构建之上设置系统映像。

早期设备发布功能用于早期设备发布的功能服务器实现。
电子邮件发送电子邮件的助手类。
电子邮件主机健康代理从主机监视器报告发送电子邮件的IHostHealthAgent实现
EmmaXml 常量解析 emma xml 报告时使用的常量。
EmulatorMemoryCpuCapturer
EndCentralDirectoryInfo EndCentralDirectoryInfo 是一个包含 zip 文件整体信息的类。
强制SeLinuxChecker确保 Selinux 状态的状态检查器。
擦除用户数据准备器擦除设备上的用户数据的ITargetPreparer
错误标识符此接口描述特定错误及其属性。
错误存储工具用于处理错误以与公共存储保持一致的辅助类。
事件记录器监听器将接收到的所有事件记录到文件中的侦听器
异常ThrowingRunnerWrapper
ExecutableBaseTest可执行样式测试的基类。
可执行主机测试在主机上运行的可执行文件的测试运行程序。
可执行目标测试在目标上运行的可执行文件的测试运行程序。
执行文件在执行测试或调用期间生成的文件依赖项,需要携带以进行测试。
ExecutionFiles.FilesKey枚举地图的已知标准键。
执行属性在执行测试或调用期间生成的属性。
现有的BuildProvider返回已构建的IBuildInfoIBuildProvider
扩展文件标准文件的扩展,用于携带构建相关的元数据。

F

故障描述描述 Trade Federation 中的失败信息的类。
假测试一种假测试,其目的是使生成可重复的测试结果变得容易。
FakeTestsZip 文件夹一个测试夹具,它根据内容列表创建一个虚假的解压缩测试文件夹。
FakeTestsZipFolder.ItemType
FastbootCommandPreparer触发 fastboot 并发送 fastboot 命令的目标准备器。
FastbootDeviceFlasher一个依赖 fastboot 在物理 Android 硬件上刷新图像的类。
快速启动助手用于快速启动操作的帮助类。
FastbootUpdateBootstrapPreparer一个ITargetPreparer将指定文件(引导加载程序、无线电、设备映像 zip)暂存到IDeviceBuildInfo以使用FastbootDeviceFlasher刷新设备,然后将启动后设备属性注入构建信息以用于结果报告目的。
致命主机错误指示在运行 TradeFederation 的主机上发生致命的不可恢复错误的异常,应关闭 TradeFederation 实例。
FeatureFlagTargetPreparer更新 DeviceConfig(由远程服务调整的功能标志)。
文件下载缓存维护下载文件的本地文件系统 LRU 缓存的帮助程序类。
文件下载缓存工厂创建FileDownloadCache的工厂
FileDownloadCacheWrapper在实现IFileDownloader接口的同时提供FileDownloadCache设施的包装类。
文件空闲监视器监视文件并在它们空闲时执行回调(即
文件输入流源接受输入文件的InputStreamSource
文件记录器将日志消息定向到文件和标准输出的ILeveledLogOutput
FileProtoResultReporterTestRecord转储到文件中的 Proto Reporter。
FilePullerDeviceMetricCollector一个BaseDeviceMetricCollector ,用于侦听来自设备的指标键并将它们作为文件从设备中提取。
FilePullerLogCollector设备端上报文件的记录器。
文件系统日志保护程序将日志保存到文件系统。
文件工具文件相关操作的辅助类
FileUtil.HarnessIOException利用异常有助于携带文件问题。
FileUtil.LowDiskSpaceException如果可用磁盘空间低于最小阈值则抛出。
过滤结果转发器ResultForwarder的变体,仅允许报告TestDescription的允许列表。
FixedByteArrayOutputStream仅保留最大数据量的内存中ERROR(/OutputStream)
闪烁法一个枚举,用于描述用于闪存被测设备的方法
闪烁资源解析器解析出闪存设备所需的辅助图像文件的所需版本的类。
FlashingResourcesParser.AndroidInfo Map&lt;String, MultiMap&lt;String, String&gt;&gt;的 typedef .
FlashingResourcesParser.Constraint过滤接口,旨在允许FlashingResourcesParser忽略它可能使用的某些资源
FlashingResourceUtil此实用程序有助于设置适当版本的工件,以便可以通过DeviceFlashPreparer
FoldableExpandingHandler一个IModuleParameterHandler为每个非主要可折叠配置扩展为更多。
可折叠处理程序通用可折叠处理程序,可以采用可折叠参数来创建专用模块。
FoldableModePreparer可以切换设备可折叠状态的目标准备器。
文件夹BuildInfo IFolderBuildInfo的具体实现。
文件夹保护程序一个ITargetPreparer ,它从设备中提取目录、压缩并将其保存到日志记录后端。
格式化生成器报告器允许以特定格式生成报告的报告器。
自由设备状态
FuseUtil FUSE 操作的辅助类。

G

GceAvdInfo用于保存给定 GCE AVD 实例的相关数据的结构。
GceAvdInfo.GceStatus
GceAvdInfo.LogFileEntry
管理器管理 GCE 调用以启动/停止并从 GCE 收集日志的助手。
GceRemoteCmdFormatter用于格式化命令以到达远程 gce 设备的实用程序类。
GceRemoteCmdFormatter.ScpMode SCP 可用于推送或拉取文件,具体取决于 args 的结构。
GceSshTunnelMonitor Gce ssh 隧道的线程监视器。
GcovCodeCoverageCollector一个BaseDeviceMetricCollector ,它将从设备中提取 gcov 覆盖率测量并将它们记录为测试工件。
GCSBucketUtil文件管理器,用于从 Google Cloud Storage (GCS) 下载和上传文件。
GCSBucketUtil.GCSFileMetadata GCS 中文件信息的简单包装器。
GCS通用下载和上传等 Gcs 操作的基类。
GCSConfigurationFactory ConfigurationFactory从 Google Cloud Storage 加载配置。
GCSConfigurationFactory.GCSConfigLoader ConfigurationFactory.ConfigLoader的扩展,从 GCS 加载配置,从一个根配置跟踪包含的配置,并在循环包含时引发异常。
GCS配置服务器配置服务器从 Google Cloud Storage (GCS) 加载配置。
GCSDownloaderHelper GCS 存储桶的下载器,负责缓存和解析全局配置。
GCS文件下载器文件下载器从谷歌云存储(GCS)下载文件。
GCS 文件上传器文件上传器将文件数据上传到谷歌云存储(GCS)。
GCSHostResourceManager从 GCS(谷歌云存储)下载主机资源。
GcsRemoteFileResolver IRemoteFileResolver的实现,允许从 GCS 存储桶下载。
GenericLogcatEventParser <LogcatEventType>为事件解析 logcat 输入。
GenericLogcatEventParser.LogcatEvent Struct 保存一个带有事件类型的 logcat 事件并触发 logcat 消息
GetPreviousPassedHelper帮助获取先前通过的测试过滤器。
GkiDeviceFlashPreparer使用 android 通用内核通用映像刷新设备的目标准备器。
全局配置将加载的配置对象存储在地图中的IGlobalConfiguration实现
全局过滤器返回给定调用的过滤器的服务实现。
全局测试过滤器应用于调用的过滤器选项。
GoogleApiClientUtil用于创建 Google API 客户端的实用程序。
谷歌基准结果解析器解析从 shell 运行的 Google Benchmark 的结果,并返回包含所有结果的地图。
谷歌基准测试在给定设备上运行 Google 基准测试包的测试。
GranularRetriableTestWrapper包装类在IRemoteTest上工作,以在测试用例级别细化 IRemoteTest。
GranularRetriableTestWrapper.StartEndCollector类助手来捕捉丢失的运行开始和结束。
GsiDeviceFlashPreparer使用 android 通用系统映像刷新设备的目标准备器。
测试在给定设备上运行本机测试包的测试。
GTestBase gTest 的基类
GTestListTestParser带有“--gtest_list_tests”参数的 gtest 试运行模式的结果解析器。
GTestResultParser使用从 shell 运行的 GTest 解析本机测试的“原始输出模式”结果,并将结果通知 ITestInvocationListener。
GTestXmlResultParser使用从 shell 运行的 GTest 解析本机测试的“xml 输出模式”结果,并将结果通知 ITestRunListener。

H

线束异常线束内引发的异常的基本异常类。
HarnessRuntimeException
堆主机监视器AbstractHostMonitor实现监视主机上的堆内存并将其定期记录到历史日志中。
HelloWorldMultiTargetPreparer IMultiTargetPreparer的示例实现。
历史记录器TF History Logger,只包含一些特定事件的特殊日志。
主机GTest运行本机测试包的测试。
主机度量此类表示要报告的主机指标样本。
主机选项主机选项持有者类。
HostStatsdMetricCollector使用IMetricCollector实用命令从主机端收集 statsd 指标的 IMetricCollector。
主机测试基于 JUnit 主机的测试的测试运行器。
HostUtils实现一些有用的实用方法来运行主机测试。
HprofAllocSiteParser帮助类来解析来自 hprof 报告的分配站点部分的信息。
HttpHelper包含用于发出 http 请求的辅助方法
HttpHelper.RequestRunnable可运行以使用IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult)发出请求。
HttpMultipartPost用于发出多部分 HTTP 发布请求的帮助程序类。
HttpRemoteFileResolver IRemoteFileResolver的实现,允许通过 http 下载远程文件
HttpsRemoteFileResolver IRemoteFileResolver的实现,允许通过 https 下载远程文件

亚比表示被测 ABI 的接口。
IAbi接收器需要被测 ABI 的测试。
IAndroidDebugBridge此包中使用的AndroidDebugBridge方法的接口定义。
IAppBuildInfo此接口已弃用。直接使用IBuildInfo
IAutoRetriableTest未实现ITestFilterReceiver但仍希望支持自动重试的IRemoteTest接口。
电池信息定义与设备电池交互的接口。
IBatteryInfo.BatteryState描述当前的电池充电状态。
构建信息保存有关正在测试的构建的信息。
IBuildInfo.BuildInfoProperties IBuildInfo可能需要调整一些处理它的一些属性。
IBuildProvider负责提供有关被测版本的信息。
构建接收器需要参考被测构建的测试。
集群客户端用于与 TFC 后端交互的接口。
集群事件任何要上传到 TFC 的集群事件的接口。
IClusterEventUploader <T 扩展IClusterEvent > ClusterEventUploader 的接口
集群选项获取集群相关选项的界面。
指令选项命令执行选项的容器。
ICommandScheduler用于运行 TradeFederation 命令的调度程序。
ICommandScheduler.IScheduledInvocationListener调用完成时调用事件的侦听器。
压缩策略表示可以在运行时选择的压缩算法的接口。
IConfigOptionValueTransformer用于操作配置选项值的接口
IConfigurableVirtualDevice提供有关可能预配置的虚拟设备信息(主机 ip、主机用户、端口偏移量等)的信息的接口。
配置TradeFederation 调用的配置信息。
配置工厂用于创建IConfiguration的工厂
配置接收器表示接受IConfiguration的对象的简单接口。
配置服务器配置服务器的接口。
证书工厂凭据工厂创建 oauth2 Credential的接口。
IDefaultObjectLoader加载默认对象的接口,这些对象应该是我们 YAML 配置的一部分。
IDefaultObjectLoader.LoaderConfiguration加载配置对象将信息传递给加载程序。
IDeviceBuildInfo A IBuildInfo that represents a complete Android device build and (optionally) its tests.
IDeviceBuildProvider A IBuildProvider that uses information from a ITestDevice to retrieve a build.
IDeviceConfiguration Device Configuration Holder Interface.
IDeviceFlasher Flashes a device image on a device.
IDeviceFlasher.UserDataFlashOption Enum of options for handling the userdata image
IDeviceManager Interface for managing the set of available devices for testing.
IDeviceManager.IFastbootListener A listener for fastboot state changes.
IDeviceMonitor Interface for monitoring state of devices.
IDeviceMonitor.DeviceLister A Runnable -like class that should return the known devices and their states.
IDeviceRecovery Interface for recovering a device that has gone offline.
IDeviceSelection Interface for device selection criteria.
IDeviceStateMonitor Provides facilities for monitoring the state of a IDevice .
IDeviceTest Interface for object that needs a reference to a ITestDevice .
IDisableable描述可以禁用的 Tradefed 对象的接口。
IEmail Interface for sending email.
IEmail.Message Container for email message data.
IFileDownloader Interface for downloading a remote file.
IFileEntry Interface definition that provides simpler, mockable contract to FileEntry methods.
IFileResolverLoader Loads implementations of IRemoteFileResolver .
IFileResolverLoader.ResolverLoadingException Exception thrown if a resolver cannot be loaded or initialized.
IFlashingResourcesParser Interface for providing required versions of auxiliary image files needed to flash a device.
IFlashingResourcesRetriever Interface for retrieving auxiliary image files needed to flash a device.
IFolderBuildInfo A simple abstract IBuildInfo whose build artifacts are containing in a local filesystem directory.
IFormatterGenerator Interface describing a formatter for SuiteResultHolder .
IGlobalConfiguration A class to encompass global configuration information for a single Trade Federation instance (encompassing any number of invocations of actual configurations).
IHarnessException Description of the harness exception interface that will be implemented by harness exceptions.
IHostCleaner Cleans up the host after the test run has finished.
IHostHealthAgent An interface to emit host or device metrics.
IHostMonitor Interface to dispatch host data
IHostMonitor.HostDataPoint Generic class for data to be reported.
IHostMonitor.HostMetricType
IHostOptions Host options holder interface.
IHostOptions.PermitLimitType Enum describing the possible permit limiters
IHostResourceManager Interface to manager host resource.
IHttpHelper Helper methods for performing http requests.
IHttpHelper.DataSizeException
IInvocationContext Holds information about the Invocation for the tests to access if needed.
IInvocationContext.TimingEvent
IInvocationContextReceiver A test that needs reference to the context of the invocation.
IInvocationExecution Interface describing the actions that will be done as part of an invocation.
IKeyStoreClient Interface to access a key store for password or sensitive data.
IKeyStoreFactory Factory for creating IKeyStoreClient .
实验室准备者实验室准备者的标记界面

请参阅ITargetPreparer以了解这些接口的用途说明。

ILeveledLogOutput Classes which implement this interface provides methods that deal with outputting log messages.
ILogcatReceiver A class that provides the output of a device's logcat as an InputStreamSource .
ILogRegistry An interface for a ILogOutput singleton logger that multiplexes and manages different loggers.
ILogRegistry.EventType Events that are useful to be logged
ILogSaver Classes which implement this interface provide methods for storing logs to a central location.
ILogSaverListener Allows for ITestInvocationListener s to listen for when log files are saved.
IManagedTestDevice A ITestDevice whose lifecycle is managed.
IManagedTestDevice.DeviceEventResponse Container for a response to a IManagedTestDevice#handleAllocationEvent(DeviceEvent) call
IManagedTestDeviceFactory Creator interface for IManagedTestDevice s
IMetricCollector该接口将在报告测试结果时添加为装饰器,以收集匹配的指标。
IMetricCollectorReceiver如果需要获取IMetricCollector列表以进行测试运行,则IRemoteTest实现的接口。
IMoblyYamlResultHandler Interface of mobly yaml result handler.
IMoblyYamlResultHandler.ITestResult Interface of mobly yaml result
IModuleController Interface for controlling if a module should be executed or not.
IModuleController.RunStrategy Enum describing how the module should be executed.
IModuleParameterHandler The interface for parameters of suites modules.
IMultiDeviceRecovery Interface for recovering multiple offline devices.
IMultiDeviceTest此接口已弃用。 This interface is kept temporarily for compatibility but is not actually used anymore. Please do not implement it.
IMul​​tiTargetPreparer一起为多个设备准备测试环境。
INativeDevice Provides an reliable and slightly higher level API to a ddmlib IDevice .
INativeDeviceTest Interface for object that needs a reference to a INativeDevice .
InfraErrorIdentifier Error Identifiers from Trade Federation infra, and dependent infra (like Build infra).
InputStreamSource This interface basically wraps an ERROR(/InputStream) to make it clonable.
InstallAllTestZipAppsSetup将所有应用程序安装在测试 zip 中的ITargetPreparer
安装 ApexModuleTargetPreparer
安装ApkSetup安装一个或多个位于文件系统上的 apk 的ITargetPreparer
安装BuildEnvApkSetup从 Android 平台构建环境安装一个或多个测试 apk 的ITargetPreparer
InstalledInstrumentationsTest Runs all instrumentation found on current device.
InstantAppHandler Handler for ModuleParameters#INSTANT_APP .
InstrumentationPreparer运行检测的ITargetPreparer
InstrumentationTest A Test that runs an instrumentation test package on given device.
InvocationContext Generic implementation of a IInvocationContext .
InvocationExecution Class that describes all the invocation steps: build download, target_prep, run tests, clean up.
InvocationLocal <T> This class provides invocation-scope variables.
InvocationMetricLogger A utility class for an invocation to log some metrics.
InvocationMetricLogger.InvocationGroupMetricKey Grouping allows to log several groups under a same key.
InvocationMetricLogger.InvocationMetricKey Some special named key that we will always populate for the invocation.
InvocationStatus A class to store invocation status.
InvocationStatus A helper enum to represent the invocation status
InvocationSummaryHelper Helper class for gathering and reporting TestSummary for set of listeners
InvocationToJUnitResultForwarder A class that listens to ITestInvocationListener events and forwards them to a TestListener .
后处理器后处理器是一个 Trade Federation 对象,旨在允许在测试之后和结果报告之前处理指标和日志。
IRemoteFeature Interface describing a feature in Tradefed that can be executed based on the request.
IRemoteFileResolver Interface for objects that can resolve a remote file into a local one.
IRemoteFileResolver.RemoteFileResolverArgs The args passed to the resolvers
IRemoteFileResolver.ResolvedFile Class holding information about the resolved file and some metadata.
IRemoteScheduledListenersFeature Extension of IRemoteFeature to support passing in IScheduledInvocationListener s.
IRemoteTest A test that reports results directly to a ITestInvocationListener .
IReportNotExecuted In case of an incomplete execution, IRemoteTest that implements this interface may report their non-executed tests for improved reporting.
IRescheduler Interface for rescheduling a config for future execution.
IResourceMetricCollector The interface for user to implement customized resource collectors.
IRestApiHelper A helper interface for performing REST API calls.
IResumableTest此接口已弃用。 No need for this anymore
IRetryDecision Interface driving the retry decision and applying the filter on the class for more targeted retry.
IRuntimeHintProvider
IRunUtil Interface for running timed operations and system commands.
IRunUtil.EnvPriority Enum that defines whether setting or unsetting a particular env.
IRunUtil.IRunnableResult An interface for asynchronously executing an operation that returns a boolean status.
ISandbox Interface defining a sandbox that can be used to run an invocation.
ISandboxFactory Factory for creating ISandbox .
ISetOptionReceiver Implementation of this interface should have an Option with a "set-option" name linked to HostTest#SET_OPTION_NAME .
IShardableListener A ITestInvocationListener that can be sharded.
IShardableTest A IRemoteTest that can be split into separately executable sub-tests.
IShardHelper Interface of an object that describes the sharding strategy to adopt for a configuration.
IsolatedHostTest Implements a TradeFed runner that uses a subprocess to execute the tests in a low-dependency environment instead of executing them on the main process.
ISupportGranularResults Interface specifying whether a ITestInvocationListener supports receiving the granular results or not.
ISystemStatusChecker An checker that performs checks on system status and returns a boolean to indicate if the system is in an expected state.
ISystemStatusCheckerReceiver A IRemoteTest that requires access to the ISystemStatusChecker from the configuration.
ITargetCleaner此接口已弃用。 tearDown 已移至基本 ITargetPreparer 接口。
ITargetPreparer为测试运行准备测试环境。
ITerribleFailureHandler An interface to handle terrible failures from LogUtil.CLog.wtf(String, Throwable)
ITestAnnotationFilterReceiver A runner that can filter which tests to run based on annotations.
ITestCollector Provides support for test collection; when set, test runner must perform a dry run to collect test cases without actually executing them.
ITestDevice Provides an reliable and slightly higher level API to a ddmlib IDevice .
ITestDevice.ApexInfo A simple struct class to store information about a single APEX
ITestDevice.MountPointInfo A simple struct class to store information about a single mountpoint
ITestDevice.RecoveryMode
ITestFileFilterReceiver A runner that can receive a file specifying which tests to run and/or not to run.
ITestFilterReceiver A runner that can filter which tests to run.
ITestInformationReceiver Interface to receive the TestInformation for some classes.
ITestInvocation Handles one TradeFederation test invocation.
ITestInvocation.ExitInformation Represents some exit information for an invocation.
ITestInvocationListener Listener for test results from the test invocation.
ITestLifeCycleReceiver Receives event notifications during instrumentation test runs.
ITestLogger An entity that can perform logging of data streams of various types.
ITestLoggerReceiver An entity that can be injected with an ITestLogger instance so that it can be used for logging purposes.
ITestsPool Interface describing a pool of tests that we can access and run
ITestSuite Abstract class used to run Test Suite.
ITestSuite.MultiDeviceModuleStrategy
ITestSuiteResultLoader Interface describing an helper to load previous results in a way that can be re-run.
ITestSummaryListener Interface that allows ITestInvocationListener to exchange some limited information via summaries.
ITestsZipInstaller Installs tests from a tests zip file (as outputted by the build system) on a device.
ITokenProvider Interface describing an object that can provide the tokens of a particular device.
ITokenRequest Interface a IRemoteTest can implement to expose the fact that it requires a device with a special token.

J

JarHostTest Test runner for host-side JUnit tests.
JarHostTest.HostTestListener Wrapper listener that forwards all events except testRunStarted() and testRunEnded() to the embedded listener.
JavaCodeCoverageCollector一个BaseDeviceMetricCollector ,它将从设备中提取 Java 覆盖率测量并将它们记录为测试工件。
JavaCodeCoverageFlusher A utility class that resets and forces a flush of Java code coverage measurements from processes running on the device.
JSONFileKeyStoreClient A sample implementation where a local JSON file acts a key store.
JSONFileKeyStoreFactory Implementation of a JSON KeyStore Factory, which provides a JSONFileKeyStoreClient for accessing a JSON Key Store File.
JsonHttpTestResultReporter A result reporter that encode test metrics results and branch, device info into JSON and POST into an HTTP service endpoint
JUnit4ResultForwarder Result forwarder from JUnit4 Runner.
JUnit4TestFilter Helper Class that provides the filtering for JUnit4 runner by extending the Filter .
JUnitRunUtil A helper class for directing a IRemoteTest#run(TestInformation, ITestInvocationListener) call to a Test#run(TestResult) call.
JUnitToInvocationResultForwarder A class that listens to TestListener events and forwards them to an ITestInvocationListener .
JUnitXmlParser Parser that extracts test result data from JUnit results stored in ant's XMLJUnitResultFormatter and forwards it to a ITestInvocationListener.

K

KeyguardControllerState A container for the keyguard states.
KeyguardStatusChecker Checks the keyguard status after module execution.
KeyStoreException Thrown when a fatal key store error happens.
KillExistingEmulatorPreparer关闭正在运行的模拟器的ITargetPreparer
KnownFailurePreparer目标准备者跳过重试已知失败。

L

LabResourceDeviceMonitor The lab resource monitor which initializes/manages the gRPC server for LabResourceService.
LargeOutputReceiver A class designed to help run long running commands collect output.
LastShardDetector When running local sharding, sometimes we only want to execute some actions when the last shard reaches invocationEnded(long) .
LaunchCvdHelper Utility helper to control Launch_cvd in the Cuttlefish VM.
LeakedThreadStatusChecker Status checker to ensure a module does not leak a running Thread.
LegacySubprocessResultsReporter A frozen implementation of the subprocess results reporter which should remain compatible with earlier versions of TF/CTS (eg 8+), despite changes in its superclass.
ListInstrumentationParser A IShellOutputReceiver that parses the output of a 'pm list instrumentation' query
ListInstrumentationParser.InstrumentationTarget
LocalAndroidVirtualDevice The class for local virtual devices running on TradeFed host.
LocalAppBuildProvider A IBuildProvider that constructs a IBuildInfo based on a provided local path
LocalDeveloper Detects and returns whether this is a local developer running Tradefed.
LocalDeviceBuildProvider A IBuildProvider that constructs a IDeviceBuildInfo based on a provided filesystem directory path.
本地模拟器启动从 android 构建环境本地启动模拟器的 TargetPreparer。
LocalEmulatorSnapshot TargetPreparer 用于从 android 构建/开发环境生成干净的模拟器快照
LocalFileHeader LocalFileHeader is a class containing the information of a file/folder inside a zip file.
LocalFileResolver Implementation of IRemoteFileResolver that allows linking local files
LocalFolderBuildProvider A IBuildProvider that constructs a IFolderBuildInfo based on a provided local path
LocalHostResourceManager Manager host resource.
LocalPool Implementation of a pool of local tests
LocalRunInstructionBuilder Utility to compile the instruction to run test locally.
LockSettingsBaselineSetter A setter to remove screen lock settings.
LogcatCrashResultForwarder Special listener: on failures (instrumentation process crashing) it will attempt to extract from the logcat the crash and adds it to the failure message associated with the test.
LogcatEventParser
LogcatEventType Event types for LogcatEventParser .
LogcatOnFailureCollector当测试用例失败时将捕获并记录 logcat 的收集器。
LogcatReceiver Class that collects logcat in background.
LogcatTimingMetricCollector一种度量收集器,通过使用给定的正则表达式模式从 logcat 行解析事件的开始和结束信号,在一个或多个重复测试期间从 logcat 收集时间信息(例如用户切换时间)。
LogDataType Represents the data type of log data.
LogFile Class to hold the metadata for a saved log file.
LogFileSaver A helper for ITestInvocationListener 's that will save log data to a file
LogReceiver
LogRegistry A ILogRegistry implementation that multiplexes and manages different loggers, using the appropriate one based on the ThreadGroup of the thread making the call.
LogSaverResultForwarder A ResultForwarder for saving logs with the global file saver.
LogUtil A logging utility class.
LogUtil.CLog A shim class for Log that automatically uses the simple classname of the caller as the log tag
LongevityHostRunner A JUnit4-based Runner that composes tests run with DeviceJUnit4ClassRunner into a ERROR(LongevitySuite/android.host.test.longevity.LongevitySuite LongevitySuite) , which runs tests repeatedly to induce stress and randomness.

M

MainlineModuleHandler A simple handler class for Mainline Modules that creates a InstallApexModuleTargetPreparer and injects the dynamic link into it based on the given mainline modules to automatically retrieve those modules.
MainlineTestModuleController Base class for a module controller to run tests based on the preloaded mainline modules on the device under test.
ManagedRemoteDevice A device running inside a virtual machine that we manage remotely via a Tradefed instance inside the VM.
ManagedTestDeviceFactory Factory to create the different kind of devices that can be monitored by Tf
MergedZipEntryCollection Merge individual zip entries in a large zip file into blocks to minimize the download attempts.
MergeMultiBuildTargetPreparer一个IMultiTargetPreparer ,它允许通过命名它们并将文件密钥从一个构建传递到另一个构建,以复制到另一个构建。
MergeStrategy Describes how the results should be aggregated when multiple attempts are present.
度量文件后处理器用于上传在测试和运行级别收集的指标日志文件。
公制选项使用@Test注释的测试方法的注释,或者如果注释是TestDescription的注释列表的一部分,允许指定一些额外的参数,这些参数用于:调整收集器的行为,过滤一些方法。
MetricsXMLResultReporter MetricsXMLResultReporter writes test metrics and run metrics to an XML file in a folder specified by metrics-folder parameter at the invocationEnded phase of the test.
MetricTestCase Extension of TestCase that allows to log metrics when running as part of TradeFed.
MetricTestCase.LogHolder Structure to hold a log file to be reported.
MetricUtil Utility class for pulling metrics from pushed statsd configurations.
MetricUtility Contains common utility methods for storing the test metrics, aggregating the metrics in similar tests and writing the metrics to a file.
MinApiLevelModuleController Base class for a module controller to not run tests when it below a specified API Level.
MinSdkModuleController Base class for a module controller to not run tests on versions below a specified SDK version number.
MixImageZipPreparer一个IMultiTargetPreparer ,它在设备构建中混合系统构建的图像。
MoblyBinaryHostTest Host test meant to run a mobly python binary file from the Android Build system (Soong)
MoblyYamlResultControllerInfoHandler Mobly yaml result 'Controller Info' element handler.
MoblyYamlResultControllerInfoHandler.ControllerInfo
MoblyYamlResultControllerInfoHandler.ControllerInfo.Builder
MoblyYamlResultHandlerFactory Mobly yaml result handler factory which generates appropriate handler based on result type.
MoblyYamlResultHandlerFactory.InvalidResultTypeException
MoblyYamlResultHandlerFactory.Type
MoblyYamlResultParser Mobly yaml test results parser.
MoblyYamlResultRecordHandler Mobly yaml result 'Record' element handler.
MoblyYamlResultRecordHandler.Record
MoblyYamlResultRecordHandler.Record.Builder
MoblyYamlResultRecordHandler.RecordResult
MoblyYamlResultSummaryHandler Mobly yaml result 'Summary' element handler.
MoblyYamlResultSummaryHandler.Summary
MoblyYamlResultSummaryHandler.Summary.Builder
MoblyYamlResultTestNameListHandler Mobly yaml result 'Test Name List' element handler.
MoblyYamlResultTestNameListHandler.TestNameList
MoblyYamlResultTestNameListHandler.TestNameList.Builder
MoblyYamlResultUserDataHandler Mobly yaml result 'User Data' element handler.
MoblyYamlResultUserDataHandler.UserData
MoblyYamlResultUserDataHandler.UserData.Builder
ModuleDefinition Container for the test run configuration.
ModuleListener Listener attached to each IRemoteTest of each module in order to collect the list of results.
模块LogcatCollector logcat 收集器的版本,但用于模块。
ModuleMerger Helper class for operation related to merging ITestSuite and ModuleDefinition after a split.
ModuleOemTargetPreparer
ModuleParameters Special values associated with the suite "parameter" keys in the metadata of each module.
ModuleParametersHelper Helper to get the IModuleParameterHandler associated with the parameter.
ModulePusher
ModulePusher.ModulePushError Fatal error during Mainline module push.
ModuleSplitter Helper to split a list of modules represented by IConfiguration into a list of execution units represented by ModuleDefinition .
MultiFailureDescription Collect multiple FailureDescription in one holder.
MultiMap <K, V> A ERROR(/Map) that supports multiple values per key.

N

NameMangleListener A proxy listener to translate test method, class, and package names as results are reported.
NativeBenchmarkTest A Test that runs a native benchmark test executable on given device.
NativeBenchmarkTestParser A IShellOutputReceiver that parses the benchmark test data output, collecting metrics on average time per operation.
NativeBridgeModuleController A module controller to check if a device support native bridge.
NativeCodeCoverageFlusher A utility class that clears native coverage measurements and forces a flush of native coverage data from processes on the device.
NativeDevice Default implementation of a ITestDevice Non-full stack android devices.
NativeDevice.AdbAction A DeviceAction for running a OS 'adb ....' command.
NativeDevice.AdbShellAction
NativeDevice.RebootDeviceAction DeviceAction for rebooting a device.
NativeDevice.RebootMode A mode of a reboot.
NativeDeviceStateMonitor Helper class for monitoring the state of a IDevice with no framework support.
NativeLeakCollector运行“ ITargetPreparer meminfo --unreachable -a”以识别每个进程当前持有的无法访问的本机内存的 ITargetPreparer。
NativeStressTest A Test that runs a native stress test executable on given device.
NativeStressTestParser A IShellOutputReceiver that parses the stress test data output, collecting metrics on number of iterations complete and average time per iteration.
NegativeHandler Handler that specify that nothing should be done and the parameter should not create any extra module.
NestedDeviceStateMonitor Device state monitor that executes extra checks on nested device to accommodate the specifics of the virtualized environment.
NestedRemoteDevice Representation of the device running inside a remote Cuttlefish VM.
NetworkNotAvailableException Thrown when a device is not able to connect to network for testing.
NoApkTestSkipper如果没有用于测试的 apk,则允许完全跳过调用(准备和测试)的特殊准备器。
NoDeviceException Thrown when there's no device to execute a given command.
NoisyDryRunTest Run noisy dry run on a command file.
NoOpConfigOptionValueTransformer An no-op IConfigOptionValueTransformer
NotMultiAbiHandler Special handler that notify the SuiteModuleLoader that the secondary abi should not create a module.
NullDevice A placeholder IDevice used by DeviceManager to allocate when IDeviceSelection#nullDeviceRequested() is true

O

OpenObjectLoader Loader for the default objects available in AOSP.
Option Annotates a field as representing a IConfiguration option.
Option.Importance
OptionClass Annotates a class as representing a IConfiguration object.
OptionCopier A helper class that can copy Option field values with same names from one object to another.
OptionDef Holds the details of an Option .
OptionFetcher Helper to get the test options from the parent process.
OptionNotAllowedException Specific ConfigurationException when an option is not allowed to be passed in the command line.
OptionSetter Populates Option fields.
OptionSetter.OptionFieldsForName Container for the list of option fields with given name.
OptionUpdateRule Controls the behavior when an option is specified multiple times.
OtaDeviceBuildInfo A IDeviceBuildInfo used for over-the-air update testing.
OtatoolsBuildInfo An IBuildInfo that contains otatools artifacts.
OtaZipfileBuildProvider Provides a IBuildInfo based on a local OTA zip file.
OxygenClient A class that manages the use of Oxygen client binary to lease or release Oxygen device.
OxygenUtil Utility to interact with Oxygen service.

P

PackageInfo Container for an application's package info parsed from device.
PackageInstalledModuleController Module controller to not run tests when the device has not got the given packages installed.
Pair <A, B> Define our own Pair class which contains two objects.
配对MultiTargetPreparer多目标准备器有助于在两个设备之间进行蓝牙配对(和连接)。
ParallelDeviceExecutor <V> Wrapper of ERROR(/ExecutorService) to execute a function in parallel.
ParentSandboxInvocationExecution Version of InvocationExecution for the parent invocation special actions when running a sandbox.
ParentShardReplicate Replicate a setup for one device to all other devices that will be part of sharding.
PassingTestFileReporter A ITestInvocationListener that saves the list of passing test cases to a test file
完美通用后处理器一个后处理器,它通过递归地扩展原始消息和具有字符串值的字段,直到遇到具有数值的字段,将文本/二进制度量 perfetto 原型文件处理为键值对。
PerfettoGenericPostProcessor.AlternativeParseFormat
PerfettoGenericPostProcessor.METRIC_FILE_FORMAT
完美准备者Perfetto 准备者将配置文件推送到设备中 perfetto 可以访问的标准位置。
PerfettoPullerMetricCollector FilePullerDeviceMetricCollector的基本实现,允许从设备中提取 perfetto 文件并从中收集指标。
PerfettoPullerMetricCollector.METRIC_FILE_FORMAT
PerfettoTraceRecorder用于在ITestDevice上记录 perfetto 跟踪的实用程序类。
PrettyPrintDelimiter Helper utility that helps to print delimited message that stands out.
PrettyTestEventLogger Logger matching the events and logging them in order to make it easier to debug.
ProcessInfo Used to store process related(USER, PID, NAME, START TIME IN SECOND SINCE EPOCH) information.
PropertyChanger A utility class for changing (or adding) items in an Android property file
ProtoResultParser Parser for the Tradefed results proto format.
ProtoResultParser.TestLevel Enumeration representing the current level of the proto being processed.
ProtoResultReporter Result reporter build a TestRecord protobuf with all the results inside.
ProtoUtil Utility methods for dealing with protobuf messages type-agnostically.
ProxyConfiguration Object that allows pointing to a remote configuration to execute.
PsParser Utility used to parse(USER,PID and NAME) from the "ps" command output
PtsBotTest Run PTS-bot tests.
PushFileInvoker此类已弃用。改用PushFilePreparer
PushFilePreparer尝试将任意数量的文件从任意主机路径推送到任意设备路径的ITargetPreparer
PythonBinaryHostTest Host test meant to run a python binary file from the Android Build system (Soong)

The test runner supports include-filter and exclude-filter.

PythonBinaryHostTest.PythonForwarder Result forwarder to replace the run name by the binary name.
PythonUnitTestResultParser Interprets the output of tests run with Python's unittest framework and translates it into calls on a series of ITestInvocationListener s.
PythonUnitTestRunner此类已弃用。 Use PythonBinaryHostTest instead.
PythonVirtualenvHelper A helper class for activating Python 3 virtual environment.
PythonVirtualenvPreparer在主机上设置 Python virtualenv 并安装包。

Q

QuotationAwareTokenizer

R

重启原因收集器在测试运行期间收集设备重启并按原因和计数报告的收集器。
重启目标准备者重新启动设备的目标准备器。
恢复日志准备器用于在恢复之前收集日志的目标准备器。
RegexTrie <V> The RegexTrie is a trie where each stored segment of the key is a regex ERROR(/Pattern) .
RemoteAndroidDevice Implementation of a ITestDevice for a full stack android device connected via adb connect.
RemoteAndroidVirtualDevice Extends RemoteAndroidDevice behavior for a full stack android device running in the Google Compute Engine (Gce).
RemoteAvdIDevice A placeholder IDevice used by DeviceManager to allocate when DeviceSelectionOptions.gceDeviceRequested() is true
RemoteFileResolver A simple class that allows one to load files from a variety of places using URIs and the service provider functionality.
RemoteFileUtil Utility class to handle file from a remote instance
RemoteInvocationExecution Implementation of InvocationExecution that drives a remote execution.
RemoteInvocationExecution.FileOptionValueTransformer
RemoteSshUtil Utility to execute ssh commands on remote instances.
RemoteTestTimeOutEnforcer Listeners that allows to check the execution time of a given test config and fail it if it goes over a given timeout.
RemoteZip Utilities to unzip individual files inside a remote zip file.
RemoveSystemAppPreparer用于在测试运行之前从系统分区中删除 apk 的ITargetPreparer
ReportPassedTests Report in a file possible filters to exclude passed test.
ResolvePartialDownload Resolve a partial download request.
ResourceMetricUtil Utility functions for composing metrics.
ResourceUtil Utility for reading configuration resources.
RestApiHelper A helper class for performing REST API calls.
RestartSystemServerTargetPreparer无需重启设备即可重启系统服务器的目标准备器。
ResultAggregator Special forwarder that aggregates the results when needed, based on the retry strategy that was taken.
ResultAndLogForwarder Forwarder for results and logs events.
ResultForwarder A ITestInvocationListener that forwards invocation results to a list of other listeners.
ResultsPlayer Special runner that replays the results given to it.
RetentionFileSaver Helper class for creating a .retention file in a directory.
RetryConfigurationFactory Factory that handles retrying a command.
RetryLogSaverResultForwarder Forwarder that also handles passing the current attempt we are at.
RetryPreparationDecision A Class to describe the decisions about whether or not to retry preparation and to fail the module run.
RetryRescheduler A special runner that allows to reschedule a previous run tests that failed or where not executed.
RetryRescheduler.RetryType The types of the tests that can be retried.
RetryResultForwarder An Extension of ResultForwarder that always push to a given attempt number.
RetryResultHelper Helper class to determine which module or test should run or not.
RetryStatistics Structure holding the statistics for a retry session of one IRemoteTest .
RetryStrategy The Retry Strategy to be used when re-running some tests.
RootTargetPreparer基于选项“force-root”执行“adb root”或“adb unroot”的目标准备器。
RunAftersWithInfo
RunBeforesWithInfo
RunCommandTargetPreparer
RunConfigDeviceRecovery Generic base IMultiDeviceRecovery to run a tradefed configuration to do the recovery step.
RunHostCommandTargetPreparer目标准备者在运行测试之前和之后运行任意主机命令。
RunHostScriptTargetPreparer在运行测试之前执行脚本的目标准备器。
RunInterruptedException Thrown when a run operation is interrupted by an external request.
RunNotifierWrapper Wrapper of RunNotifier so we can carry the DeviceNotAvailableException .
RunOnSdkSandboxHandler Handler for ModuleParameters#RUN_ON_SDK_SANDBOX .
RunOnSdkSandboxTargetPreparer一个ITargetPreparer来标记测试应该在 sdk 沙箱中运行。
RunOnSecondaryUserParameterHandler
RunOnSecondaryUserTargetPreparer一个ITargetPreparer ,它在 setup 中创建辅助用户,并标记应在该用户中运行测试。
RunOnSystemUserTargetPreparer一个ITargetPreparer标记测试应该在用户(而不是当前用户)上运行。
RunOnWorkProfileParameterHandler
RunOnWorkProfileTargetPreparer一个ITargetPreparer ,它在 setup 中创建一个工作配置文件,并标记应该在该用户中运行测试。
RuntimeRestartCollector在测试运行期间收集运行时重新启动(系统服务器崩溃)的时间戳(如果有)的收集器。
RunUtil A collection of helper methods for executing operations.
RustBenchmarkResultParser Interprets the output of tests run with Criterion benchmarking framework and translates it into calls on a series of ITestInvocationListener s.
RustBinaryHostTest Host test meant to run a rust binary file from the Android Build system (Soong)
RustBinaryTest A Test that runs a rust binary on given device.
RustTestBase Base class of RustBinaryHostTest and RustBinaryTest
RustTestBase.EnvPair
RustTestBase.Invocation
RustTestResultParser Interprets the output of tests run with Rust's unittest framework and translates it into calls on a series of ITestInvocationListener s.

S

SandboxConfigDump Runner class that creates a IConfiguration based on a command line and dump it to a file.
SandboxConfigDump.DumpCmd
SandboxConfigurationException Special Configuration Exception coming from the Sandbox setup.
SandboxConfigurationFactory Special Configuration factory to handle creation of configurations for Sandboxing purpose.
SandboxConfigUtil A utility class for managing IConfiguration when doing sandboxing.
SandboxedInvocationExecution Special sandbox execution of the invocation: This is the InvocationExection for when we are inside the sandbox running the command.
SandboxInvocationRunner Run the tests associated with the invocation in the sandbox.
SandboxOptions Class that can receive and provide options to a ISandbox .
ScreenshotOnFailureCollector当测试用例失败时将捕获并记录屏幕截图的收集器。
Sdk28ModuleController A module controller to check if a device is on SDK 28 (Android 9) or above.
Sdk29ModuleController Only run tests if the device under test is SDK version 29 or above.
Sdk30ModuleController Only run tests if the device under test is SDK version 30 or above.
Sdk31ModuleController Only run tests if the device under test is SDK version 31 or above.
Sdk32ModuleController Only run tests if the device under test is SDK version 32 or above.
Sdk33ModuleController Only run tests if the device under test is SDK version 33 or above.
SecondaryUserHandler Handler for ModuleParameters#SECONDARY_USER .
SemaphoreTokenTargetPreparer这是一个准备者,用于使用令牌在 tradefed 主机中序列化测试执行。
SerializationUtil Utility to serialize/deserialize an object that implements ERROR(/Serializable) .
ServiceAccountKeyCredentialFactory A credential factory to create service account key based oauth Credential .
SettingsBaselineSetter A common setter to handle device baseline settings via ITestDevice.setSetting.
ShardBuildCloner Helper class that handles cloning a build info from the command line.
ShardHelper Helper class that handles creating the shards and scheduling them for an invocation.
ShardListener A ITestInvocationListener that collects results from a invocation shard (aka an invocation split to run on multiple resources in parallel), and forwards them to another listener.
ShardMainResultForwarder A ResultForwarder that combines the results of a sharded test invocations.
ShellOutputReceiverStream Utility subclass of OutputStream that writes into an IShellOutputReceiver.
ShellStatusChecker Check if the shell status is as expected before and after a module run.
ShippingApiLevelModuleController Run tests if the device meets the following conditions:
  • If min-api-level is defined:
    • The device shipped with the min-api-level or later.
ShowmapPullerMetricCollector FilePullerDeviceMetricCollector的基本实现,允许从设备中提取显示地图文件并从中收集指标。
SideloadOtaTargetPreparer执行指定 OTA 包的旁加载、应用包、等待设备启动并注入设备构建属性以用作构建信息的目标准备器

此目标准备器假定设备在启动时将处于常规 adb 模式,并将确保设备以相同的模式退出,但应用了较新的构建。

SimpleFileLogger A ILeveledLogOutput that directs log messages to stdout and to a single log file.
SimplePerfResult Object to hold all simpleperf test results
SimplePerfStatResultParser A utility class to parse simpleperf result.
SimplePerfUtil Utility class to dispatch simple command and collect results
SimplePerfUtil.SimplePerfType Enum of simpleperf command options
SimpleStats A small utility class that calculates a few statistical measures given a numerical dataset.
SizeLimitedOutputStream A thread safe file backed ERROR(/OutputStream) that limits the maximum amount of data that can be written.
SkipHWASanModuleController Base class for a module controller to not run tests on HWASan builds.
Sl4aBluetoothUtil A utility class provides Bluetooth operations on one or two devices using SL4A
Sl4aBluetoothUtil.BluetoothAccessLevel Enums for Bluetooth device access level which are based on BluetoothDevice.java
Sl4aBluetoothUtil.BluetoothConnectionState Enums for Bluetooth connection states which are based on BluetoothProfile.java
Sl4aBluetoothUtil.BluetoothPriorityLevel Enums for Bluetooth profile priority level which are based on BluetoothProfile.java
Sl4aBluetoothUtil.BluetoothProfile Enums for Bluetooth profiles which are based on BluetoothProfile.java
Sl4aClient Sl4A client to interact via RPC with SL4A scripting layer.
Sl4aEventDispatcher Event dispatcher polls for event and queue them by name to be queried.
Sl4aEventDispatcher.EventSl4aObject Object returned by the event poller.
SnapshotInputStreamSource A File-backed InputStreamSource.
SparseImageUtil Utility to unsparse sparse images.
SparseImageUtil.SparseInputStream SparseInputStream read from upstream and detects the data format.
StatsdBeforeAfterGaugeMetricPostProcessor处理以“之前/之后”方法收集的量规指标的后处理器,即
StatsdEventMetricPostProcessor使用处理器上指定的格式化程序将 statsd 报告中的事件度量处理成键值对的后处理器。
StatsdGenericPostProcessor通过将报告扩展为树结构,将二进制 proto statsd 报告处理为键值对的后处理器。
StatusCheckerResult Contains the result of a ISystemStatusChecker execution.
StatusCheckerResult.CheckStatus
StdoutLogger A ILeveledLogOutput that directs log messages to stdout.
停止服务设置停止设备上的服务的ITargetPreparer
StreamProtoReceiver A receiver that translates proto TestRecord received into Tradefed events.
StreamProtoResultReporter An implementation of ProtoResultReporter
StreamUtil Utility class for managing input streams.
StrictShardHelper Sharding strategy to create strict shards that do not report together,
StringEscapeUtils Utility class for escaping strings for specific formats.
StringUtil Utility class for escaping strings for common string manipulation.
StubBuildProvider No-op empty implementation of a IBuildProvider .
StubDevice Stub placeholder implementation of a IDevice .
StubKeyStoreClient Default stub implementation for KeyStore Client.
StubKeyStoreFactory Default stub implementation for KeyStore Factory
StubLocalAndroidVirtualDevice A placeholder IDevice used by DeviceManager to allocate when DeviceSelectionOptions.localVirtualDeviceRequested() is true
StubMultiTargetPreparer IMultiTargetPreparer的占位符空实现。
StubTargetPreparer占位符空实现ITargetPreparer
StubTest No-op empty test implementation.
StubTestRunListener Stub implementation of ITestRunListener
SubprocessCommandException A subprocess command failed to run.
SubprocessConfigBuilder Build a wrapper TF config XML for an existing TF config.
SubprocessEventHelper Helper to serialize/deserialize the events to be passed to the log.
SubprocessEventHelper.BaseTestEventInfo Base Helper for TestIgnored information.
SubprocessEventHelper.FailedTestEventInfo Helper for testFailed information.
SubprocessEventHelper.InvocationEndedEventInfo Helper for invocation ended information.
SubprocessEventHelper.InvocationFailedEventInfo Helper for InvocationFailed information.
SubprocessEventHelper.InvocationStartedEventInfo Helper for invocation started information.
SubprocessEventHelper.LogAssociationEventInfo Helper for logAssociation information.
SubprocessEventHelper.TestEndedEventInfo Helper for testEnded information.
SubprocessEventHelper.TestLogEventInfo Helper for testLog information.
SubprocessEventHelper.TestModuleStartedEventInfo Helper for test module started information.
SubprocessEventHelper.TestRunEndedEventInfo Helper for testRunEnded Information.
SubprocessEventHelper.TestRunFailedEventInfo Helper for testRunFailed information
SubprocessEventHelper.TestRunStartedEventInfo Helper for testRunStarted information
SubprocessEventHelper.TestStartedEventInfo Helper for testStarted information
SubprocessExceptionParser Helper to handle the exception output from standard Tradefed command runners.
SubprocessReportingHelper A class to build a wrapper configuration file to use subprocess results reporter for a cluster command.
SubprocessResultsReporter Implements ITestInvocationListener to be specified as a result_reporter and forward from the subprocess the results of tests, test runs, test invocations.
SubprocessTestResultsParser Extends ERROR(/FileOutputStream) to parse the output before writing to the file so we can generate the test events on the launcher side.
SubprocessTestResultsParser.StatusKeys Relevant test status keys.
SubprocessTfLauncher A IRemoteTest for running tests against a separate TF installation.
SuiteApk安装程序为套件配置安装指定的 APK:来自 $ANDROID_TARGET_OUT_TESTCASES 变量或构建信息中的 ROOT_DIR。
SuiteModuleLoader Retrieves Compatibility test module definitions from the repository.
SuiteModuleLoader.ConfigFilter A ERROR(/FilenameFilter) to find all the config files in a directory.
SuiteResultHolder Helper object to ease up serializing and deserializing the invocation results.
SuiteResultReporter Collect test results for an entire suite invocation and output the final results.
SuiteResultReporter.ModulePrepTimes Object holder for the preparation and tear down time of one module.
SuiteTestFilter Represents a filter for including and excluding tests.
SwitchUserTargetPreparer切换到 setUp 中指定用户种类的ITargetPreparer
SystemServerFileDescriptorChecker Checks if system server appears to be running out of FDs.
SystemServerStatusChecker Check if the pid of system_server has changed from before and after a module run.
SystemUpdaterDeviceFlasher A IDeviceFlasher that relies on the system updater to install a system image bundled in a OTA update package.
SystemUtil Utility class for making system calls.
SystemUtil.EnvVariable

T

TableBuilder Helper class to display a matrix of String elements in a table.
TableFormatter Helper class to display a matrix of String elements so each element column is lined up
TargetSetupError A fatal error occurred while preparing the target for testing.
TarUtil Utility to manipulate a tar file.
TcpDevice A placeholder IDevice used by DeviceManager to allocate when DeviceSelectionOptions.tcpDeviceRequested() is true
TearDownPassThroughPreparer允许在作为对象包含在配置中的准备器上运行 tearDown。
TelephonyHelper A utility to use and get information related to the telephony.
TelephonyHelper.SimCardInformation An information holder for the sim card related information.
TelephonyTokenProvider Token provider for telephony related tokens.
TemperatureThrottlingWaiter等待设备温度下降到目标的ITargetPreparer
TemplateResolutionError Class extending ConfigurationException for template related error during configuration parsing.
TerribleFailureEmailHandler A simple handler class that sends an email to interested people when a WTF (What a Terrible Failure) error occurs within a Trade Federation instance.
TestAppInstallSetupITargetPreparer IDeviceBuildInfo.getTestsDir()文件夹中的一个或多个应用程序安装到设备上的 ITargetPreparer。
TestContext A class to model a TestContext message of TFC API.
TestDependencyResolver Helper to resolve dependencies if needed.
TestDescription Class representing information about a test case.
TestDescriptionsFile A utility class for marshalling and unmarshalling a list of TestDescriptions to a test file.
TestDevice Implementation of a ITestDevice for a full stack android device
TestDevice.MicrodroidBuilder A builder used to create a Microdroid TestDevice.
TestDeviceOptions Container for ITestDevice Option s
TestDeviceOptions.InstanceType
TestDeviceState A more fully featured representation of device state than DeviceState .
TestEnvironment A class to model a TestEnvironment message returned by TFC API.
TestErrorIdentifier Error identifier from tests and tests runners.
TestFailureListener Listener used to take action such as screenshot, bugreport, logcat collection upon a test failure when requested.
TestFailureModuleController Controller for module that simply want to tune how the tests failures log collected are behaving.
测试文件推送设置将一个或多个文件/目录从ITargetPreparer IDeviceBuildInfo.getTestsDir()文件夹推送到设备上的 ITargetPreparer。
TestFilterHelper Helper class for filtering tests
TestGroupStatus A class to store status of a test group.
TestInfo Stores the test information set in a TEST_MAPPING file.
TestInformation Holder object that contains all the information and dependencies a test runner or test might need to execute properly.
TestInformation.Builder Builder to create a TestInformation instance.
TestInvocation Default implementation of ITestInvocation .
TestInvocation.RunMode The different mode an invocation can run into.
TestInvocation.Stage
TestInvocationManagementServer GRPC server helping to management test invocation and their lifecycle.
TestInvocationManagementServer.InvocationInformation
TestMapping A class for loading a TEST_MAPPING file.
TestMappingSuiteRunner Implementation of BaseTestSuite to run tests specified by option include-filter, or TEST_MAPPING files from build, as a suite.
TestOption Stores the test option details set in a TEST_MAPPING file.
TestOutputUploader Uploads test output files to local file system, GCS, or an HTTP(S) endpoint.
TestRecordInterpreter Utility to convert a TestRecord proto into a more easily manipulable format in Tradefed.
TestRecordProtoUtil Utility to read the TestRecord proto from a file.
TestResource A class to model a TestResource message returned by TFC API.
TestResourceDownloader A class to download test resource files from file system/GCS/HTTP.
TestResult Container for a result of a single test.
TestResultListener A simplification of ITestLifecycleListener for implementers that only care about individual test results.
TestRunResult Holds results from a single test run.
TestRunToTestInvocationForwarder Forwarder from ddmlib ITestRunListener to ITestLifeCycleReceiver .
TestsPoolPoller Tests wrapper that allow to execute all the tests of a pool of tests.
TestSuiteInfo A class that resolves loading of build related metadata for test suite

To properly expose related info, a test suite must include a test-suite-info.properties file in its jar resources

TestSummary A class to represent a test summary.
TestSummary.Type
TestSummary.TypedString
TestSystemAppInstallSetup一种ITargetPreparer ,可将IDeviceBuildInfo.getTestsDir()文件夹中的一个或多个应用程序安装到设备上的 /system 分区。
TestTimeoutEnforcer Listeners that allows to check the execution time of a given test case and fail it if it goes over a given timeout.
TextResultReporter A test result reporter that forwards results to the JUnit text result printer.
TfMetricProtoUtil Utility class to help with the Map to Map transition.
TfObjectTracker A utility to track the usage of the different Trade Fedederation objects.
TfSuiteRunner Implementation of ITestSuite which will load tests from TF jars res/config/suite/ folder.
TfTestLauncher A IRemoteTest for running unit or functional tests against a separate TF installation.
TimeStatusChecker Status checker to ensure that the device and host time are kept in sync.
TimeUtil Contains time related utility methods.
TimeVal This is a sentinel type which wraps a Long .
浪费时间的人一个简单的目标准备器,用于浪费时间并可能重新启动设备。
TokenProperty Supported token with dynamic sharding.
TokenProviderHelper Helper that gives the provider associated to a particular token, in order to find out if a device supports the token.
TraceCmdCollector一个IMetricCollector ,它在测试期间使用 trace-cmd 收集跟踪,并将它们记录到调用中。
TracingLogger帮助管理每个测试调用的跟踪的类。
TradefedConfigObject A class to model a TradefedConfigObject message of TFC API.
TradefedConfigObject.Type A list of configuration object types which can be injected to a cluster command config.
TradefedDelegator Objects that helps delegating the invocation to another Tradefed binary.
TradefedFeatureClient A grpc client to request feature execution from the server.
TradefedFeatureServer A server that responds to requests for triggering features.
TradefedSandbox Sandbox container that can run a Trade Federation invocation.
TradefedSandboxFactory Default implementation for SandboxFactory
TradefedSandboxRunner Runner associated with a TradefedSandbox that will allow executing the sandbox.
TradefedSandboxRunner.StubScheduledInvocationListener A stub IScheduledInvocationListener that does nothing.

U

UiAutomatorRunner Runs UI Automator test on device and reports results.
UiAutomatorTest
UiAutomatorTest.LoggingOption
UiAutomatorTest.TestFailureAction
UnexecutedTestReporterThread Threads that takes care of reporting all unexecuted tests.
UniqueMultiMap <K, V> A MultiMap that ensures unique values for each key.
UsbResetMultiDeviceRecovery A IMultiDeviceRecovery which resets USB buses for offline devices.
UsbResetRunConfigRecovery Allow to trigger a command to reset the USB of a device
UsbResetTest An IRemoteTest that reset the device USB and checks whether the device comes back online afterwards.
UserChecker Checks if users have changed during the test.
用户清理器一个ITargetPreparer ,它在拆卸时删除二级用户。
UserInfo Similar to UserInfo class from platform.
UserInfo.UserType Supported variants of a user's type in external APIs.

V

ValidateSuiteConfigHelper This class will help validating that the IConfiguration loaded for the suite are meeting the expected requirements: - No Build providers - No Result reporters
VersionedFile Data structure representing a file that has an associated version.
VersionParser Fetch the version of the running tradefed artifacts.
VmRemoteDevice A Remote virtual device that we will manage from inside the Virtual Machine.

W

WaitDeviceRecovery A simple implementation of a IDeviceRecovery that waits for device to be online and respond to simple commands.
WaitForDeviceDatetimePreparer等待在设备上设置日期时间的ITargetPreparer

可选地,如果 datetime 未在超时内设置,则此准备者可以强制执行TargetSetupError ,或者将主机 datetime 强制到设备上,

WifiHelper Helper class for manipulating wifi services on device.
Wifi准备器必要时在设备上配置 wifi 的ITargetPreparer

X

XmlFormattedGeneratorReporter Implementation of the FormattedGeneratorReporter which format the suite results in an xml format.
XmlResultReporter Writes JUnit results to an XML files in a format consistent with Ant's XMLJUnitResultFormatter.
XmlSuiteResultFormatter Utility class to save a suite run as an XML.
XmlSuiteResultFormatter.RunHistory Helper object for JSON conversion.

Y

YamlClassOptionsParser Helper to parse test runner information from the YAML Tradefed Configuration.

Z

ZipCompressionStrategy An ICompressionStrategy for creating zip archives.
ZipUtil A helper class for compression-related operations
ZipUtil2 A helper class for zip extraction that takes POSIX file permissions into account