Google 致力于为黑人社区推动种族平等。查看具体举措

类索引

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

一种

解析器通过解析 'aapt dump badging' 的输出从 apk 中提取信息的类。
AaptParser.AaptVersion用于解析 APK 文件的 AAPT 版本的选项枚举。
格式化程序abi 的实用程序类。
抽象Xml解析器用于解析 xml 文件的 Helper 基类
AbstractXmlParser.ParseException如果无法解析 XML 输入,则抛出
云配置解析器解析 Acloud 配置的 Helper 类(用于启动 Cloud 设备实例)。
AcloudConfigParser.AcloudKeys可以从配置中搜索的密钥集。
活动状态检查器在模块末尾运行的剩余活动的状态检查器。
AdbRootElevator一个AutoCloseable使ADB根如果需要和还原根状态时完整构造时。
聚合后处理器一个度量聚合器,它为在多次迭代测试运行期间收集的数字度量提供最小值、最大值、平均值、方差、标准偏差、总计、计数和可选的百分位数,将它们视为双精度值。
AltDirBehavior为各种测试工件安装程序/推送程序定义替代目录行为的枚举

应用程序构建信息IBuildInfo表示Android应用程序和它的测试包(一个或多个)。
应用设备构建信息该类已弃用。使用IDeviceBuildInfo直接。
应用程序版本提取器从设备获取应用程序版本字符串的实用程序类。
AppVersionFetcher.AppVersionInfo应用版本信息类型。
建筑模块控制器模块控制器在与任何给定架构不匹配时不运行测试。
ArgsOptionParser填充Option从解析的命令行参数字段。
ATestFileSystemLogSaver ATest 使用此 LogSaver 类将日志保存在特定路径中。
自动日志收集器描述哪个收集器可以由线束自动处理的枚举。
自动化记者定义来自 Tradefed 自动报告器的映射的类。
平均后处理器计算指标列表平均值的后处理器的实现。

后台设备操作在给定设备上根据需要重复运行命令,直到操作被取消。
BaseDeviceMetricCollector基本实现IMetricCollector ,允许启动和停车时收集onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map))
基础模拟器准备器用于启动本地模拟器的通用准备器。
基本级别的日志输出对于基实现ILeveledLogOutput ,允许基于其名称或组件筛选一些标签。
基础模块控制器基本实现IModuleController应该检查如果一个模块应该运行或无法执行。
多目标准备器基本实现IMultiTargetPreparer ,允许禁用对象。
基础后处理器该基地IPostProcessor每个执行应该扩展。
基础重试决定基本实现IRetryDecision
BaseStreamLogger <OS延伸的OutputStream>ILeveledLogOutput引导日志消息到输出流和到stdout。
基本目标准备器基本实现类ITargetPreparer ,使控制对象是否禁用。
基础测试套件使用新套件系统运行兼容性测试套件的测试。
电池控制器允许控制设备电池充电状态的实用程序类。
BatteryRechargeDeviceRecovery允许在设备的电池电量低于给定阈值时触发命令。
电池温度
电池不可用设备恢复如果电池电量不可用,将触发配置的恢复检查器。
二元状态枚举用于记录具有 IGNORE 无操作状态的 ON/OFF 状态。
蓝牙实用程序用于在设备上调用 BluetoothInstrumentation 的实用功能

装置侧BluetoothInstrumentation代码可以在AOSP在以下网址找到: frameworks/base/core/tests/bluetoothtests

BootstrapBuildProvider一个IDeviceBuildProvider从测试设备白手起家构建信息

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

错误报告收集器直通ITestInvocationListener收集bug报告时,可配置的事件发生,然后调用ITestInvocationListener#testLog每个错误报告被收集后,其子女。
BugreportCollector.Filter
错误报告收集器.Freq
BugreportCollector.Noun
BugreportCollector.Predicate描述何时捕获错误报告的完整谓词。
BugreportCollector.Relation
BugreportCollector.SubPredicate
BugreportzOnFailureCollector当测试用例失败时收集错误报告。
构建信息通用实施的IBuildInfo应与相关ITestDevice
构建信息记录器一个ITargetPreparer写入构建信息元数据到一个指定的文件。
构建信息实用程序一个实用程序类,以帮助处理IBuildInfo
构建检索错误检索构建以进行测试时发生致命错误。
BuildTestsZipUtils Android构建系统生成的测试zip相关操作的辅助类
群发邮件允许以下配置的电子邮件发件人实用程序:发送间隔、初始突发大小、收件人和邮件总数。
捆绑工具实用程序使用 bundletool 命令行在设备上安装 .apks 的实用程序类。

C

CecControllerTokenProvider消费电子控制 (CEC) 相关令牌的令牌提供者。
CircularAtraceUtil开发的 atrace 实用程序主要用于在 Monkey 测试期间确定 ANR 的根本原因。
圆形字节数组用于保存固定大小数组的数据结构,该数组用作循环缓冲区,并跟踪数组中所有值的总和。
ClangCodeCoverageCollector一个BaseDeviceMetricCollector将拉动锵覆盖测量关闭设备和日志他们作为测试工件。
类未找到配置异常ConfigurationException当找不到对象的类为。
类路径扫描器在类路径上查找条目。
ClassPathScanner.ClassNameFilter一个IClassPathFilter滤网和转换的Java类的名称。
ClassPathScanner.ExternalClassNameFilterClassNameFilter排斥内部类
ClassPathScanner.IClassPathFilter类路径入口路径的过滤器

图案后FileFilter

集群构建信息一个IBuildInfo类构建从TFC管道。
集群构建提供者一个IBuildProvider下载TFC测试资源。
集群客户端一个IClusterClient实施与TFC后端交互。
集群命令表示从 TF Cluster 获取的任务的类。
ClusterCommand.RequestType
集群命令.状态命令在 TF 集群中的状态。
集群命令配置构建器为集群命令构建配置文件的类。
集群命令事件用于封装要上传的集群命令事件的类。
ClusterCommandEvent.Builder
ClusterCommandEvent.Type
集群命令启动器一个IRemoteTest类通过子TF推出从TFC的命令。
集群命令调度器一个ICommandScheduler以支持TFC(Tradefed集群)。
集群命令状态表示来自 TF Cluster 的命令的状态和取消原因的类。
集群设备信息封装要上传的集群设备信息的类。
ClusterDeviceInfo.Builder
集群设备监视器一个IDeviceMonitor实现,结果报告给Tradefed群集服务。
ClusterEventUploader <T延伸IClusterEvent > ClusterEventUploader类,上传IClusterEvent到TFC。
集群主机事件用于封装要上传的集群主机事件的类。
ClusterHostEvent.Builder
ClusterHostEvent.HostEventType不同类型的主机事件的枚举。
集群主机工具TF Cluster 的静态 util 函数,用于获取全局配置实例、主机信息等。
集群日志保护程序ILogSaver类测试输出上传到TFC。
ClusterLogSaver.FilePickingStrategy文件选择策略。
集群选项
收集字节输出接收器IShellOutputReceiver其收集整个壳输出到byte[]
收集输出接收器IShellOutputReceiver其收集整个壳输出成一个String
收集测试监听器一个ITestInvocationListener将收集所有的测试结果。
收集器助手助手做一些IMetricCollector在几个地方所需的操作。
命令文件解析器包含一组命令行的文件的解析器。
CommandFileParser.CommandLine
命令行构建信息构建器实用工具旨在通过命令行捕获通常构建信息参数,并创建一个IBuildInfo从他们。
命令选项实施ICommandOptions
命令选项Getter返回给定调用的命令选项值的服务实现。
命令运行器一个备用的 TradeFederation 入口点,它将运行命令行参数中指定的命令,然后退出。
CommandRunner.ExitCode可以退出的错误代码。
命令调度器用于在所有可用设备上运行 TradeFederation 命令的调度程序。
CommandScheduler.HostState主机不同状态的枚举
CommonLogRemoteFileUtil此实用程序允许避免跨不同远程设备表示的代码重复,用于公共文件的远程日志获取逻辑。
CommonLogRemoteFileUtil.KnownLogFileEntry远程设备的已知日志条目的表示。
ConditionPriorityBlockingQueue <T>有一个线程安全类ERROR(/PriorityBlockingQueue)式的操作,可以检索符合特定条件的对象。
ConditionPriorityBlockingQueue.AlwaysMatch <T>一个ConditionPriorityBlockingQueue.IMatcher任何对象匹配。
ConditionPriorityBlockingQueue.IMatcher <T>用于确定元素是否匹配某种条件的接口。
配置完成器在实施Completer为我们的TF配置。
配置一个具体的IConfiguration实现,存储装载配置中的地图对象。
配置定义保存配置、其关联对象及其选项的记录。
配置定义.ConfigObjectDef用于保存 className 信息的对象及其拥有的外观编号(例如,如果配置具有两次相同的对象,则第一个将具有第一个外观编号)。
配置工厂工厂创建IConfiguration
配置工厂.ConfigLoader的实施IConfigDefLoader跟踪从一个根配置所包含的配置,并且抛出异常上圆形包括。
配置工具用于处理配置文件的实用函数。
配置XmlParser设置一个简单的类来接受 ConfigurationXmlParser 的设置

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

配置YamlParser YAML 样式 Tradefed 配置的解析器
安慰TradeFederation 主控制台为用户提供交互界面

目前支持操作,例如

  • 添加测试命令
  • 列出设备及其状态
  • 列出正在进行的调用
  • 列出队列中的命令
  • 将调用日志转储到文件/标准输出
  • 关掉
Console.ArgRunnable <T>Runnablerun ,可以采取一个参数的方法
控制台.CaptureList一个方便的类型List<List<String>>
控制台阅读器输出流可以使用一个OutputStream做System.out.print()发挥好与用户的LineReader unfinishedLine。
控制台结果报告器结果报告器将测试结果打印到控制台。
CountingTestResultListenerTestResultListener通过跟踪的检验的总次数TestStatus
CountTestCasesCollector计数和报告的测试用例的数量对于一个给定IRemoteTest
覆盖选项Tradefed 对象持有覆盖选项。
CoverageOptions.Toolchain
创建AvdPreparer
创建用户准备器用于创建用户并在最后清理它的目标准备器。

D

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

这对于使用从外部源(例如

设备构建信息注入器ITargetPreparer进行的插入DeviceBuildDescriptor元数据插入到IBuildInfo
设备清洁器测试后执行重新启动或格式化为清理操作,并可选择关闭屏幕
DeviceCleaner.CleanupAction
DeviceCleaner.PostCleanupAction
设备并发工具包含用于并发设备端命令执行的实用程序方法和类

使用ERROR(/ExecutorService)来运行所实施的命令ShellCommandCallable ,和使用ERROR(/#joinFuture(String,Future,long))针对同步ERROR(/Future)作为返回由ERROR(/ExecutorService)该命令的执行。

DeviceConcurrentUtil.ShellCommandCallable <V>ERROR(/Callable)一个包装上的执行外壳命令的细节ITestDevice
设备配置持有人一个具体IDeviceConfiguration实现,存储在它的属性加载的设备配置对象。
设备失败启动错误如果设备在使用构建刷新后无法启动,则抛出。
设备功能模块控制器模块控制器在不支持某些功能时不运行测试。
设备文件报告器一个工具类检查文件的设备并将它们发送到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)如果找到。
设备闪存准备器ITargetPreparer该闪烁上的实体Android硬件的图像。
DeviceFlashPreparer.EncryptionOptions用于处理用户数据图像加密的选项枚举
设备文件夹构建信息一个IDeviceBuildInfo还包含有对本地文件系统的目录等构建构件。
DeviceImageZipFlashingTargetPreparer使用通过特定格式提供的设备映像刷新设备的目标准备程序。
DeviceInternetAccessibilityResourceMetricCollector收集器 ping google.com 以检查设备是否可以访问互联网。
装置经理
设备管理器.FastbootDevice表示处于 Fastboot 模式的设备。
设备指标数据用于保存指标收集器收集的所有数据的对象。
设备监视器多路复用器代理类传播请求到多个IDeviceMonitor秒。
设备属性设备端属性名称的通用常量定义
设备恢复模式实用程序
设备重置功能设备重置的服务器端实现。
设备重置处理程序实用程序处理一般设备重置。
设备选择选项设备选择标准的容器。
DeviceSelectionOptions.DeviceRequestedType支持的不同可能类型的占位符设备。
设备设置检查器检查模块运行期间设备设置是否已更改。
设备设置ITargetPreparer用于配置用于测试基于所提供的设备Option秒。
设备状态监视器Helper类用于监视的状态IDevice
DeviceStorageAgeResourceMetricCollector从 logcat 解析存储年龄。
设备存储状态检查器检查设备是否有足够的磁盘空间用于给定的分区。
设备不可用监视器此侦听器仅尝试捕获测试用例级别的 DNAE。
设备更新目标准备器一个抽象ITargetPreparer该负责的共同步骤周围从外部源更新与设备的图像文件的设备(相对于一个构建服务)。
DeviceWifiResourceMetricCollector收集器收集当前连接的 wifi 信号强度和链接速度指标。
将DirectedGraph <V>有向无权图实现。
动态文件存根测试这是一个tradefed 测试,用于测试tradefed 能否正确解析动态文件。
动态远程文件解析器帮助解析远程文件路径的类。
DynamicRemoteFileResolver.FileResolverLoader负荷实现IRemoteFileResolver

EmmaXml 常量解析 emma xml 报告时使用的常量。
EmulatorMemoryCpuCapturer
强制SeLinux检查器状态检查器,确保 Selinux 的状态。
事件记录器监听器将接收到的所有事件记录到文件中的侦听器
现有构建提供者一个IBuildProvider返回已构建IBuildInfo
扩展文件标准文件的扩展,用于携带与构建相关的元数据。

F

假测试一种假测试,其目的是使生成可重复的测试结果变得容易。
FakeTestsZipFolder一个测试装置,它根据内容列表创建一个假的解压测试文件夹。
FakeTestsZipFolder.ItemType
FastbootDeviceFlasher依赖于 fastboot 在物理 Android 硬件上刷新映像的类。
快速启动助手用于快速启动操作的辅助类。
FastbootUpdateBootstrapPreparer一个ITargetPreparer该阶段指定的文件(引导加载器,无线电,设备图像压缩)到IDeviceBuildInfo获得设备闪耀着FastbootDeviceFlasher ,往里面注入后启动设备属性转化为结果报告目的构建信息。
文件下载缓存一个辅助类,用于维护下载文件的本地文件系统 LRU 缓存。
文件下载缓存工厂该工厂用于创建FileDownloadCache
文件下载缓存包装器包装类,提供FileDownloadCache设施,同时实现IFileDownloader接口。
文件空闲监视器监视文件并在它们空闲时执行回调(即
文件记录器一个ILeveledLogOutput引导日志信息的文件,并到stdout。
FileProtoResultReporter原记者转储TestRecord到文件中。
FilePullerDeviceMetricCollector一个BaseDeviceMetricCollector用于侦听关键指标来自设备和拉他们从设备中的文件。
FilePullerLogCollector设备端上报的文件记录器。
文件系统日志保护程序将日志保存到文件系统。
过滤结果转发器的变异ResultForwarder ,只允许一个允许列表TestDescription予以报道。
固定字节数组输出流在内存中的ERROR(/OutputStream) ,仅保留的最大数据量。
闪烁资源解析器一个类,用于解析刷新设备所需的辅助图像文件的所需版本。
FlashingResourcesParser.AndroidInfo一种用于typedef的Map&lt;String, MultiMap&lt;String, String&gt;&gt; .
FlashingResourcesParser.Constraint过滤接口,意在让FlashingResourcesParser忽略一些资源,这否则可能会使用
闪烁的ResourceUtil该工具可以帮助设置文物的相应版本,使他们能够通过闪现DeviceFlashPreparer
可折叠扩展处理器IModuleParameterHandler扩展到更多的每个非主可折叠配置。
可折叠处理器通用可折叠处理程序,可以采用可折叠参数来创建专用模块。
可折叠模式准备器可以切换设备可折叠状态的目标准备器。
文件夹构建信息具体实现的IFolderBuildInfo
FormattedGeneratorReporter允许以特定格式生成报告的报告器。

G

GceAvdInfo用于保存给定 GCE AVD 实例的相关数据的结构。
GceAvdInfo.GceStatus
管理器管理 GCE 调用以启动/停止并从 GCE 收集日志的帮助程序。
GceRemoteCmdFormatter用于格式化命令以到达远程 gce 设备的实用程序类。
GceRemoteCmdFormatter.ScpMode SCP 可用于推送或拉取文件,具体取决于 args 的结构。
GceSsh隧道监视器Gce ssh 隧道的线程监视器。
GcovCodeCoverageCollector一个BaseDeviceMetricCollector这将拉动对gcov覆盖测量关闭设备和日志他们作为测试工件。
GCSBucketUtil用于从 Google Cloud Storage (GCS) 下载和上传文件的文件管理器。
GCSBucketUtil.GCSFileMetadata GCS 中文件信息的简单包装器。
GCSCommon Gcs 操作的基类,如下载和上传。
GCS下载助手GCS 存储桶的下载器,负责缓存和解析全局配置。
GCS文件下载器文件下载器从谷歌云存储(GCS)下载文件。
GCS文件上传器文件上传器将文件数据上传到谷歌云存储(GCS)。
GCS主机资源管理器从 GCS(谷歌云存储)下载主机资源。
GcsRemoteFileResolver实施IRemoteFileResolver允许下载从GCS桶内。
GetPreviousPassedHelper帮助获取先前通过的测试过滤器。
GkiDeviceFlashPreparer使用 android 通用内核通用映像刷新设备的目标准备器。
全局过滤器返回给定调用的过滤器的服务实现。
全局测试过滤器应用于调用的过滤器选项。
GoogleApiClientUtil用于创建 Google API 客户端的实用程序。
GranularRetriableTestWrapper在包装类作品IRemoteTest造粒,IRemoteTest在测试用例水平。
GsiDeviceFlashPreparer使用 android 通用系统映像刷新设备的目标准备器。

H

HelloWorldMultiTargetPreparer一个例子实施的IMultiTargetPreparer
历史记录器TF History Logger,只包含一些特定事件的特殊日志。
HprofAllocSiteParser帮助程序类从 hprof 报告的分配站点部分解析信息。
HttpRemoteFileResolver实施IRemoteFileResolver ,允许通过HTTP下载远程文件
HttpsRemoteFileResolver实施IRemoteFileResolver ,允许通过https下载远程文件

一世

接收器需要被测 ABI 的测试。
应用程序构建信息此接口已弃用。使用IBuildInfo直接。
IAutoRetriableTest接口的IRemoteTest没有实现ITestFilterReceiver但仍希望支持自动重试。
电池信息定义与设备电池交互的界面。
IBatteryInfo.BatteryState描述当前电池充电状态。
构建提供者负责提供有关正在测试的构建的信息。
构建接收器需要参考被测构建的测试。
集群客户端用于与 TFC 后端交互的接口。
集群事件任何要上传到 TFC 的集群事件的接口。
IClusterEventUploader <T延伸IClusterEvent > ClusterEventUploader 的接口
IClusterOptions用于获取集群相关选项的界面。
命令选项命令执行选项的容器。
命令调度器用于运行 TradeFederation 命令的调度程序。
ICommandScheduler.IScheduledInvocationListener调用完成时调用事件的侦听器。
压缩策略表示可以在运行时选择的压缩算法的接口。
配置TradeFederation 调用的配置信息。
配置工厂工厂创建IConfiguration小号
配置接收器简单的接口,以表示接受一个对象IConfiguration
证书工厂凭据工厂的界面来创建的oauth2 Credential
默认对象加载器加载默认对象的接口,这些对象应该是我们的 YAML 配置的一部分。
IDefaultObjectLoader.LoaderConfiguration加载配置对象将信息传递给加载器。
设备构建信息IBuildInfo代表一个完整的Android装置的构建和(任选地)其测试。
IDeviceBuildProvider一个IBuildProvider使用信息从ITestDevice检索构建。
设备配置设备配置持有人接口。
设备闪光器在设备上闪烁设备映像。
IDeviceFlasher.UserDataFlashOption处理用户数据图像的选项枚举
设备管理器用于管理用于测试的可用设备集的界面。
IDeviceManager.IFastbootListener fastboot 状态更改的侦听器。
设备监视器用于监控设备状态的接口。
IDeviceMonitor.DeviceLister一个Runnable状类应返回已知的设备和它们的状态。
设备选择设备选择标准的接口。
设备测试为对象接口,需要一个参考ITestDevice
禁用描述可以禁用的 Tradefed 对象的接口。
文件下载器下载远程文件的界面。
IFlashingResourcesParser用于提供闪存设备所需的辅助图像文件的所需版本的接口。
IFlashingResourcesRetriever用于检索刷新设备所需的辅助图像文件的接口。
文件夹构建信息一个简单的抽象IBuildInfo其构建工件被包含在一个本地文件系统的目录。
IFormatterGenerator接口描述用于格式化SuiteResultHolder
主机清洁器测试运行完成后清理主机。
调用上下文接收器需要引用调用上下文的测试。
调用执行描述将作为调用的一部分完成的操作的接口。
ILeveledLog输出实现此接口的类提供处理输出日志消息的方法。
日志接收器提供设备的的logcat的输出作为A类InputStreamSource
日志注册表对于接口ILogOutput单记录仪,其复用和管理不同的记录器。
ILogRegistry.EventType记录有用的事件
IMetricCollector在报告测试结果以收集匹配指标时,将添加此接口作为装饰器。
IMetricCollectorReceiver接口IRemoteTest s到实施,如果他们需要得到的名单IMetricCollector S为试运行。
模块控制器用于控制是否应执行模块的接口。
IModuleController.RunStrategy描述模块应该如何执行的枚举。
模块参数处理程序套件模块的参数接口。
多设备测试此接口已弃用。这个接口是为了兼容性暂时保留的,但实际上不再使用了。请不要实施。
多目标准备器一起为多个设备准备测试环境。
本机设备测试为对象接口,需要一个参考INativeDevice
安装ApexModuleTargetPreparer
即时应用程序处理程序处理程序ModuleParameters#INSTANT_APP
InstrumentationResultProtoParser解析在检测测试运行期间收集的检测结果原型,并将结果通知 ITestRunListener。
调用上下文通用实施的IInvocationContext
调用执行描述所有调用步骤的类:构建下载、target_prep、运行测试、清理。
调用范围作用域单个 Tradefed 调用。
调用范围
调用范围模块Guice 模块可以在 TF 调用中的任何地方使用以请求 Guice-Tradefed 支持的对象。
调用状态用于存储调用状态的类。
InvocationToJUnitResultForwarder一类侦听ITestInvocationListener事件,并将其转发给TestListener
后处理器后处理器是一个 Trade Federation 对象,旨在允许在测试之后和结果报告之前处理指标和日志。
远程功能描述 Tradefed 中可根据请求执行的功能的接口。
远程文件解析器可以将远程文件解析为本地文件的对象的接口。
IRemoteFileResolver.RemoteFileResolverArgs传递给解析器的参数
IRemoteFileResolver.ResolvedFile保存有关已解析文件和一些元数据的信息的类。
IReport未执行在一个不完整的执行情况, IRemoteTest实现该接口可用于改进报告报告其非执行测试。
调度器用于重新安排配置以供将来执行的接口。
IResourceMetricCollector用户实现自定义资源收集器的接口。
IRESTApiHelper用于执行 REST API 调用的辅助接口。
可恢复测试此接口已弃用。不再需要这个
重试决定接口驱动重试决策并在类上应用过滤器以获得更有针对性的重试。
IRuntimeHintProvider
沙盒定义可用于运行调用的沙箱的接口。
沙盒工厂工厂创建ISandbox
设置选项接收器此接口的实现应该有一个Option与链接到“设置选项”名HostTest#SET_OPTION_NAME
IShardableTestIRemoteTest可以分成单独的可执行子测试。
IShardHelper描述要用于配置的分片策略的对象的接口。
系统状态检查器对系统状态执行检查并返回布尔值以指示系统是否处于预期状态的检查器。
ISystemStatusCheckerReceiver一个IRemoteTest需要访问的ISystemStatusChecker从配置。
目标清洁器此接口已弃用。 tearDown 已移至基础 ITargetPreparer 接口。
目标准备器为测试运行准备测试环境。
ITerribleFailureHandler接口,用于从处理可怕的失败LogUtil.CLog.wtf(String, Throwable)
ITestAnnotationFilterReceiver一个运行器,可以根据注释过滤要运行的测试。
ITest收集器提供测试采集支持;设置后,测试运行器必须执行试运行以收集测试用例而不实际执行它们。
ITest文件过滤器接收器可以接收指定要运行和/或不运行哪些测试的文件的运行器。
ITest过滤器接收器可以过滤要运行的测试的运行程序。
ITest信息接收器接口接收TestInformation对于某些类。
测试调用处理一个 TradeFederation 测试调用。
ITestInvocation.ExitInformation表示调用的一些退出信息。
测试套件用于运行测试套件的抽象类。
ITestSuiteResultLoader描述以可重新运行的方式加载先前结果的帮助程序的接口。
ITestsZipInstaller从设备上的测试 zip 文件(由构建系统输出)安装测试。

J

JavaCodeCoverageCollector一个BaseDeviceMetricCollector将拉动Java的覆盖测量关闭设备和日志他们作为测试工件。
JavaCodeCoverageFlusher一个实用程序类,用于重置并强制从设备上运行的进程刷新 Java 代码覆盖率测量值。
JsonHttpTestResultReporter将测试指标结果和分支、设备信息编码为 JSON 并将 POST 编码为 HTTP 服务端点的结果报告器
JUnit4TestFilter帮助器类,通过延长提供了用于JUnit4转轮过滤Filter
JUnitToInvocationResultForwarder一类侦听TestListener事件,并将其转发给ITestInvocationListener
JUnitXmlParser从存储在 ant 的 XMLJUnitResultFormatter 中的 JUnit 结果中提取测试结果数据并将其转发到 ITestInvocationListener 的解析器。

键盘锁状态检查器Checks the keyguard status after module execution.
KillExistingEmulatorPreparer A ITargetPreparer that shuts down a running emulator.

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
LocalDeviceBuildProvider A IBuildProvider that constructs a IDeviceBuildInfo based on a provided filesystem directory path.
LocalEmulatorLaunch A TargetPreparer that launches an emulator locally from an android build environment.
LocalEmulatorSnapshot A TargetPreparer intended for generating a clean emulator snapshot from a android build/development environment
LocalFileResolver Implementation of IRemoteFileResolver that allows linking local files
LocalFolderBuildProvider A IBuildProvider that constructs a IFolderBuildInfo based on a provided local path
LocalRunInstructionBuilder Utility to compile the instruction to run test locally.
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 Collector that will capture and log a logcat when a test case fails.
LogcatReceiver Class that collects logcat in background.
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.

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
MetricFilePostProcessor Used for uploading the metrics log file collected during the test and run level.
MetricOption Annotation for test methods annotated with @Test , or if the annotation is part of the annotation list of TestDescription that allows to specify some extra parameters useful for: Tuning the behavior of the collectors, filtering some methods.
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.
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.
ModuleDefinition Container for the test run configuration.
ModuleListener Listener attached to each IRemoteTest of each module in order to collect the list of results.
ModuleMerger Helper class for operation related to merging ITestSuite and ModuleDefinition after a split.
ModuleOemTargetPreparer
ModuleOemTargetPreparer.ModuleInfo A simple struct class to store information about a module
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.
ModuleSplitter Helper to split a list of modules represented by IConfiguration into a list of execution units represented by ModuleDefinition .

N

NameMangleListener A proxy listener to translate test method, class, and package names as results are reported.
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.
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.
NoDeviceException Thrown when there's no device to execute a given command.
NoisyDryRunTest Run noisy dry run on a command file.
NotMultiAbiHandler Special handler that notify the SuiteModuleLoader that the secondary abi should not create a module.

O

OpenObjectLoader Loader for the default objects available in AOSP.
OptionCopier A helper class that can copy Option field values with same names from one object to another.
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.
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.

P

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.
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
PrettyPrintDelimiter Helper utility that helps to print delimited message that stands out.
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

Q

QuotationAwareTokenizer

R

RecoveryLogPreparer A target preparer used to collect logs before recovery.
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
RemoteFileUtil Utility class to handle file from a remote instance
RemoteInvocationExecution Implementation of InvocationExecution that drives a remote execution.
RemoteManager Class that receives RemoteOperation s via a socket.
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.
ReportPassedTests Report in a file possible filters to exclude passed test.
ResourceMetricUtil Utility functions for composing metrics.
RestApiHelper A helper class for performing REST API calls.
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.
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 .
RunCommandTargetPreparer
RunConfigDeviceRecovery Generic base IMultiDeviceRecovery to run a tradefed configuration to do the recovery step.
RunOnSecondaryUserParameterHandler
RunOnSecondaryUserTargetPreparer An ITargetPreparer that creates a secondary user in setup, and marks that tests should be run in that user.
RunOnSystemUserTargetPreparer An ITargetPreparer that marks that tests should be run on the user (rather than the current user).
RunOnWorkProfileParameterHandler
RunOnWorkProfileTargetPreparer An ITargetPreparer that creates a work profile in setup, and marks that tests should be run in that user.

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 Collector that will capture and log a screenshot when a test case fails.
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.
SecondaryUserHandler Handler for ModuleParameters#SECONDARY_USER .
SerializationUtil Utility to serialize/deserialize an object that implements ERROR(/Serializable) .
ServiceAccountKeyCredentialFactory A credential factory to create service account key based oauth Credential .
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.
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.
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.
StatusCheckerResult Contains the result of a ISystemStatusChecker execution.
StatusCheckerResult.CheckStatus
StdoutLogger A ILeveledLogOutput that directs log messages to stdout.
StreamProtoReceiver A receiver that translates proto TestRecord received into Tradefed events.
StreamProtoResultReporter An implementation of ProtoResultReporter
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 .
StubMultiTargetPreparer Placeholder empty implementation of a IMultiTargetPreparer .
StubTargetPreparer Placeholder empty implementation of a 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.
SuiteApkInstaller Installs specified APKs for Suite configuration: either from $ANDROID_TARGET_OUT_TESTCASES variable or the ROOT_DIR in build info.
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.
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.
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
TarUtil Utility to manipulate a tar file.
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.
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.
TestAppInstallSetup A ITargetPreparer that installs one or more apps from a IDeviceBuildInfo.getTestsDir() folder onto device.
TestContext A class to model a TestContext message of TFC API.
TestDependencyResolver Helper to resolve dependencies if needed.
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
TestEnvironment A class to model a TestEnvironment message returned by TFC API.
TestFailureListener Listener used to take action such as screenshot, bugreport, logcat collection upon a test failure when requested.
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.
TestInvocation Default implementation of ITestInvocation .
TestInvocation.RunMode The different mode an invocation can run into.
TestInvocation.Stage
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 A class to upload test output files to GCS/HTTP.
TestRecordInterpreter Utility to convert a TestRecord proto into a more easily manipulable format in Tradefed.
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.
TestResultListener A simplification of ITestLifecycleListener for implementers that only care about individual test results.
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

TextResultReporter A test result reporter that forwards results to the JUnit text result printer.
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.
TimeVal This class is deprecated. use Duration instead.
TokenProviderHelper Helper that gives the provider associated to a particular token, in order to find out if a device supports the token.
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

UnexecutedTestReporterThread Threads that takes care of reporting all unexecuted tests.
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.

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
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.
WifiHelper Helper class for manipulating wifi services on device.

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.

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

Z

ZipCompressionStrategy An ICompressionStrategy for creating zip archives.