Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

类索引

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

一个

AaptParser 通过解析“ aapt dump Badging”的输出从apk提取信息的类。
阿比 代表ABI的类。
AbiFormatter abi的实用程序类。
AbiUtils 处理设备ABI的实用程序类
AbstractHostMonitor 主机运行状况监视的典型类。
AbstractTargetCleaner 具有存根setUp(ITestDevice, IBuildInfo)方法的ITargetCleaner
AbstractXmlParser 用于解析xml文件的Helper基类
AbstractXmlParser.ParseException 如果无法解析XML输入,则抛出该异常
AcloudConfigParser 解析Acloud配置的辅助类(用于启动Cloud设备实例)。
AcloudConfigParser.AcloudKeys 可以从配置中搜索的密钥集。
ActivityStatusChecker 在模块末尾运行的剩余活动的状态检查器。
AdbStopServerPreparer 目标准备者在运行adb测试之前和之后停止主机上的adb服务器。
AdditionalFilesInstaller 一个ITargetPreparer ,它将所有IBuildInfo#getFiles()IBuildInfo#getFiles()设备上的特定路径。
AggregatePostProcessor 度量聚合器,它为多次迭代测试运行期间收集的数字度量提供最小值,最大值,均值,方差和标准偏差,并将其视为两倍。
报警 等待一段时间然后中断特定其他线程的线程。
AllTestAppsInstallSetup ITargetPreparer ,用于将IDeviceBuildInfo#getTestsDir()文件夹中的所有应用安装到设备上。
AltDir行为 为各种测试工件安装程序/推送程序定义替代目录行为的枚举

AndroidJUnitTest 一个测试,使用android.support.test.runner.AndroidJUnitRunner在给定设备上运行检测测试包。
AndroidManifestWriter 用于修改AndroidManifest的Helper类。
AoaTargetPreparer ITargetPreparer使用Android开放附件(AOAv2)协议执行一系列操作(例如,单击和滑动)。
AppBuildInfo 一个IBuildInfo ,代表一个Android应用程序及其测试包。
AppDeviceBuildInfo 一个IDeviceBuildInfo ,其中也包含IAppBuildInfo
应用设置 一个ITargetPreparer ,它安装apk及其测试。
AppVersionFetcher 从设备获取应用程序版本字符串的实用程序类。
AppVersionFetcher.AppVersionInfo 应用程序版本信息类型。
ArgsOptionParser 根据已解析的命令行参数填充“ Option字段。
ArrayUtil 数组的实用方法
AtestRunner ITestSuite实现
AtraceCollector 一个IMetricCollector ,它在测试期间运行atrace并收集结果并将其记录到调用中。
AtraceRunMetricCollector 从测试设备的给定目录下的所有测试目录中收集跟踪,记录测试目录,并对测试目录下的跟踪文件进行后处理并汇总度量。
自动日志收集器 枚举描述线束可以自动处理的收集器。
AveragePostProcessor 实现后处理程序,以计算度量标准列表的平均值。

BackgroundDeviceAction 在给定设备上运行命令,并根据需要重复执行该命令,直到取消操作为止。
BaseDeviceMetricCollector IMetricCollector基本实现,它允许在onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map))上启动和停止收集。
BaseHostJUnit4Test 用于运行主机JUnit4样式测试的基本测试类。
BaseLeveledLogOutput ILeveledLogOutput的基本实现,它允许根据标签或标签的名称或组件来对其进行过滤。
BaseModuleController IModuleController基本实现,应实现该模块以检查模块是否应该运行。
BaseMultiTargetPreparer IMultiTargetPreparer基本实现,允许禁用该对象。
BasePostProcessor 每个实现都应扩展的基础IPostProcessor
BaseTargetPreparer ITargetPreparer基本实现类, ITargetPreparer允许控制是否禁用该对象。
BaseTestSuite 与新套件系统一起运行兼容性测试套件的测试。
电池温度
电池不可用设备恢复 如果电池电量不足,将触发配置的恢复检查器。
二进制状态 用于记录具有IGNORE无操作状态的ON / OFF状态的枚举。
蓝牙实用程序 在设备上调用BluetoothInstrumentation的实用程序功能

可以在以下位置的AOSP中找到设备端BluetoothInstrumentation代码: frameworks/base/core/tests/bluetoothtests

BootstrapBuildProvider IDeviceBuildProvider ,从测试设备引导生成信息

通常用于具有外部提供的内部版本的设备,即

BuddyInfoMetricCollector ScheduledDeviceMetricCollector用于定期收集碎片。
错误报告 包含bugreport文件引用的对象,与平面bugreport和压缩bugreport(bugreportz)兼容。
BugreportCollector 一个传递式ITestInvocationListener ,它在发生可配置事件时收集ITestInvocationListener ,然后在收集每个ITestInvocationListener#testLog报告后在其子ITestInvocationListener#testLog上调用ITestInvocationListener#testLog
BugreportCollector.Filter
BugreportCollector.Freq
BugreportCollector.Noun
BugreportCollector.Predicate 描述何时捕获错误报告的完整谓词。
BugreportCollector.Relation
BugreportCollector.SubPredicate
BugreportzMetricCollector ScheduledDeviceMetricCollector定期收集压缩的错误报告。
BugreportzOnFailureCollector 测试用例失败时收集错误报告。
BuildError 如果提供的内部版本无法运行,则抛出该异常。
BuildInfo 通用实施的IBuildInfo应与相关ITestDevice
BuildInfoAttributePreparer 一个ITargetPreparer ,它将任意属性添加到IBuildInfo
BuildInfoKey 与构建信息查询有关的类持有枚举。
BuildInfoKey.BuildInfoFileKey 枚举,描述可以通过IBuildInfo#getFile(BuildInfoFileKey)查询的所有已知文件类型。
BuildInfoRecorder 一个ITargetPreparer ,它将构建信息元数据写入指定的文件。
BuildRetrievalError 检索构建以进行测试时发生致命错误。
BuildSerializedVersion 包含所有IBuildInfo的当前序列化版本的IBuildInfo
BuildTestsZipUtils 与Android构建系统生成的测试zip相关的操作的帮助程序类
大量电子邮件 电子邮件发件人实用程序,可以进行以下配置:发送间隔,初始突发大小,收件人和邮件总数。
BundletoolUtil 使用bundletool命令行在设备上安装.apks的实用程序类。
ByteArrayInputStreamSource
字节数组列表 表示轻量级字节数组的类。

C

CarModuleController 该控制器可防止在非汽车设备上执行测试用例。
CarryDnaeError 内部RuntimeException通过JUnit4框架携带DeviceNotAvailableException
CdmaDeviceFlasher 使用CDMA无线电在物理Android设备上闪烁图像的类。
检查配对准备器 一个CompanionAwarePreparer来验证主设备和配套设备之间的BT绑定
CircularAtraceUtil 开发了atrace实用程序,主要用于在Monkey测试期间识别ANR的根本原因。
CircularByteArray 用于保存固定大小的数组的数据结构,该数组用作循环缓冲区,并跟踪该数组中所有值的总和。
ClassNotFoundConfigurationException 找不到对象类时的ConfigurationException
类路径扫描器 在类路径上查找条目。
ClassPathScanner.ClassNameFilter 一个IClassPathFilter ,用于过滤和转换Java类名称。
ClassPathScanner.ExternalClassNameFilter 拒绝内部类的ClassNameFilter
ClassPathScanner.IClassPathFilter 类路径入口路径的过滤器

仿照FileFilter之后

发条工具 共享多设备逻辑的发条工具
CodeCoverageTest 一种在给定设备上运行检测测试包并生成代码覆盖率报告的测试。
CollectingByteOutputReceiver 一个IShellOutputReceiver ,它将整个外壳程序输出收集到byte[]
收集输出接收器 一个IShellOutputReceiver ,它将整个shell输出收集到一个String
收集测试监听器 一个ITestInvocationListener ,它将收集所有测试结果。
CollectorHelper 帮助程序在多个位置执行所需的一些IMetricCollector操作。
CommandFileParser 包含命令行的文件的解析器。
CommandFileParser.CommandLine
CommandInterrupter 允许TradeFederation命令被中断或标记为不可中断的服务。
CommandOptions ICommandOptions实现。
命令结果 包含命令的结果。
指挥官 备用TradeFederation入口点,它将运行命令行参数中指定的命令,然后退出。
CommandRunner.ExitCode 可能会退出的错误代码。
命令调度程序 一个调度程序,用于在所有可用设备上运行TradeFederation命令。
CommandScheduler.HostState 主机不同状态的枚举
命令状态 表示定时操作的状态。
CommonLogRemoteFileUtil 利用此实用程序,可以避免公共文件的远程日志提取逻辑在不同的远程设备表示形式之间进行代码重复。
CommonLogRemoteFileUtil.KnownLogFileEntry 远程设备的已知日志条目的表示。
伴侣分配器 基类,负责分配和释放伴侣设备

应该实现getCompanionDeviceSelectionOptions()来描述分配配套设备所需的条件

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

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

CompanionDeviceTracker 分配和释放配套设备的类
CompanionRunCommandTargetPreparer ITargetPreparer在分配的配套设备上运行指定命令的ITargetPreparer
CompanionTestAppInstallSetup 一种ITargetPreparer ,它将IDeviceBuildInfo#getTestsDir()文件夹中的一个或多个应用安装到分配的配套设备上。
ConditionPriorityBlockingQueue <T> 具有ERROR(/PriorityBlockingQueue)的操作的线程安全类,可以检索与特定条件匹配的对象。
ConditionPriorityBlockingQueue.AlwaysMatch <T> 与任何对象匹配的ConditionPriorityBlockingQueue.IMatcher
ConditionPriorityBlockingQueue.IMatcher <T> 用于确定元素是否符合某种条件的接口。
ConfigCompletor Completor我们TF配置的完成器。
组态 一个具体的IConfiguration实现,用于将加载的配置对象存储在映射中。
配置定义 保留配置及其相关对象及其选项的记录。
ConfigurationDef.ConfigObjectDef 用于保存className信息及其外观编号的对象(例如,如果配置两次具有相同的对象,则第一个将具有第一个外观编号)。
ConfigurationDef.OptionDef 包含选项的详细信息。
配置描述符 描述配置本身某些方面的配置对象。
ConfigurationDescriptor.LocalTestRunner 枚举用来表示本地测试运行程序。
ConfigurationException 如果无法加载配置,则抛出该异常。
配置工厂 用于创建IConfiguration工厂。
ConfigurationFactory.ConfigLoader IConfigDefLoader实现可从一个根配置中跟踪包含的配置,并在循环包含上引发异常。
配置实用程序 实用程序功能来处理配置文件。
ConfigUtil 用于创建,与statsd配置文件交互和推送状态的实用程序类。
连接检查器 等待直到将IP地址分配给任何指定接口的目标准备器。
安慰 主TradeFederation控制台为用户提供交互界面

目前支持诸如

  • 添加命令进行测试
  • 列出设备及其状态
  • 列出正在进行的调用
  • 列出队列中的命令
  • 将调用日志转储到文件/ stdout
  • 关掉
Console.ArgRunnable <T> 具有可带参数的run方法的Runnable
Console.CaptureList List<List<String>>一种便利类型
ConsoleReaderOutputStream 一个OutputStream,可用于使System.out.print()与用户的ConsoleReader缓冲区配合使用。
ConsoleResultReporter 结果报告器将测试结果打印到控制台。
ContentProviderHandler 提取内容提供者交互并允许将设备端内容提供者用于不同操作的处理程序。
CoverageMeasurementForwarder 一个虚拟测试,可将覆盖范围的测量结果从构建提供者发送到记录器。
CpuStatsCollector 它运行Helper类cpustats不断上ITestDevice并解析输出。
CpuStatsCollector.CpuStats 用于保存单个cpustats输出的已解析输出数据的类。
CpuStatsCollector.CpuStatsReceiver 接收器,它解析cpustats的输出并有选择地记录到文件中。
Cpu节流服务员 一个ITargetPreparer ,它等待所有核心上的最大频率恢复到可用的最高水平
崩溃收集器 一个ITargetPreparer ,它在设备上运行崩溃收集器,以抑制并记录测试执行期间的崩溃。
CreateUserPreparer 目标准备者,用于创建用户并在最后清理用户。

d

DebugHostLogOnFailureCollector 发生测试用例失败时,将收集并记录主机端日志的收集器。
DefaultRemoteAndroidTestRunner 扩展ddmlib RemoteAndroidTestRunner来为Tradefed用例设置一些默认值。
DefaultTestsZipInstaller 测试zip安装程序的默认实现。
DeviceBatteryLevelChecker 一个ITargetPreparer ,它检查最小的电池电量,如果不存在最小电量,则等待电池达到第二个充电阈值。
DeviceBuildDescriptor IBuildInfo包装器类,其中包含用于检索设备平台构建信息的帮助程序方法。
DeviceBuildInfo 一个IBuildInfo ,代表完整的Android设备版本及其(可选)测试。
DeviceBuildInfoInjector 一个ITargetPreparerDeviceBuildDescriptor元数据插入IBuildInfo
DeviceCleaner 测试后执行重新启动或格式化为清除操作,并有选择地关闭屏幕
DeviceCleaner.CleanupAction
DeviceCleaner.PostCleanupAction
DeviceConcurrentUtil 包含用于并发设备端命令执行的实用程序方法和类

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

DeviceConcurrentUtil.ShellCommandCallable <V> 一个ERROR(/Callable) ,它在ITestDevice上包装执行shell命令的详细信息。
DeviceConfigurationHolder 一个具体的IDeviceConfiguration实现,用于将加载的设备配置对象存储在其属性中。
DeviceDiagTest 一种诊断,用于诊断可用于运行测试的设备。
DeviceDisconnectedException 当无法通过其传输类型访问设备时抛出。
DeviceFailedToBootError 如果设备在通过内部版本刷新后无法启动,则抛出该异常。
DeviceFatalError 当设备发生致命错误时抛出,并且该错误不再用于测试。
DeviceFileReporter 一个实用程序类,它检查设备中的文件,如果找到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)其发送到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)
DeviceFlashPreparer 一个ITargetPreparer ,用于在物理Android硬件上ITargetPreparer图像。
DeviceFlashPreparer.EncryptionOptions 枚举用于处理用户数据图像加密的选项
DeviceFolderBuildInfo IDeviceBuildInfo ,还包含本地文件系统上的目录中包含的其他构建工件。
DeviceJUnit4ClassRunner JUnit4测试运行程序也可以容纳IDeviceTest
DeviceJUnit4ClassRunner.LogAnnotation 假注释旨在将日志携带给记者。
DeviceJUnit4ClassRunner.MetricAnnotation 假批注旨在将指标传递给报告者。
DeviceJUnit4ClassRunner.TestLogData ExternalResourceTestRule
DeviceJUnit4ClassRunner.TestMetrics ExternalResourceTestRule
DeviceJUnit4ClassRunnerBuilder RunnerBuilder供给DeviceJUnit4ClassRunner S,具体用于对供给流道ERROR(LongevitySuite/android.host.test.longevity.LongevitySuite LongevitySuite)LongevityHostRunner
装置经理
DeviceManager.FastbootDevice
DeviceMetricData 用于保存指标收集器收集的所有数据的对象。
DeviceMonitorMultiplexer 一个代理类,用于将请求传播到多个IDeviceMonitor
DeviceNotAvailableException 当设备不再可用于测试时抛出。
DeviceParameterizedRunner JUnit4风格的参数化运行器,用于主机端驱动的参数化测试。
设备属性 设备端属性名称的通用常量定义
DeviceRecoveryModeUtil
DeviceRuntimeException 当设备操作未产生预期结果时抛出。
DeviceSelectionOptions 用于设备选择标准的容器。
DeviceSelectionOptions.DeviceRequestedType 支持不同类型的占位符设备。
DeviceSettingChecker 检查在模块运行期间设备设置是否已更改。
设备设置 一个ITargetPreparer ,用于根据提供的Option将设备配置为进行测试。
DeviceSideCollector规范 使用交易对象指定设备收集器,该收集器定义于:

platform_testing /库/设备收集器。

DeviceStateMonitor 用于监视IDevice状态的Helper类。
设备存储填充器 目标准备者可以填满存储空间,以便有一些可用空间。
DeviceStringPusher 目标准备器将字符串写入文件。
设备套件 扩展JUnit4容器Suite ,以便为需要它的测试提供ITestDevice
DeviceTestCase 提供IRemoteTestIDeviceTest服务的Helper JUnit测试用例。
DeviceTestResult TestResult的特殊化,当DeviceNotAvailableException发生时将中止
DeviceTestResult.RuntimeDeviceNotAvailableException
DeviceTestRunOptions 与通过BaseHostJUnit4Test运行设备测试相关的选项的构建器类。
DeviceTestSuite 提供IRemoteTestIDeviceTest服务的Helper JUnit测试套件。
DeviceUnavailEmailResultReporter 当由于设备不可用异常而导致调用失败时将发送电子邮件的EmailResultReporter
DeviceUnsensitiveException DeviceNotAvailableException ,指示设备对adb可见,但无响应(即命令超时,无法启动等)
DeviceUtilStatsMonitor 一个IDeviceMonitor ,用于计算设备利用率统计信息。
DeviceUtilStatsMonitor.StubDeviceUtil 计算平均主机利用率时用于配置存根设备的处理的枚举
DeviceUtilStatsMonitor.UtilizationDesc 利用率统计信息的容器。
设备刮水器 擦除用户数据的ITargetPreparer
DirectedGraph <V> 有向无加权图的实现。
禁用SELinuxTargetPreparer 如果禁用,则禁用SELinux的目标准备器。
DryRunKeyStore 空运行的密钥库,始终正确替换和找到任何密钥库值。
DumpHeapCollector ScheduledDeviceMetricCollector用于定期收集进程的内存转储。
DynamicFileStubTest 这是交易测试,测试交易可以正确解析动态文件。
DynamicRemoteFileResolver 有助于解决远程文件路径的类。

Ë

电子邮件 发送电子邮件的助手类。
EmailHostHealthAgent IHostHealthAgent实现,用于从主机监视器报告中发送电子邮件
EmailResultReporter 一个简单的结果报告程序基类,用于发送测试结果的电子邮件。
EmmaXmlConstants 解析emma xml报告时使用的常量。
强制SeLinuxChecker 状态检查器,用于确保Selinux的状态。
EraseUserDataPreparer 一个ITargetPreparer ,用于擦除设备上的用户数据。
ExecutableBaseTest 可执行测试样式的基类。
可执行主机测试 测试运行程序以在主机上运行可执行文件。
现有BuildProvider 一个IBuildProvider ,它返回一个已构造的IBuildInfo

F

FailureEmailResultReporter 如果发生测试失败或调用失败,则发送EmailResultReporter通知的EmailResultReporter
假测试 一种伪造的测试,其目的是使其易于生成可重复的测试结果。
FakeTestsZipFolder 一种测试夹具,根据内容列表创建伪造的未压缩测试文件夹。
FakeTestsZipFolder.ItemType
FastbootCommandPreparer 触发快速启动并发送快速启动命令的目标准备器。
FastbootDeviceFlasher 依靠fastboot来在物理Android硬件上刷新图像的类。
FastbootHelper 快速启动操作的帮助程序类。
FatalHostError 一个异常,指示运行TradeFederation的主机上发生了致命的不可恢复的错误,并且应关闭TradeFederation实例。
FileCleaner ITargetCleaner ,在拆卸时删除文件系统文件
FileDownloadCache 一个助手类,用于维护下载文件的本地文件系统LRU缓存。
FileDownloadCacheFactory 创建FileDownloadCache的工厂
FileDownloadCacheWrapper 一个包装器类,在实现IFileDownloader接口时提供FileDownloadCache功能。
FileIdleMonitor 监视文件并在文件空闲时执行回调(即,
FileInputStreamSource 一个接受输入文件的InputStreamSource
文件记录器 ILeveledLogOutput ,它将日志消息定向到文件和stdout。
FileProtoResultReporter TestRecord转储到文件中的原始记者。
FilePullerDeviceMetricCollector 一个BaseDeviceMetricCollector ,它侦听来自设备的指标密钥,并将其作为文件从设备中拉出。
FilePullerLogCollector 设备端报告的文件的记录器。
FileSystemLogSaver 将日志保存到文件系统。
FileUtil 文件相关操作的帮助程序类
FileUtil.LowDiskSpaceException 如果可用磁盘空间低于最小阈值,则抛出该异常。
FilteredResultForwarder ResultForwarder变体,仅允许报告TestDescription的白名单。
FixedByteArrayOutputStream 内存中的ERROR(/OutputStream)仅保留最大数据量。
FlashingResourcesParser 解析闪存设备所需的辅助映像文件的必需版本的类。
FlashingResourcesParser.AndroidInfo Map&lt;String, MultiMap&lt;String, String&gt;&gt; typedef 。
FlashingResourcesParser.Constraint 筛选接口,旨在允许FlashingResourcesParser忽略其可能使用的某些资源
FolderBuildInfo IFolderBuildInfo具体实现。
文件夹保护程序 一个ITargetCleaner ,可将目录从设备中拉出,压缩并将其保存到日志记录后端。
FormattedGeneratorReporter 记者,可以生成特定格式的报告。

G

GceAvdInfo 用于保存给定GCE AVD实例的相关数据的结构。
GceAvdInfo.GceStatus
GceManager 管理GCE的帮助程序调用以启动/停止并从GCE收集日志。
GceRemoteCmdFormatter 用于格式化命令以到达远程gce设备的实用程序类。
GceRemoteCmdFormatter.ScpMode 根据args的结构,SCP可用于推入或拉出文件。
GceSshTunnelMonitor Gce ssh隧道的线程监视器。
GCSBucketUtil 文件管理器,用于从Google Cloud Storage(GCS)下载和上传文件。
GCSBucketUtil.GCSFileMetadata GCS中文件信息的简单包装。
GCSCommon Gcs操作(例如下载和上传)的基类。
GCSConfigurationFactory ConfigurationFactory从Google Cloud Storage加载配置。
GCSConfigurationFactory.GCSConfigLoader ConfigurationFactory.ConfigLoader扩展,它从GCS加载配置,从一个根配置跟踪包含的配置,并在循环包含中引发异常。
GCSConfigurationServer 配置服务器从Google Cloud Storage(GCS)加载配置。
GCSDownloaderHelper GCS存储桶的下载程序,负责缓存和解析全局配置。
GCSFileDownloader 文件下载器,可从Google云存储(GCS)下载文件。
GCSFileUploader 文件上传器,用于将文件数据上传到Google云存储(GCS)。
GCSHostResourceManager 从GCS(Google云存储)下载主机资源。
GcsRemoteFileResolver IRemoteFileResolver实现,允许从GCS存储桶下载。
GCSTestResourceProvider 从GCS下载测试资源。
全局配置 一个IGlobalConfiguration实现,将已加载的配置对象存储在映射中
GoogleApiClientUtil 用于创建Google API客户端的实用程序。
GoogleBenchmarkResultParser 解析从shell运行的Google Benchmark的结果,并返回包含所有结果的地图。
GoogleBenchmarkTest 在给定设备上运行Google基准测试程序包的测试。
GranularRetriableTestWrapper 包装类在IRemoteTest上工作,以在测试用例级别对IRemoteTest进行细化。
GraphicsStatsMetricCollector ScheduledDeviceMetricCollector用于定期收集图形统计信息。
GTest 在给定设备上运行本机测试包的测试。
GTestBase gTest的基类
GTestListTestParser 参数为“ --gtest_list_tests”的gtest空运行模式的结果解析器。
GTestResultParser 使用从外壳程序运行的GTest解析本机测试的“原始输出模式”结果,并将结果通知ITestInvocationListener。
GTestXmlResultParser 使用从外壳程序运行的GTest解析本机测试的“ xml输出模式”结果,并将结果通知ITestRunListener。

H

HeapHostMonitor AbstractHostMonitor实现,用于监视主机上的堆内存并将其定期记录到历史日志中。
HelloWorldMultiTargetPreparer IMultiTargetPreparer的示例实现。
历史记录器 TF History Logger,仅包含一些特定事件的特殊日志。
HostGTest 运行本机测试包的测试。
主机指标 此类表示要报告的主机指标样本。
主机选项 主机期权持有人类别。
HostStatsdMetricCollector 一个IMetricCollector ,它使用statsd实用程序命令从主机侧收集statsd度量。
主机测试 基于JUnit主机测试的测试运行程序。
HprofAllocSiteParser 帮助程序类,用于从hprof报告的“分配站点”部分中解析信息。
HttpHelper 包含用于发出http请求的辅助方法
HttpHelper.RequestRunnable 可运行以通过IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult)发出请求。
HttpMultipartPost 发出多部分HTTP发布请求的Helper类。

一世

艾比 代表被测ABI的界面。
IAbi接收器 需要被测ABI的测试。
IAndroidDebugBridge 此包中使用的AndroidDebugBridge方法的接口定义。
IAppBuildInfo *一个IBuildInfo ,代表一个Android应用程序及其测试包。
电池温度
iBuildInfo 包含有关被测构建的信息。
IBuildInfo.BuildInfoProperties IBuildInfo可能必须调整某些属性才能对其进行一些处理。
IBuildProvider 负责提供有关正在测试的构建的信息。
IBuildReceiver 需要参考被测构建的测试。
ICommandOptions 命令执行选项的容器。
ICommandScheduler 运行TradeFederation命令的调度程序。
ICommandScheduler.IScheduledInvocationListener 调用完成时的调用事件侦听器。
ICompressionStrategy 表示可以在运行时选择的压缩算法的接口。
配置 TradeFederation调用的配置信息。
IConfigurationFactory 用于创建IConfiguration的工厂
IConfigurationReceiver 表示接受IConfiguration对象的简单接口。
IConfigurationServer 配置服务器的接口。
IDeviceBuildInfo 一个IBuildInfo ,代表完整的Android设备版本及其(可选)测试。
IDeviceBuildProvider 一个IBuildProvider ,它使用来自ITestDevice信息来检索构建。
IDeviceConfiguration 设备配置持有人接口。
IDeviceFlasher 在设备上闪烁设备图像。
IDeviceFlasher.UserDataFlashOption 枚举用于处理用户数据图像的选项
IDeviceManager 用于管理一组可用设备进行测试的界面。
IDeviceManager.IFastbootListener 快速启动状态更改的侦听器。
IDeviceMonitor 监视设备状态的接口。
IDeviceMonitor.DeviceLister Runnable的类,应返回已知设备及其状态。
IDeviceRecovery 恢复离线设备的界面。
IDeviceSelection 设备选择标准的界面。
IDeviceStateMonitor 提供监视IDevice状态的工具。
IDeviceTest 需要引用ITestDevice对象的接口。
可识别的 描述可以禁用的Tradefed对象的接口。
邮件 发送电子邮件的界面。
IEmail.Message 电子邮件数据的容器。
IFileDownloader 下载远程文件的界面。
IFileEntry 提供给FileEntry方法更简单,可模拟的协定的接口定义。
IFlashingResourcesParser 用于提供刷新设备所需的辅助映像文件的所需版本的接口。
IFlashingResourcesRetriever 用于检索刷新设备所需的辅助图像文件的界面。
IFolderBuildInfo 一个简单的抽象IBuildInfo其构建工件包含在本地文件系统目录中。
IFormatterGenerator 描述SuiteResultHolder格式化程序的SuiteResultHolder
IGlobalConfiguration 包含单个Trade Federation实例的全局配置信息的类(包括对实际配置的任意数量的调用)。
IHostCleaner 测试运行完成后清理主机。
IHostHealthAgent 发出主机或设备指标的接口。
IHostMonitor 调度主机数据的接口
IHostMonitor.HostDataPoint 要报告的数据的通用类。
IHostMonitor.HostMetricType
IHostOptions 主机选项持有者界面。
IHostResourceManager 与管理器主机资源的接口。
IHttpHelper 用于执行http请求的辅助方法。
IHttpHelper.DataSizeException
IInvocationContext 保留有关调用的信息,以便在需要时访问测试。
IInvocationContext.TimingEvent
IInvocationContextReceiver 需要参考调用上下文的测试。
IInvocationExecution 该接口描述了将作为调用的一部分执行的操作。
IKeyStoreClient 用于访问密码或敏感数据的密钥库的界面。
IKeyStoreFactory 用于创建IKeyStoreClient工厂。
ILeveledLogOutput 实现此接口的类提供处理输出日志消息的方法。
ILogcat接收器 一个类,提供设备logcat的输出作为InputStreamSource
ILogRegistry ILogOutput单例记录器的接口,用于多路复用和管理不同的记录器。
ILogRegistry.EventType 有助于记录的事件
ILogSaver 实现此接口的类提供了用于将日志存储到中央位置的方法。
ILogSaverListener 保存日志文件时,允许ITestInvocationListener侦听。
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 This interface will be added as a decorator when reporting tests results in order to collect matching metrics.
IMetricCollectorReceiver Interface for IRemoteTest s to implement if they need to get the list of IMetricCollector s for the test run.
IModuleController Interface for controlling if a module should be executed or not.
IModuleController.RunStrategy Enum describing how the module should be executed.
IModuleParameter The interface for parameters of suites modules.
IMultiDeviceRecovery Interface for recovering multiple offline devices.
IMultiDeviceTest A test that needs reference to all the ITestDevice and their associated IBuildInfo

Most tests should not have a dependency on the build-under-test, and should rely on ITargetPreparer s to prepare the test environment.

IMultiTargetPreparer Prepares the test environment for several devices together.
INativeDevice Provides an reliable and slightly higher level API to a ddmlib IDevice .
INativeDeviceTest Interface for object that needs a reference to a INativeDevice .
IncidentReportCollector Pulls and processes incident reports that are reported device-side.
InputStreamSource This interface basically wraps an ERROR(/InputStream) to make it clonable.
InstallAllTestZipAppsSetup A ITargetPreparer that installs all apps in a test zip.
InstallApexModuleTargetPreparer
InstallApkSetup A ITargetPreparer that installs one or more apks located on the filesystem.
InstallBuildEnvApkSetup A ITargetPreparer that installs one or more test apks from an Android platform build env.
InstalledInstrumentationsTest Runs all instrumentation found on current device.
InstantAppHandler Handler for ModuleParameters#INSTANT_APP .
InstrumentationPreparer A ITargetPreparer that runs instrumentation
InstrumentationTest A Test that runs an instrumentation test package on given device.
InvocationContext Generic implementation of a IInvocationContext .
InvocationData Class holding all the data related to an invocation.
InvocationExecution Class that describes all the invocation steps: build download, target_prep, run tests, clean up.
InvocationFailureEmailResultReporter An EmailResultReporter that can also restrict notifications to just invocation failures.
InvocationScope Scopes a single Tradefed invocation.
InvocationScoped
InvocationScopeModule Guice module that can be used anywhere in a TF invocation to requests the Guice-Tradefed supported objects.
InvocationsMonitor A monitor associated with the Tradefed instance in progress.
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 .
InvocationTracker Information stored for a particular invocation (parent and all its shards).
IonHeapInfoMetricCollector A ScheduledDeviceMetricCollector to collect audio and system memory heaps at regular intervals.
IPostProcessor Post processors is a Trade Federation object meant to allow the processing of metrics and logs AFTER the tests and BEFORE result reporting.
IRemoteFileResolver Interface for objects that can resolve a remote file into a local one.
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.
IResumableTest An IRemoteTest that supports resuming a previous aborted test run from where it left off.
IRetriableTest A IRemoteTest that supports retrying if the test aborted before completion.
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.
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.
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 Cleans up the target device after the test run has finished.
ITargetPreparer Prepares the test environment for the test run.
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
ITestDeviceMutator An interface allowing manipulation of the IManagedTestDevice .
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.
ITestInvocation Handles one TradeFederation test 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.
ITestSuite Abstract class used to run Test Suite.
ITestSuite.RetryStrategy The Retry Strategy to be used when re-running some tests.
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

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(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.
KeyValueConfigPreparer A ITargetPreparer which creates and pushes a simple key/value config file to the device.

L

LargeOutputReceiver A class designed to help run long running commands collect output.
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 class for freezed subprocess results reporter which is compatible with M & N version of CTS.
ListInstrumentationParser A IShellOutputReceiver that parses the output of a 'pm list instrumentation' query
ListInstrumentationParser.InstrumentationTarget
LocalAppBuildProvider A IBuildProvider that constructs a IAppBuildInfo based on a provided local path
LocalDeviceBuildProvider A IBuildProvider that constructs a IDeviceBuildInfo based on a provided filesystem directory path.
LocalFolderBuildProvider A IBuildProvider that constructs a IFolderBuildInfo based on a provided local path
LocalHostResourceManager Manager host resource.
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 Parse logcat input for events.
LogcatEventParser.LogcatEvent Struct to hold a logcat event with the event type and triggering logcat message
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.
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

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
MemInfoMetricCollector A ScheduledDeviceMetricCollector to collect memory dumps at regular intervals.
MergeMultiBuildTargetPreparer A IMultiTargetPreparer that allows to pass information from one build to another by naming them and the file key to copy to the other build.
MergeStrategy Describes how the results should be aggregated when multiple attempts are present.
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.
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.
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.
ModuleParameters Special values associated with the suite "parameter" keys in the metadata of each module.
ModuleParametersHelper Helper to get the IModuleParameter associated with the parameter.
ModuleSplitter Helper to split a list of modules represented by IConfiguration into a list of execution units represented by ModuleDefinition .
MultiMap <K, V> A ERROR(/Map) that supports multiple values per key.
MultiUserSetupUtil Utility to create another user in Cuttlefish VM.

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.
NativeCodeCoverageListener A ResultForwarder that will pull native coverage measurements off of the device and log them as test artifacts.
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.
NativeDeviceStateMonitor Helper class for monitoring the state of a IDevice with no framework support.
NativeLeakCollector A ITargetCleaner that runs 'dumpsys meminfo --unreachable -a' to identify the unreachable native memory currently held by each process.
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 Special preparer that allows to skip an invocation completely (preparation and tests) if there are no apks to tests.
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.
NullDevice A placeholder IDevice used by DeviceManager to allocate when IDeviceSelection#nullDeviceRequested() is true
NullUtil A class with utility functions to help with dealing with null

O

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.
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.
OtaToolsDeviceBuildInfo An OtaDeviceBuildInfo that also contains an otatools directory.
OtaZipfileBuildProvider Provides a IBuildInfo based on a local OTA zip file.

P

PackageInfo Container for an application's package info parsed from device.
PagetypeInfoMetricCollector A ScheduledDeviceMetricCollector to collect free page counts at regular intervals.
Pair <A, B> Define our own Pair class which contains two objects.
ParentSandboxInvocationExecution Version of InvocationExecution for the parent invocation special actions when running a sandbox.
PerfettoPreparer Perfetto preparer pushes the config file in to the device at a standard location to which perfetto have access.
PerfettoPullerMetricCollector Base implementation of FilePullerDeviceMetricCollector that allows pulling the perfetto files from the device and collect the metrics from it.
PreloadedClassesPreparer A ITargetPreparer that replaces the preloaded classes file on a device.
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 and NAME) information.
ProcessMaxMemoryCollector A ScheduledDeviceMetricCollector to measure peak memory usage of specified processes.
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.
PsParser Utility used to parse(USER,PID and NAME) from the "ps" command output
PushFileInvoker A ITargetPreparer that pushes files from tests zip onto device, mark them as executable and invokes the binary or script on device.
PushFilePreparer A ITargetPreparer that attempts to push any number of files from any host path to any device path.
PythonBinaryHostTest Host test meant to run a python binary file from the Android Build system (Soong)
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 This class is deprecated. Use PythonBinaryHostTest instead.
PythonVirtualenvPreparer Sets up a Python virtualenv on the host and installs packages.

Q

QuotationAwareTokenizer

R

RebootReasonCollector Collector that collects device reboot during the test run and report them by reason and counts.
RebootTargetPreparer Target preparer that reboots the device.
ReconnectingRecovery Recovers a device by re-establishing a TCP connection via the adb server on the host.
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.
RemoveSystemAppPreparer A ITargetPreparer for removing an apk from the system partition before a test run.
RestartSystemServerTargetPreparer Target preparer that restarts the system server without rebooting the device.
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.
RetryingWaitDeviceRecovery A WaitDeviceRecovery which retries its recovery step either indefinitely or for a certain number of iterations.
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.
RootTargetPreparer Target preparer that performs "adb root".
RunCommandTargetPreparer
RunConfigDeviceRecovery Generic base IMultiDeviceRecovery to run a tradefed configuration to do the recovery step.
RunHostCommandTargetPreparer Target preparer to run arbitrary host commands before and after running the test.
RunInterruptedException Thrown when a run operation is interrupted by an external request.
RunNotifierWrapper Wrapper of RunNotifier so we can carry the DeviceNotAvailableException .
RuntimeRestartCollector Collector that collects timestamps of runtime restarts (system server crashes) during the test run, if any.
RunUtil A collection of helper methods for executing operations.

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 .
ScheduledDeviceMetricCollector A IMetricCollector that allows to run a collection task periodically at a set interval.
ScheduleMultipleDeviceMetricCollector A IMetricCollector that makes runs multiple metric collectors periodically.
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.
SecondaryUserHandler Handler for ModuleParameters#SECONDARY_USER .
SemaphoreTokenTargetPreparer This is a preparer used to use token to serialize test excution in tradefed host.
SerializationUtil Utility to serialize/deserialize an object that implements ERROR(/Serializable) .
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.
ShardMasterResultForwarder 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.
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.
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.
StopServicesSetup A ITargetPreparer that stops services on the device.
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
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
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
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.
SwitchUserTargetPreparer A ITargetPreparer that switches to the specified user kind in setUp.
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 Allows for running tearDown on preparers that are included in a config as an object.
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.
TemperatureCollector A ScheduledDeviceMetricCollector to measure min and max device temperature.
TemperatureThrottlingWaiter An ITargetPreparer that waits until device's temperature gets down to target
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.
TestDescription Class representing information about a test case.
TestDevice Implementation of a ITestDevice for a full stack android device
TestDeviceMutator Default implementation of ITestDeviceMutator
TestDeviceOptions Container for ITestDevice Option s
TestDeviceOptions.InstanceType
TestDeviceState A more fully featured representation of device state than DeviceState .
TestFailureEmailResultReporter An EmailResultReporter that can also restrict notifications to just test failures.
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.
TestFilePushSetup A ITargetPreparer that pushes one or more files/dirs from a IDeviceBuildInfo#getTestsDir() folder onto device.
TestFilterHelper Helper class for filtering tests
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
TestLoader A class for loading all JUnit3 tests in a jar file
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.
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.
TestResult Container for a result of a single test.
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 A ITargetPreparer that installs one or more apps from a IDeviceBuildInfo#getTestsDir() folder onto the /system partition on device.
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.
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.
TimeSetterTargetPreparer Target preparer to restore the correct time to the device on cleanup.
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 .
TimeWaster A simple target preparer to waste time and potentially restart the device.
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.
TopHelper Helper class which runs top continuously on an ITestDevice and parses the output.
TopHelper.TopStats Class for holding the parsed output for a single top output.
TraceCmdCollector A IMetricCollector that collects traces during the test using trace-cmd, and logs them to the invocation.
TraceMetricCollector A ScheduledDeviceMetricCollector to collect kernel debug trace at regular intervals.
TradefedSandbox Sandbox container that can run a Trade Federation invocation.
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.
UserChecker Checks if users have changed during the test.
UserCleaner A ITargetCleaner that removes secondary users on teardown.
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
Verify Alternate Trade Federation entrypoint to validate command files
VersionedFile Data structure representing a file that has an associated version.
VersionedTfLauncher A IRemoteTest for running tests against a separate TF installation.
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 A ITargetPreparer that waits for datetime to be set on device

Optionally this preparer can force a TargetSetupError if datetime is not set within timeout, or force host datetime onto device,

WifiHelper Helper class for manipulating wifi services on device.
WifiPreparer A ITargetPreparer that configures wifi on the device if necessary.

X

XmlDefsTest Runs a set of instrumentation test's defined in test_defs.xml files.
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.
XmlRpcHelper A mechanism to simplify writing XmlRpc.
XmlSuiteResultFormatter Utility class to save a suite run as an XML.
XmlSuiteResultFormatter.RunHistory Helper object for JSON conversion.

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