類別索引

這些是 API 類。查看所有API 包

A

解析器通過解析“aapt dump badging”的輸出從 apk 中提取信息的類。
AaptParser.Aapt版本用於解析 APK 文件的 AAPT 版本選項枚舉。
阿比代表 ABI 的類。
Abi格式化程序abi 的實用程序類。
能力工具用於處理設備 ABI 的實用程序類
抽象連接抽象連接表示。
抽象主機監視器主機健康監控的典型類。
抽象Xml解析器用於解析 xml 文件的 Helper 基類
AbstractXmlParser.ParseException如果無法解析 XML 輸入,則拋出此異常
AcloudConfigParser解析 Acloud 配置的幫助程序類(用於啟動雲設備實例)。
AcloudConfigParser.AcloudKeys可以從配置中搜索的鍵集。
行動進行中一般行動正在進行中。
主動追踪主類幫助描述和管理活動跟踪。
活動狀態檢查器在模塊末尾運行的剩餘活動的狀態檢查器。
AdbRootElevator一個AutoCloseable ,可在需要時啟用 adb root,並在完成時恢復 root 狀態。
AdbSSH連接通過 ssh 橋的 Adb 連接。
AdbStopServerPreparer目標準備器在運行 adb 測試之前和之後停止主機上的 adb 服務器。
AdbTcp連接設備的默認連接表示,假定為設備的標準 adb 連接。
輔助工具用於 adb 操作的實用程序類。
課後信息AfterClass類似的保證,但帶註釋的方法必須需要TestInformation參數。
聚合後處理器一個度量聚合器,提供多次迭代測試運行期間收集的數字度量的最小值、最大值、平均值、方差、標準差、總計、計數和可選的百分位數,並將它們視為雙精度。
AllTestApps安裝設置一個ITargetPreparer ,用於將IDeviceBuildInfo#getTestsDir()文件夾中的所有應用程序安裝到設備上。
AltDir行為用於定義各種測試工件安裝程序/推送程序的替代目錄行為的枚舉

AndroidJUnit測試使用 android.support.test.runner.AndroidJUnitRunner 在給定設備上運行儀器測試包的測試。
Aoa目標準備器ITargetPreparer使用 Android Open Accessory (AOAv2) 協議執行一系列操作(例如單擊和滑動)。
應用程序構建信息表示 Android 應用程序及其測試包的IBuildInfo
應用程序設備構建信息該類已被棄用。直接使用IDeviceBuildInfo
應用程序設置一個ITargetPreparer ,用於安裝 apk 及其測試。
應用程序版本獲取器用於從設備獲取應用程序版本字符串的實用程序類。
AppVersionFetcher.AppVersionInfo應用程序版本信息類型。
ArchModule控制器模塊控制器在與任何給定架構不匹配時不運行測試。
參數選項解析器從解析的命令行參數填充Option字段。
數組工具數組的實用方法
ArtChrootPreparer為 ART 測試創建 chroot 目錄。
藝術G測試
藝術運行測試用於運行 ART 運行測試的測試運行程序。
ArtRunTest.AdbShellCommandException一個異常類,用於報告執行 ADB shell 命令期間發生的錯誤。
ATestFileSystemLogSaver ATest 使用該 LogSaver 類將日誌保存在特定路徑中。
測試跑者ITestSuite的實現
Atrace收集器IMetricCollector在測試期間運行 atrace 並收集結果並將其記錄到調用中。
AtraceRunMetricCollector從測試設備的給定目錄下的所有測試目錄收集跟踪,記錄測試目錄並對測試目錄下的跟踪文件進行後處理並聚合指標。
自動日誌收集器描述線束可以自動處理哪個收集器的枚舉。
自動報告器定義來自 Tradefed 自動報告器的映射的類。
平均後處理器計算指標列表平均值的後處理器的實現。

背景設備動作在給定設備上運行命令,根據需要重複運行,直到操作被取消。
基礎設備指標收集器IMetricCollector的基本實現,允許在onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map))上啟動和停止收集。
基礎仿真器準備器用於啟動本地模擬器的通用準備器。
BaseHostJUnit4測試用於運行主機 JUnit4 樣式測試的基測試類。
基本級別日誌輸出ILeveledLogOutput的基本實現,允許根據標籤的名稱或組件過濾某些標籤。
基礎模塊控制器IModuleController的基本實現,應該實現它來檢查模塊是否應該運行。
基礎多目標準備器IMultiTargetPreparer的基本實現,允許禁用該對象。
基礎後處理器每個實現都應該擴展的基本IPostProcessor
基本重試決策IRetryDecision的基本實現。
BaseStreamLogger <OS 擴展 OutputStream> ILeveledLogOutput將日誌消息定向到輸出流和標準輸出。
基礎目標準備器ITargetPreparer的基本實現類,允許控制對像是否被禁用。
基礎測試套件與新套件系統運行兼容性測試套件的測試。
電池控制器允許控制設備的電池充電狀態的實用程序類。
電池充電設備恢復允許在設備的電池電量低於給定閾值時觸發命令。
電池溫度
電池不可用設備恢復如果電池電量不可用,恢復檢查器將觸發配置。
課前帶信息BeforeClass類似的保證,但帶註釋的方法必須需要TestInformation參數。
二元狀態用於記錄 ON/OFF 狀態和 IGNORE 無操作狀態的枚舉。
藍牙連接延遲收集器收集器會將預定義的 statsd 持續時間指標配置推送到設備,並收集每個配置文件的藍牙連接持續時間。
藍牙連接狀態收集器該收集器將收集BluetoothConnectionStateChanged 指標並記錄每個配置文件的連接狀態編號。
藍牙連接成功率後處理器計算藍牙配置文件成功率的後處理器的實現

使用“metric-key-match”指定包含數字數組示例中的藍牙連接狀態的指標 [0, 1, 2, 3, 0, 1, 2, 3]。

藍牙HciSnoopLogCollector收集器,用於在 DUT 上啟用藍牙 HCI 監聽日誌記錄並收集每個測試的日誌。
藍牙實用程序用於在設備上調用BluetoothInstrumentation的實用函數

設備端BluetoothInstrumentation代碼可以在AOSP中找到: frameworks/base/core/tests/bluetoothtests

Bootstrap構建提供者從測試設備引導構建信息的IDeviceBuildProvider

這通常用於具有外部提供構建的設備,即

BootstrapService文件解析器加載器使用服務加載工具加載解析器。
錯誤報告保存錯誤報告文件引用的對象,與平面錯誤報告和壓縮錯誤報告(bugreportz)兼容。
錯誤報告收集器一個傳遞ITestInvocationListener ,它在可配置事件發生時收集錯誤報告,然後在收集每個錯誤報告後在其子級上調用ITestInvocationListener#testLog
BugreportCollector.Filter
BugreportCollector.Freq
BugreportCollector.名詞
BugreportCollector.Predicate描述何時捕獲錯誤報告的完整謂詞。
BugreportCollector.Relation
BugreportCollector.SubPredicate
BugreportzOnFailureCollector當測試用例失敗時收集錯誤報告。
BugreportzOnTestCaseFailureCollector當運行中的測試用例失敗時收集錯誤報告。
構建錯誤如果提供的構建無法運行,則拋出該異常。
構建信息應與ITestDevice關聯的IBuildInfo的通用實現。
構建信息鍵保存與構建信息查詢相關的枚舉的類。
BuildInfoKey.BuildInfoFileKey描述可通過IBuildInfo.getFile(com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey)查詢的所有已知文件類型的枚舉。
構建信息記錄器將構建信息元數據寫入指定文件的ITargetPreparer
構建信息工具幫助操作IBuildInfo util 類
構建檢索錯誤檢索構建進行測試時發生致命錯誤。
構建序列化版本包含所有IBuildInfo的當前序列化版本的類。
構建測試ZipUtils Android 構建系統生成的測試 zip 相關操作的輔助類
群發郵件程序電子郵件發送實用程序,允許進行以下配置:發送間隔、初始突發大小、收件人和郵件總數。
捆綁工具工具使用bundletool命令行在設備上安裝.apks的實用程序類。
字節數組輸入流源
字節數組列表表示輕量級字節數組的類。
字節數組實用程序對字節數組進行操作的實用程序,例如將字節轉換為整數。

C

汽車模塊控制器該控制器阻止在非汽車設備上執行測試用例。
攜帶DNA錯誤通過 JUnit4 框架攜帶DeviceNotAvailableException內部RuntimeException
攜帶中斷異常當觸發測試階段超時並且需要將 InterruptedException 從測試執行線程攜帶到調用執行線程時拋出。
CDMA設備閃存器在具有 CDMA 無線電的物理 Android 設備上閃爍圖像的類。
CecControllerTokenProvider消費電子控制 (CEC) 相關代幣的代幣提供商。
中央目錄信息CentralDirectoryInfo 是一個包含 zip 文件內文件/文件夾信息的類。
檢查配對準備器CompanionAwarePreparer ,用於驗證主設備和配套設備之間的 BT 綁定
循環AtraceUtil開發的 atrace 實用程序主要用於識別 Monkey 測試期間 ANR 的根本原因。
循環字節數組用於保存固定大小數組的數據結構,該數組作為循環緩衝區運行,並跟踪數組中所有值的總和。
ClangCodeCoverageCollector BaseDeviceMetricCollector將從設備中提取 Clang 覆蓋率測量結果並將其記錄為測試工件。
類未找到配置異常當未找到對象的類時會出現ConfigurationException
類路徑掃描器查找類路徑上的條目。
ClassPathScanner.ClassNameFilter過濾和轉換 java 類名的IClassPathFilter
ClassPathScanner.ExternalClassNameFilter拒絕內部類的ClassNameFilter
ClassPathScanner.IClassPathFilter類路徑入口路徑的過濾器

FileFilter之後進行圖案化

發條工具用於共享多設備邏輯的發條實用程序
CloseableTraceScope一個作用域類,允許通過 try-with-resources 報告跟踪部分
集群構建信息用於從 TFC 管道傳輸的構建的IBuildInfo類。
集群構建提供者用於下載 TFC 測試資源的IBuildProvider
集群客戶端用於與 TFC 後端交互的IClusterClient實現。
集群命令表示從 TF Cluster 獲取的任務的類。
ClusterCommand.RequestType
ClusterCommand.State TF 集群中命令的狀態。
集群命令配置生成器為集群命令構建配置文件的類。
集群命令事件封裝要上傳的集群命令事件的類。
ClusterCommandEvent.Builder
ClusterCommandEvent.Type
集群命令啟動器一個IRemoteTest類,用於通過子進程 TF 從 TFC 啟動命令。
集群命令調度器支持 TFC(Tradefed Cluster)的ICommandScheduler
集群命令狀態表示來自 TF Cluster 的命令的狀態和取消原因的類。
集群設備信息封裝待上傳集群設備信息的類。
ClusterDeviceInfo.Builder
集群設備監控向 Tradefed 集群服務報告結果的IDeviceMonitor實現。
ClusterEventUploader <T 擴展IClusterEvent > ClusterEventUploader類,將IClusterEvent上傳到TFC。
集群主機事件封裝要上傳的集群主機事件的類。
ClusterHostEvent.Builder
ClusterHostEvent.HostEventType不同類型的主機事件的枚舉。
集群主機工具TF Cluster 的靜態 util 函數用於獲取全局配置實例、主機信息等。
集群日誌保存器用於將測試輸出上傳到 TFC 的ILogSaver類。
ClusterLogSaver.FilePickingStrategy文件選取策略。
集群選項
代碼覆蓋率測試在給定設備上運行儀器測試包並生成代碼覆蓋率報告的測試。
收集字節輸出接收器一個IShellOutputReceiver將整個 shell 輸出收集到一個byte[]中。
收集輸出接收器一個IShellOutputReceiver ,它將整個 shell 輸出收集到一個String中。
收集測試監聽器將收集所有測試結果的ITestInvocationListener
收藏助手幫助程序在多個地方執行一些需要的IMetricCollector操作。
命令文件解析器包含命令行集的文件的解析器。
CommandFileParser.CommandLine
命令中斷器允許 TradeFederation 命令被中斷或標記為不可中斷的服務。
命令行構建信息構建器實用程序旨在從命令行捕獲常用的構建信息參數並從中創建IBuildInfo
命令選項ICommandOptions的實現。
命令選項Getter返回給定調用的命令選項值的服務實現。
命令結果包含命令的結果。
指揮跑者另一個 TradeFederation 入口點,將運行命令行參數中指定的命令,然後退出。
CommandRunner.退出代碼可以退出的錯誤代碼。
命令調度程序用於在所有可用設備上運行 TradeFederation 命令的調度程序。
CommandScheduler.HostState主機不同狀態的枚舉
命令狀態表示定時操作的狀態。
命令狀態處理程序處理程序幫助監視和更新調用的狀態。
通用日誌遠程文件實用程序該實用程序可以避免在公共文件的遠程日誌獲取邏輯的不同遠程設備表示之間出現代碼重複。
CommonLogRemoteFileUtil.KnownLogFileEntry遠程設備的已知日誌條目的表示。
同伴分配器負責分配和釋放配套設備的基類

應實現getCompanionDeviceSelectionOptions()來描述分配配套設備所需的標準

CompanionAwarePreparer一個ITargetPreparer ,封裝了獲取已分配的配套設備的邏輯。
同伴感知測試封裝獲取和檢查配套設備樣板的基本測試類

子類可以調用getCompanion()來檢索分配的同伴。

配套設備追踪器用於分配和釋放配套設備的類
CompanionRunCommandTargetPreparer在分配的配套設備上運行指定命令的ITargetPreparer
CompanionTestApp安裝設置一種ITargetPreparer ,用於將IDeviceBuildInfo#getTestsDir()文件夾中的一個或多個應用程序安裝到分配的配套設備上。
CompileBootImageWithSpeedTargetPreparer使用編譯器過濾器“speed”重新編譯啟動類路徑和系統服務器。
狀態故障監視器監視調用中是否有任何失敗。
ConditionPriorityBlockingQueue <T>具有類似ERROR(/PriorityBlockingQueue)操作的線程安全類,可以檢索與特定條件匹配的對象。
ConditionPriorityBlockingQueue.AlwaysMatch <T>與任何對象匹配的ConditionPriorityBlockingQueue.IMatcher
ConditionPriorityBlockingQueue.IMatcher <T>用於確定元素是否符合某種條件的接口。
配置完成器為我們的 TF 配置實現Completer
配置一個具體的IConfiguration實現,它將加載的配置對象存儲在映射中。
配置定義保存配置、其關聯對象及其選項的記錄。
配置Def.ConfigObjectDef保存類名信息及其外觀編號的對象(例如,如果一個配置兩次具有相同的對象,則第一個將具有第一個外觀編號)。
配置描述符配置對象描述配置本身的某些方面。
ConfigurationDescriptor.LocalTestRunner枚舉用於指示本地測試運行程序。
配置異常如果無法加載配置則拋出該異常。
配置工廠用於創建IConfiguration工廠。
配置工廠.ConfigLoader IConfigDefLoader 的實現,跟踪一個根配置中包含的配置,並在循環包含時引發異常。
ConfigurationFactory.ExceptionLoader
配置工具處理配置文件的實用函數。
配置XmlParser設置接受 ConfigurationXmlParser 設置的簡單類

要將設置傳遞給此類,別名是必需的。

配置Yaml解析器YAML 風格 Tradefed 配置的解析器
配置工具用於創建、交互和推送 statsd 配置文件的實用程序類。
ConfigUtil.LogSource
安慰TradeFederation 主控制台為用戶提供交互界面

目前支持以下操作

  • 添加一個命令來測試
  • 列出設備及其狀態
  • 列出正在進行的調用
  • 列出隊列中的命令
  • 將調用日誌轉儲到文件/stdout
  • 關閉
Console.ArgRunnable <T>具有可以接受參數的run方法的Runnable
控制台.CaptureList List<List<String>>的便捷類型
控制台讀取器輸出流一個 OutputStream,可用於使System.out.print()與用戶的LineReader unfinishedLine 配合良好。
控制台結果報告器結果報告器將測試結果打印到控制台。
內容提供者處理程序抽象內容提供者交互並允許使用設備端內容提供者進行不同操作的處理程序。
計數測試結果監聽器一個TestResultListener ,通過TestStatus跟踪測試總數
計數測試用例收集器計算並報告給定IRemoteTest測試用例數量。
覆蓋測量轉發器佔位符測試,將覆蓋率測量結果從構建提供者轉發到記錄器。
覆蓋範圍選項Tradefed 反對持有承保期權。
CoverageOptions.Toolchain
CPU節流等待者ITargetPreparer等待所有內核的最大頻率恢復到可用的最高級別
創建AvdPreparer
創建用戶準備器用於創建用戶並在最後清理它的目標準備器。
當前調用一個類,用於跟踪並提供當前調用信息,該信息在調用內的任何位置都有用。
當前調用.調用信息我們將始終為調用填充一些特殊的命名鍵。
當前調用.隔離等級描述隔離級別

D

調試主機登錄失敗收集器當測試用例發生故障時,收集器將收集並記錄主機端日誌。
默認連接設備的默認連接表示,假定為設備的標準 adb 連接。
DefaultConnection.ConnectionBuilder Builder 用於描述連接。
默認遠程AndroidTestRunner ddmlib RemoteAndroidTestRunner的擴展,用於為 Tradefed 用例設置一些默認值。
默認測試Zip安裝程序測試 zip 安裝程序的默認實現。
委託調用執行InvocationExecution將執行委託給另一個 Tradefed 二進製文件。
依賴解析器一種新型的提供程序,允許獲取測試的所有依賴項。
設備分配結果表示命令分配嘗試的結果。
設備分配狀態從IDeviceManager角度表示設備的分配狀態
設備可用檢查器檢查器以確保模塊不會使設備處於離線狀態。
設備基線檢查器在每個模塊之前設置設備基線設置。
設備基線設置器用於創建設備基線設置的抽像類。
設備電池電量檢查器IRemoteTest檢查最低電池電量,如果不存在最低電量,則等待電池達到第二個充電閾值。
設備電池資源度量收集器該收集器收集設備電池指標。
設備構建描述符IBuildInfo的包裝類,包含用於檢索設備平台構建信息的幫助器方法。
設備構建信息表示完整 Android 設備構建及其(可選)測試的IBuildInfo
DeviceBuildInfoBootStrapper ITargetPreparer ,用從設備讀取的屬性替換構建信息字段

這對於測試具有從外部源生成的版本的設備非常有用(例如

設備構建信息注入器DeviceBuildDescriptor元數據插入IBuildInfo ITargetPreparer
設備清理器測試後執行重新啟動或格式化作為清理操作,並可選擇關閉屏幕
DeviceCleaner.CleanupAction
DeviceCleaner.PostCleanupAction
設備並發實用程序包含用於並發設備端命令執行的實用方法和類

使用ERROR(/ExecutorService)運行作為ShellCommandCallable實現的命令,並使用ERROR(/#joinFuture(String,Future,long))ERROR(/ExecutorService)返回的 ERROR ERROR(/Future)進行同步以執行命令。

DeviceConcurrentUtil.ShellCommandCallable <V>一個ERROR(/Callable) ,包含在ITestDevice上執行 shell 命令的詳細信息。
設備配置持有者一個具體的IDeviceConfiguration實現,將加載的設備配置對象存儲在其屬性中。
設備描述符包含描述被測設備信息的類。
設備斷開異常當設備無法再通過其傳輸類型訪問時拋出,例如,如果設備不再通過 USB 或 TCP/IP 連接可見
設備錯誤標識符來自設備錯誤和設備報告的錯誤的錯誤標識符。
設備啟動失敗錯誤如果設備在刷新構建後無法啟動,則會拋出該錯誤。
設備功能模塊控制器模塊控制器在不支持某些功能時不運行測試。
設備文件報告器一個實用程序類,用於檢查設備中是否有文件,如果找到,則將它們發送到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)
設備閃存準備器一個ITargetPreparer ,可在物理 Android 硬件上閃爍圖像。
設備可折疊狀態“cmd device_state print-states”返回的設備可折疊狀態的表示。
設備文件夾構建信息IDeviceBuildInfo還包含本地文件系統上的目錄中包含的其他構建工件。
DeviceImageZipFlashingTargetPreparer目標準備器,使用通過特定格式提供的設備圖像來刷新設備。
設備互聯網可訪問性資源度量收集器收集器 ping google.com 以檢查設備是否可以訪問互聯網。
DeviceJUnit4ClassRunner JUnit4 測試運行器也容納IDeviceTest
DeviceJUnit4ClassRunner.LogAnnotation虛假註釋的目的是向記者攜帶日誌。
DeviceJUnit4ClassRunner.MetricAnnotation虛假註釋旨在向記者傳達指標。
DeviceJUnit4ClassRunner.TestLogData ExternalResourceTestRule的實現。
DeviceJUnit4ClassRunner.TestMetrics ExternalResourceTestRule的實現。
設備管理Grpc服務器GRPC 服務器允許從 Tradefed 預留設備。
裝置經理
設備管理器.FastbootDevice處於快速啟動模式的設備的表示。
設備指標數據對象保存指標收集器收集的所有數據。
設備監控多路復用器用於將請求傳播到多個IDeviceMonitor代理類。
設備不可用異常當設備不再可用於測試時拋出。
設備所有者目標準備者用於設置設備所有者組件的ITargetPreparer
設備參數化運行器JUnit4 風格的參數化運行器,用於主機端驅動的參數化測試。
設備屬性設備端屬性名稱的通用常量定義
設備恢復模式實用程序
設備發布報告器設備釋放報告器處理與要釋放的設備的父進程的通信。
設備重置功能服務器端實現設備重置。
設備重置處理程序一般處理設備重置的實用程序。
設備運行時異常當設備操作未產生預期結果時拋出。
設備選擇選項設備選擇標準的容器。
DeviceSelectionOptions.DeviceRequestedType支持的不同可能類型的佔位符設備。
設備設置檢查器檢查模塊運行期間設備設置是否已更改。
設備設置一個ITargetPreparer ,根據提供的Option配置設備進行測試。
設備狀態監視器用於監視IDevice狀態的幫助程序類。
DeviceStorageAgeResourceMetricCollector從 logcat 解析存儲年齡。
設備存儲填充器目標準備器填充存儲空間,以便有一些可用空間。
設備存儲狀態檢查器檢查設備是否有足夠的磁盤空間用於給定分區。
設備字符串推送器目標準備器將字符串寫入文件。
設備套件擴展 JUnit4 容器Suite ,以便為需要它的測試提供ITestDevice
設備同步助手幫助將新設備映像同步到設備的助手。
設備測試用例提供IRemoteTestIDeviceTest服務的 Helper JUnit 測試用例。
設備測試結果TestResult的特化,當發生DeviceNotAvailableException時將中止
DeviceTestResult.RuntimeDeviceNotAvailableException
設備測試運行選項與通過 BaseHostJUnit4Test 運行設備測試相關的選項的構建器類。
設備測試套件Helper JUnit 測試套件提供IRemoteTestIDeviceTest服務。
設備跟踪收集器收集器將在測試運行開始時啟動 perfetto 跟踪並在結束時記錄跟踪文件。
設備不可用監視器此偵聽器僅嘗試捕獲測試用例級別的 DNAE。
設備無響應異常DeviceNotAvailableException的特化,表示設備對 adb 可見,但無響應(即命令超時、無法啟動等)
設備更新目標準備器一個抽象的ITargetPreparer ,負責使用外部源(而不是構建服務)的設備映像文件更新設備的常見步驟。
設備Wifi資源MetricCollector收集器收集當前連接的 WiFi 信號強度和鏈接速度指標。
設備擦拭器擦除用戶數據的ITargetPreparer
有向圖<V>有向未加權圖實現。
禁用SELinuxTargetPreparer目標準備器將禁用 SELinux(如果已啟用)。
DryRun密鑰庫用於空運行的密鑰庫,其中任何密鑰庫值始終都能正確替換和找到。
幹跑者透明地進行測試而不是實際執行它們。
動態文件存根測試這是一個 tradefed 測試,用於測試 tradefed 能否正確解析動態文件。
動態遠程文件解析器幫助解析遠程文件路徑的類。
DynamicRemoteFileResolver.FileResolverLoader加載IRemoteFileResolver的實現。
動態分片助手分片策略允許在多個 TF 實例之間進行遠程工作排隊
動態系統準備器ITargetPreparer ,通過動態系統更新在設備構建之上設置系統映像。

早期設備發布功能用於早期設備發布的功能服務器實現。
電子郵件發送電子郵件的輔助類。
電子郵件主機健康代理用於從主機監視器報告發送電子郵件的IHostHealthAgent實現
EmmaXml常量解析 emma xml 報告時使用的常量。
模擬器內存CPU捕獲器
結束中央目錄信息EndCentralDirectoryInfo 是一個包含 zip 文件整體信息的類。
強制SeLinux檢查器確保 Selinux 狀態的狀態檢查器。
擦除用戶數據準備器一個ITargetPreparer ,用於擦除設備上的用戶數據。
錯誤標識符該接口描述了特定的錯誤及其屬性。
錯誤存儲工具用於處理錯誤以與公共存儲保持一致的幫助程序類。
事件記錄監聽器將接收到的所有事件記錄到文件中的偵聽器
異常ThrowingRunnerWrapper
可執行基礎測試可執行測試風格的基類。
可執行主機測試測試運行程序以在主機上運行可執行文件。
可執行目標測試測試運行程序以在目標上運行可執行文件。
執行文件在執行測試或調用期間生成的文件依賴項,需要攜帶這些依賴項進行測試。
執行文件.FilesKey地圖已知標準鍵的枚舉。
執行屬性在執行測試或調用期間生成的屬性。
現有構建提供者返回已構造的IBuildInfo IBuildProvider
擴展文件標准文件的擴展,用於攜帶構建相關的元數據。

F

故障描述描述 Trade Federation 中的故障信息的類。
假測試虛假測試,其目的是輕鬆生成可重複的測試結果。
假測試壓縮文件夾一個測試裝置,根據內容列表創建一個假的解壓縮測試文件夾。
FakeTestsZipFolder.ItemType
FastbootCommandPreparer觸發 fastboot 並發送 fastboot 命令的目標準備器。
FastbootDeviceFlasher依賴 fastboot 在物理 Android 硬件上刷新映像的類。
快速啟動助手用於快速啟動操作的輔助類。
FastbootUpdateBootstrapPreparer ITargetPreparer將指定文件(引導加載程序、無線電、設備映像 zip)暫存到IDeviceBuildInfo中,以獲取使用FastbootDeviceFlasher刷新的設備,然後將啟動後設備屬性注入到構建信息中以用於結果報告目的。
致命主機錯誤指示運行 TradeFederation 的主機上發生致命的不可恢復錯誤的異常,並且應關閉 TradeFederation 實例。
功能標誌目標準備器更新 DeviceConfig(由遠程服務調整的功能標誌)。
文件下載緩存維護下載文件的本地文件系統 LRU 緩存的幫助程序類。
文件下載緩存工廠用於創建FileDownloadCache工廠
文件下載緩存包裝器一個包裝類,在實現IFileDownloader接口的同時提供FileDownloadCache功能。
文件空閒監視器監視文件並在它們空閒時執行回調(即
文件輸入流源接受輸入文件的InputStreamSource
文件記錄器將日誌消息定向到文件和標準輸出的ILeveledLogOutput
文件原型結果報告器TestRecord轉儲到文件中的原型報告器。
FilePullerDeviceMetricCollector一個BaseDeviceMetricCollector ,用於偵聽來自設備的指標鍵並將它們作為文件從設備中提取。
文件拉取日誌收集器設備端上報的文件記錄器。
文件系統日誌保存程序將日誌保存到文件系統。
文件工具文件相關操作的輔助類
FileUtil.HarnessIOException利用異常有助於處理文件問題。
FileUtil.LowDiskSpaceException如果可用磁盤空間低於最小閾值,則拋出此異常。
過濾結果轉發器ResultForwarder的變體,僅允許報告TestDescription的白名單。
固定字節數組輸出流僅保留最大數據量的內存中ERROR(/OutputStream)
閃爍方式描述用於刷新被測設備的方法的枚舉
閃爍資源解析器一個類,用於解析刷新設備所需的輔助圖像文件的所需版本。
FlashingResourcesParser.AndroidInfo Map&lt;String, MultiMap&lt;String, String&gt;&gt;的 typedef 。
FlashingResourcesParser.Constraint過濾接口,旨在允許FlashingResourcesParser忽略它可能使用的某些資源
閃爍資源工具此實用程序有助於設置工件的適當版本,以便可以通過DeviceFlashPreparer刷新它們。
可折疊擴展處理器A IModuleParameterHandler expanding into more for each non-primary foldable configuration.
FoldableHandler Generic foldable handler that can take the foldable parameters to create a specialized module.
FoldableModePreparer A target preparer that can switch the foldable state of a device.
FolderBuildInfo Concrete implementation of a IFolderBuildInfo .
FolderSaver A ITargetPreparer that pulls directories off device, compresses and saves it into logging backend.
FormattedGeneratorReporter Reporter that allows to generate reports in a particular format.
FreeDeviceState
FuseUtil A helper class for FUSE operations.

G

GceAvdInfo Structure to hold relevant data for a given GCE AVD instance.
GceAvdInfo.GceStatus
GceAvdInfo.LogFileEntry
GceManager Helper that manages the GCE calls to start/stop and collect logs from GCE.
GceRemoteCmdFormatter Utility class to format commands to reach a remote gce device.
GceRemoteCmdFormatter.ScpMode SCP can be used to push or pull file depending of the structure of the args.
GceSshTunnelMonitor Thread Monitor for the Gce ssh tunnel.
GcovCodeCoverageCollector A BaseDeviceMetricCollector that will pull gcov coverage measurements off of the device and log them as test artifacts.
GcovKernelCodeCoverageCollector A BaseDeviceMetricCollector that will pull gcov kernel coverage measurements out of debugfs and off of the device and then finally logs them as test artifacts.
GCSBucketUtil File manager to download and upload files from Google Cloud Storage (GCS).
GCSBucketUtil.GCSFileMetadata Simple wrapper for file info in GCS.
GCSCommon Base class for Gcs operation like download and upload.
GCSConfigurationFactory A ConfigurationFactory loads configs from Google Cloud Storage.
GCSConfigurationFactory.GCSConfigLoader Extension of ConfigurationFactory.ConfigLoader that loads config from GCS, tracks the included configurations from one root config, and throws an exception on circular includes.
GCSConfigurationServer Config server loads configs from Google Cloud Storage (GCS).
GCSDownloaderHelper Downloader for GCS bucket that takes care of caching and resolving the global config.
GCSFileDownloader File downloader to download file from google cloud storage (GCS).
GCSFileUploader File uploader to upload file data to google cloud storage (GCS).
GCSHostResourceManager Download host resource from GCS (Google cloud storage).
GcsRemoteFileResolver Implementation of IRemoteFileResolver that allows downloading from a GCS bucket.
GenericLogcatEventParser <LogcatEventType> Parse logcat input for events.
GenericLogcatEventParser.LogcatEvent Struct to hold a logcat event with the event type and triggering logcat message
GetPreviousPassedHelper Helper to get the previous passed test filters.
GkiDeviceFlashPreparer A target preparer that flash the device with android common kernel generic image.
GlobalConfiguration An IGlobalConfiguration implementation that stores the loaded config objects in a map
GlobalFilterGetter Service implementation that returns the filters of a given invocation.
GlobalTestFilter Filter options applied to the invocation.
GoogleApiClientUtil Utils for create Google API client.
GoogleBenchmarkResultParser Parses the results of Google Benchmark that run from shell, and return a map with all the results.
GoogleBenchmarkTest A Test that runs a Google benchmark test package on given device.
GranularRetriableTestWrapper A wrapper class works on the IRemoteTest to granulate the IRemoteTest in testcase level.
GranularRetriableTestWrapper.StartEndCollector Class helper to catch missing run start and end.
GsiDeviceFlashPreparer A target preparer that flashes the device with android generic system image.
GTest A Test that runs a native test package on given device.
GTestBase The base class of gTest
GTestListTestParser A result parser for gtest dry run mode with "--gtest_list_tests" parameter.
GTestResultParser Parses the 'raw output mode' results of native tests using GTest that run from shell, and informs a ITestInvocationListener of the results.
GTestXmlResultParser Parses the 'xml output mode' results of native tests using GTest that run from shell, and informs a ITestRunListener of the results.

H

HarnessException Base exception class for exception thrown within the harness.
HarnessRuntimeException
HeapHostMonitor AbstractHostMonitor implementation that monitors the heap memory on the host and log it periodically to the history log.
HelloWorldMultiTargetPreparer An example implementation of a IMultiTargetPreparer .
HistoryLogger TF History Logger, special log that contains only some specific events.
HostGTest A Test that runs a native test package.
HostMetric This class represents a host metric sample to be reported.
HostOptions Host options holder class.
HostStatsdMetricCollector A IMetricCollector that collects statsd metrics from host side using statsd utility commands.
HostTest A test runner for JUnit host based tests.
HostUtils Implements some useful utility methods for running host tests.
HprofAllocSiteParser Helper class to parse info from an Allocation Sites section of hprof reports.
HttpHelper Contains helper methods for making http requests
HttpHelper.RequestRunnable Runnable for making requests with IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult) .
HttpMultipartPost Helper class for making multipart HTTP post requests.
HttpRemoteFileResolver Implementation of IRemoteFileResolver that allows downloading remote file via http
HttpsRemoteFileResolver Implementation of IRemoteFileResolver that allows downloading remote file via https

I

IAbi Interface representing the ABI under test.
IAbiReceiver A test that needs the ABI under test.
IAndroidDebugBridge Interface definition for AndroidDebugBridge methods used in this package.
IAppBuildInfo This interface is deprecated. Use IBuildInfo directly.
IAutoRetriableTest Interface for an IRemoteTest that doesn't implement ITestFilterReceiver but still wishes to support auto-retry.
IBatteryInfo The interface defining the interaction with a battery of a device.
IBatteryInfo.BatteryState Describes the current battery charging state.
IBuildInfo Holds information about the build under test.
IBuildInfo.BuildInfoProperties Some properties that a IBuildInfo can have to tweak some handling of it.
IBuildProvider Responsible for providing info regarding the build under test.
IBuildReceiver A test that needs reference to the build under test.
IClusterClient An interface for interacting with the TFC backend.
IClusterEvent Interface for any cluster event to be uploaded to TFC.
IClusterEventUploader <T extends IClusterEvent > Interface for ClusterEventUploader
IClusterOptions An interface for getting cluster-related options.
ICommandOptions Container for execution options for commands.
ICommandScheduler A scheduler for running TradeFederation commands.
ICommandScheduler.IScheduledInvocationListener Listener for invocation events when invocation completes.
ICompressionStrategy An interface representing a compression algorithm that can be selected at runtime.
IConfigOptionValueTransformer An interface for manipulating config option value
IConfigurableVirtualDevice An interface to provide information about a possibly preconfigured virtual device info (host ip, host user, ports offset and etc.).
IConfiguration Configuration information for a TradeFederation invocation.
IConfigurationFactory Factory for creating IConfiguration s
IConfigurationReceiver Simple interface to represent object that accepts an IConfiguration .
IConfigurationServer An interface for config server.
ICredentialFactory An interface for credential factory to create oauth2 Credential .
IDefaultObjectLoader Interface for loading the default objects that should be part of our YAML configuration.
IDefaultObjectLoader.LoaderConfiguration The loading configuration object to pass information to the loader.
IDeviceActionReceiver Provides an API to receive device events.
IDeviceBuildInfo A IBuildInfo that represents a complete Android device build and (optionally) its tests.
IDeviceBuildProvider A IBuildProvider that uses information from a ITestDevice to retrieve a build.
IDeviceConfiguration Device Configuration Holder Interface.
IDeviceFlasher Flashes a device image on a device.
IDeviceFlasher.UserDataFlashOption Enum of options for handling the userdata image
IDeviceManager Interface for managing the set of available devices for testing.
IDeviceManager.IFastbootListener A listener for fastboot state changes.
IDeviceMonitor Interface for monitoring state of devices.
IDeviceMonitor.DeviceLister A Runnable -like class that should return the known devices and their states.
IDeviceRecovery Interface for recovering a device that has gone offline.
IDeviceSelection Interface for device selection criteria.
IDeviceSelection.BaseDeviceType
IDeviceStateMonitor Provides facilities for monitoring the state of a IDevice .
IDeviceTest Interface for object that needs a reference to a ITestDevice .
IDisableable Interface that describes a Tradefed object that can be disabled.
IDynamicShardingClient Wrapper interface for the sharding client

This exists so that we can swap in an HTTP one or testing one if needed.

IEmail Interface for sending email.
IEmail.Message Container for email message data.
IFileDownloader Interface for downloading a remote file.
IFileEntry Interface definition that provides simpler, mockable contract to FileEntry methods.
IFileResolverLoader Loads implementations of IRemoteFileResolver .
IFileResolverLoader.ResolverLoadingException Exception thrown if a resolver cannot be loaded or initialized.
IFlashingResourcesParser Interface for providing required versions of auxiliary image files needed to flash a device.
IFlashingResourcesRetriever Interface for retrieving auxiliary image files needed to flash a device.
IFolderBuildInfo A simple abstract IBuildInfo whose build artifacts are containing in a local filesystem directory.
IFormatterGenerator Interface describing a formatter for SuiteResultHolder .
IGlobalConfiguration A class to encompass global configuration information for a single Trade Federation instance (encompassing any number of invocations of actual configurations).
IHarnessException Description of the harness exception interface that will be implemented by harness exceptions.
IHostCleaner Cleans up the host after the test run has finished.
IHostHealthAgent An interface to emit host or device metrics.
IHostMonitor Interface to dispatch host data
IHostMonitor.HostDataPoint Generic class for data to be reported.
IHostMonitor.HostMetricType
IHostOptions Host options holder interface.
IHostOptions.PermitLimitType Enum describing the possible permit limiters
IHostResourceManager Interface to manager host resource.
IHttpHelper Helper methods for performing http requests.
IHttpHelper.DataSizeException
IInvocationContext Holds information about the Invocation for the tests to access if needed.
IInvocationContext.TimingEvent
IInvocationContextReceiver A test that needs reference to the context of the invocation.
IInvocationExecution Interface describing the actions that will be done as part of an invocation.
IKeyStoreClient Interface to access a key store for password or sensitive data.
IKeyStoreFactory Factory for creating IKeyStoreClient .
ILabPreparer Marker interface for lab preparers

See ITargetPreparer for a description of what these interfaces are intended.

ILeveledLogOutput Classes which implement this interface provides methods that deal with outputting log messages.
ILogcatReceiver A class that provides the output of a device's logcat as an InputStreamSource .
ILogRegistry An interface for a ILogOutput singleton logger that multiplexes and manages different loggers.
ILogRegistry.EventType Events that are useful to be logged
ILogSaver Classes which implement this interface provide methods for storing logs to a central location.
ILogSaverListener Allows for ITestInvocationListener s to listen for when log files are saved.
IManagedTestDevice A ITestDevice whose lifecycle is managed.
IManagedTestDevice.DeviceEventResponse Container for a response to a IManagedTestDevice#handleAllocationEvent(DeviceEvent) call
IManagedTestDeviceFactory Creator interface for IManagedTestDevice s
IMetricCollector 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.
IMoblyYamlResultHandler Interface of mobly yaml result handler.
IMoblyYamlResultHandler.ITestResult Interface of mobly yaml result
IModuleController Interface for controlling if a module should be executed or not.
IModuleController.RunStrategy Enum describing how the module should be executed.
IModuleParameterHandler The interface for parameters of suites modules.
IMultiDeviceRecovery Interface for recovering multiple offline devices.
IMultiDeviceTest This interface is deprecated. This interface is kept temporarily for compatibility but is not actually used anymore. Please do not implement it.
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 .
InfraErrorIdentifier Error Identifiers from Trade Federation infra, and dependent infra (like Build infra).
InputStreamSource This interface basically wraps an ERROR(/InputStream) to make it clonable.
InstallAllTestZipAppsSetup 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 .
InvocationExecution Class that describes all the invocation steps: build download, target_prep, run tests, clean up.
InvocationLocal <T> This class provides invocation-scope variables.
InvocationMetricLogger A utility class for an invocation to log some metrics.
InvocationMetricLogger.InvocationGroupMetricKey Grouping allows to log several groups under a same key.
InvocationMetricLogger.InvocationMetricKey Some special named key that we will always populate for the invocation.
InvocationStatus A class to store invocation status.
InvocationStatus A helper enum to represent the invocation status
InvocationSummaryHelper Helper class for gathering and reporting TestSummary for set of listeners
InvocationToJUnitResultForwarder A class that listens to ITestInvocationListener events and forwards them to a TestListener .
IPostProcessor Post processors is a Trade Federation object meant to allow the processing of metrics and logs AFTER the tests and BEFORE result reporting.
IRemoteFeature Interface describing a feature in Tradefed that can be executed based on the request.
IRemoteFileResolver Interface for objects that can resolve a remote file into a local one.
IRemoteFileResolver.RemoteFileResolverArgs The args passed to the resolvers
IRemoteFileResolver.ResolvedFile Class holding information about the resolved file and some metadata.
IRemoteScheduledListenersFeature Extension of IRemoteFeature to support passing in IScheduledInvocationListener s.
IRemoteTest A test that reports results directly to a ITestInvocationListener .
IReportNotExecuted In case of an incomplete execution, IRemoteTest that implements this interface may report their non-executed tests for improved reporting.
IRescheduler Interface for rescheduling a config for future execution.
IResourceMetricCollector The interface for user to implement customized resource collectors.
IRestApiHelper A helper interface for performing REST API calls.
IResumableTest This interface is deprecated. No need for this anymore
IRetryDecision Interface driving the retry decision and applying the filter on the class for more targeted retry.
IRuntimeHintProvider
IRunUtil Interface for running timed operations and system commands.
IRunUtil.EnvPriority Enum that defines whether setting or unsetting a particular env.
IRunUtil.IRunnableResult An interface for asynchronously executing an operation that returns a boolean status.
ISandbox定義可用於運行調用的沙箱的接口。
ISandboxFactory Factory for creating ISandbox .
ISetOptionReceiver Implementation of this interface should have an Option with a "set-option" name linked to HostTest#SET_OPTION_NAME .
IShardableListener A ITestInvocationListener that can be sharded.
IShardableTest A IRemoteTest that can be split into separately executable sub-tests.
IShardHelper Interface of an object that describes the sharding strategy to adopt for a configuration.
IsolatedHostTest Implements a TradeFed runner that uses a subprocess to execute the tests in a low-dependency environment instead of executing them on the main process.
ISupportGranularResults Interface specifying whether a ITestInvocationListener supports receiving the granular results or not.
ISystemStatusChecker An checker that performs checks on system status and returns a boolean to indicate if the system is in an expected state.
ISystemStatusCheckerReceiver A IRemoteTest that requires access to the ISystemStatusChecker from the configuration.
ITargetCleaner This interface is deprecated. tearDown has been moved to the base ITargetPreparer interface.
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
ITestFileFilterReceiver A runner that can receive a file specifying which tests to run and/or not to run.
ITestFilterReceiver A runner that can filter which tests to run.
ITestInformationReceiver Interface to receive the TestInformation for some classes.
ITestInvocation Handles one TradeFederation test invocation.
ITestInvocation.ExitInformation Represents some exit information for an invocation.
ITestInvocationListener Listener for test results from the test invocation.
ITestLifeCycleReceiver Receives event notifications during instrumentation test runs.
ITestLogger An entity that can perform logging of data streams of various types.
ITestLoggerReceiver An entity that can be injected with an ITestLogger instance so that it can be used for logging purposes.
ITestsPool Interface describing a pool of tests that we can access and run
ITestSuite Abstract class used to run Test Suite.
ITestSuite.MultiDeviceModuleStrategy
ITestSuiteResultLoader Interface describing an helper to load previous results in a way that can be re-run.
ITestSummaryListener Interface that allows ITestInvocationListener to exchange some limited information via summaries.
ITestsZipInstaller Installs tests from a tests zip file (as outputted by the build system) on a device.
ITokenProvider Interface describing an object that can provide the tokens of a particular device.
ITokenRequest Interface a IRemoteTest can implement to expose the fact that it requires a device with a special token.

J

JarHostTest Test runner for host-side JUnit tests.
JarHostTest.HostTestListener Wrapper listener that forwards all events except testRunStarted() and testRunEnded() to the embedded listener.
JavaCodeCoverageCollector A BaseDeviceMetricCollector that will pull Java coverage measurements off of the device and log them as test artifacts.
JavaCodeCoverageFlusher A utility class that resets and forces a flush of Java code coverage measurements from processes running on the device.
JSONFileKeyStoreClient A sample implementation where a local JSON file acts a key store.
JSONFileKeyStoreFactory Implementation of a JSON KeyStore Factory, which provides a JSONFileKeyStoreClient for accessing a JSON Key Store File.
JsonHttpTestResultReporter A result reporter that encode test metrics results and branch, device info into JSON and POST into an HTTP service endpoint
JUnit4ResultForwarder Result forwarder from JUnit4 Runner.
JUnit4TestFilter Helper Class that provides the filtering for JUnit4 runner by extending the Filter .
JUnitRunUtil A helper class for directing a IRemoteTest#run(TestInformation, ITestInvocationListener) call to a Test#run(TestResult) call.
JUnitToInvocationResultForwarder A class that listens to TestListener events and forwards them to an ITestInvocationListener .
JUnitXmlParser Parser that extracts test result data from JUnit results stored in ant's XMLJUnitResultFormatter and forwards it to a ITestInvocationListener.

K

KeyguardControllerState A container for the keyguard states.
KeyguardStatusChecker Checks the keyguard status after module execution.
KeyStoreException Thrown when a fatal key store error happens.
KillExistingEmulatorPreparer A ITargetPreparer that shuts down a running emulator.
KnownFailurePreparer Target preparer to skip retrying known failure.

L

LabResourceDeviceMonitor The lab resource monitor which initializes/manages the gRPC server for LabResourceService.
LargeOutputReceiver A class designed to help run long running commands collect output.
LastShardDetector When running local sharding, sometimes we only want to execute some actions when the last shard reaches invocationEnded(long) .
LaunchCvdHelper Utility helper to control Launch_cvd in the Cuttlefish VM.
LeakedThreadStatusChecker Status checker to ensure a module does not leak a running Thread.
LegacySubprocessResultsReporter A frozen implementation of the subprocess results reporter which should remain compatible with earlier versions of TF/CTS (eg 8+), despite changes in its superclass.
ListInstrumentationParser A IShellOutputReceiver that parses the output of a 'pm list instrumentation' query
ListInstrumentationParser.InstrumentationTarget
LocalAndroidVirtualDevice The class for local virtual devices running on TradeFed host.
LocalAppBuildProvider A IBuildProvider that constructs a IBuildInfo based on a provided local path
LocalDeveloper Detects and returns whether this is a local developer running Tradefed.
LocalDeviceBuildProvider A IBuildProvider that constructs a IDeviceBuildInfo based on a provided filesystem directory path.
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
LocalFileHeader LocalFileHeader is a class containing the information of a file/folder inside a zip file.
LocalFileResolver Implementation of IRemoteFileResolver that allows linking local files
LocalFolderBuildProvider A IBuildProvider that constructs a IFolderBuildInfo based on a provided local path
LocalHostResourceManager Manager host resource.
LocalPool Implementation of a pool of local tests
LocalRunInstructionBuilder Utility to compile the instruction to run test locally.
LockSettingsBaselineSetter A setter to remove screen lock settings.
LogcatCrashResultForwarder Special listener: on failures (instrumentation process crashing) it will attempt to extract from the logcat the crash and adds it to the failure message associated with the test.
LogcatEventParser
LogcatEventType Event types for LogcatEventParser .
LogcatOnFailureCollector Collector that will capture and log a logcat when a test case fails.
LogcatReceiver Class that collects logcat in background.
LogcatTimingMetricCollector A metric collector that collects timing information (eg user switch time) from logcat during one or multiple repeated tests by using given regex patterns to parse start and end signals of an event from logcat lines.
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

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
MaxSdkModuleController Base class for a module controller to not run tests on versions above a specified SDK version number.
MergedZipEntryCollection Merge individual zip entries in a large zip file into blocks to minimize the download attempts.
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.
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.
MetricTestCase Extension of TestCase that allows to log metrics when running as part of TradeFed.
MetricTestCase.LogHolder Structure to hold a log file to be reported.
MetricUtil Utility class for pulling metrics from pushed statsd configurations.
MetricUtility Contains common utility methods for storing the test metrics, aggregating the metrics in similar tests and writing the metrics to a file.
MinApiLevelModuleController Base class for a module controller to not run tests when it below a specified API Level.
MinSdkModuleController Base class for a module controller to not run tests on versions below a specified SDK version number.
MixImageZipPreparer An IMultiTargetPreparer that mixes a system build's images in a device build.
MixKernelTargetPreparer A ITargetPreparer that allows to mix a kernel image with the device image.
MoblyBinaryHostTest Host test meant to run a mobly python binary file from the Android Build system (Soong)
MoblyYamlResultControllerInfoHandler Mobly yaml result 'Controller Info' element handler.
MoblyYamlResultControllerInfoHandler.ControllerInfo
MoblyYamlResultControllerInfoHandler.ControllerInfo.Builder
MoblyYamlResultHandlerFactory Mobly yaml result handler factory which generates appropriate handler based on result type.
MoblyYamlResultHandlerFactory.InvalidResultTypeException
MoblyYamlResultHandlerFactory.Type
MoblyYamlResultParser Mobly yaml test results parser.
MoblyYamlResultRecordHandler Mobly yaml result 'Record' element handler.
MoblyYamlResultRecordHandler.Record
MoblyYamlResultRecordHandler.Record.Builder
MoblyYamlResultRecordHandler.RecordResult
MoblyYamlResultSummaryHandler Mobly yaml result 'Summary' element handler.
MoblyYamlResultSummaryHandler.Summary
MoblyYamlResultSummaryHandler.Summary.Builder
MoblyYamlResultTestNameListHandler Mobly yaml result 'Test Name List' element handler.
MoblyYamlResultTestNameListHandler.TestNameList
MoblyYamlResultTestNameListHandler.TestNameList.Builder
MoblyYamlResultUserDataHandler Mobly yaml result 'User Data' element handler.
MoblyYamlResultUserDataHandler.UserData
MoblyYamlResultUserDataHandler.UserData.Builder
ModifiedFilesParser Class responsible to parse and extract information from modified_files.json.
ModuleDefinition Container for the test run configuration.
ModuleListener Listener attached to each IRemoteTest of each module in order to collect the list of results.
ModuleLogcatCollector Version of logcat collector but for module.
ModuleMerger Helper class for operation related to merging ITestSuite and ModuleDefinition after a split.
ModuleOemTargetPreparer
ModuleParameters Special values associated with the suite "parameter" keys in the metadata of each module.
ModuleParametersHelper Helper to get the IModuleParameterHandler associated with the parameter.
ModulePusher
ModulePusher.ModulePushError Fatal error during Mainline module push.
ModuleSplitter Helper to split a list of modules represented by IConfiguration into a list of execution units represented by ModuleDefinition .
MultiFailureDescription Collect multiple FailureDescription in one holder.
MultiMap <K, V> A ERROR(/Map) that supports multiple values per key.

N

NameMangleListener A proxy listener to translate test method, class, and package names as results are reported.
NativeBenchmarkTest A Test that runs a native benchmark test executable on given device.
NativeBenchmarkTestParser A IShellOutputReceiver that parses the benchmark test data output, collecting metrics on average time per operation.
NativeBridgeModuleController A module controller to check if a device support native bridge.
NativeCodeCoverageFlusher A utility class that clears native coverage measurements and forces a flush of native coverage data from processes on the device.
NativeDevice Default implementation of a ITestDevice Non-full stack android devices.
NativeDevice.AdbAction A ERROR(DeviceAction/com.android.tradefed.device.NativeDevice.DeviceAction DeviceAction) for running a OS 'adb ....' command.
NativeDevice.AdbShellAction
NativeDevice.RebootDeviceAction ERROR(DeviceAction/com.android.tradefed.device.NativeDevice.DeviceAction DeviceAction) for rebooting a device.
NativeDevice.RebootMode A mode of a reboot.
NativeDeviceStateMonitor Helper class for monitoring the state of a IDevice with no framework support.
NativeLeakCollector A ITargetPreparer 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.
NoOpConfigOptionValueTransformer An no-op IConfigOptionValueTransformer
NotMultiAbiHandler Special handler that notify the SuiteModuleLoader that the secondary abi should not create a module.
NullDevice A placeholder IDevice used by DeviceManager to allocate when IDeviceSelection#nullDeviceRequested() is true

O

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

P

PackageInfo Container for an application's package info parsed from device.
PackageInstalledModuleController Module controller to not run tests when the device has not got the given packages installed.
Pair <A, B> Define our own Pair class which contains two objects.
PairingMultiTargetPreparer A multi-target preparer helps make Bluetooth pairing (and connection) between two devices.
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.
PartialZipDownloadCache Utility to cache partial download files based on their content.
PassingTestFileReporter A ITestInvocationListener that saves the list of passing test cases to a test file
PerfettoGenericPostProcessor A post processor that processes text/binary metric perfetto proto file into key-value pairs by recursively expanding the proto messages and fields with string values until the field with numeric value is encountered.
PerfettoGenericPostProcessor.AlternativeParseFormat
PerfettoGenericPostProcessor.METRIC_FILE_FORMAT
PerfettoPreparer Perfetto preparer pushes the config file in to the device at a standard location to which perfetto have access to.
PerfettoPullerMetricCollector Base implementation of FilePullerDeviceMetricCollector that allows pulling the perfetto files from the device and collect the metrics from it.
PerfettoPullerMetricCollector.METRIC_FILE_FORMAT
PerfettoTraceRecorder A utility class for recording perfetto trace on a ITestDevice .
PrettyPrintDelimiter Helper utility that helps to print delimited message that stands out.
PrettyTestEventLogger Logger matching the events and logging them in order to make it easier to debug.
ProcessInfo Used to store process related(USER, PID, NAME, START TIME IN SECOND SINCE EPOCH) information.
ProfileParameterHandler Base parameter handler for any profile user.
ProfileTargetPreparer Base class for setting up target preparer for any profile user android.os.usertype.profile.XXX .
PropertyChanger A utility class for changing (or adding) items in an Android property file
ProtoResultParser Parser for the Tradefed results proto format.
ProtoResultParser.TestLevel Enumeration representing the current level of the proto being processed.
ProtoResultReporter Result reporter build a TestRecord protobuf with all the results inside.
ProtoUtil Utility methods for dealing with protobuf messages type-agnostically.
ProxyConfiguration Object that allows pointing to a remote configuration to execute.
PsParser Utility used to parse(USER,PID and NAME) from the "ps" command output
PtsBotTest Run PTS-bot tests.
PushFileInvoker This class is deprecated. Use PushFilePreparer instead
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)

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

PythonBinaryHostTest.PythonForwarder Result forwarder to replace the run name by the binary name.
PythonUnitTestResultParser Interprets the output of tests run with Python's unittest framework and translates it into calls on a series of ITestInvocationListener s.
PythonUnitTestRunner This class is deprecated. Use PythonBinaryHostTest instead.
PythonVirtualenvHelper A helper class for activating Python 3 virtual environment.
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.
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
RemoteDynamicPool Implementation of a pool of remote work queued tests
RemoteFileResolver A simple class that allows one to load files from a variety of places using URIs and the service provider functionality.
RemoteFileUtil Utility class to handle file from a remote instance
RemoteInvocationExecution Implementation of InvocationExecution that drives a remote execution.
RemoteInvocationExecution.FileOptionValueTransformer
RemoteSshUtil Utility to execute ssh commands on remote instances.
RemoteTestTimeOutEnforcer Listeners that allows to check the execution time of a given test config and fail it if it goes over a given timeout.
RemoteZip用於解壓縮遠程 zip 文件中的單個文件的實用程序。
RemoveSystemAppPreparer A ITargetPreparer for removing an apk from the system partition before a test run.
ReportPassedTests Report in a file possible filters to exclude passed test.
ResolvePartialDownload Resolve a partial download request.
ResourceMetricUtil Utility functions for composing metrics.
ResourceUtil Utility for reading configuration resources.
RestApiHelper A helper class for performing REST API calls.
RestartSystemServerTargetPreparer Target preparer that restarts the system server without rebooting the device.
ResultAggregator Special forwarder that aggregates the results when needed, based on the retry strategy that was taken.
ResultAndLogForwarder Forwarder for results and logs events.
ResultForwarder A ITestInvocationListener that forwards invocation results to a list of other listeners.
ResultsPlayer Special runner that replays the results given to it.
RetentionFileSaver Helper class for creating a .retention file in a directory.
RetryConfigurationFactory Factory that handles retrying a command.
RetryLogSaverResultForwarder Forwarder that also handles passing the current attempt we are at.
RetryPreparationDecision A Class to describe the decisions about whether or not to retry preparation and to fail the module run.
RetryRescheduler A special runner that allows to reschedule a previous run tests that failed or where not executed.
RetryRescheduler.RetryType The types of the tests that can be retried.
RetryResultForwarder An Extension of ResultForwarder that always push to a given attempt number.
RetryResultHelper Helper class to determine which module or test should run or not.
RetryStatistics Structure holding the statistics for a retry session of one IRemoteTest .
RetryStrategy The Retry Strategy to be used when re-running some tests.
RootTargetPreparer Target preparer that performs "adb root" or "adb unroot" based on option "force-root".
RunAftersWithInfo
RunBeforesWithInfo
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.
RunHostScriptTargetPreparer Target preparer which executes a script before running a test.
RunInterruptedException Thrown when a run operation is interrupted by an external request.
RunNotifierWrapper Wrapper of RunNotifier so we can carry the DeviceNotAvailableException .
RunOnCloneProfileParameterHandler
RunOnCloneProfileTargetPreparer
RunOnSdkSandboxHandler Handler for ModuleParameters#RUN_ON_SDK_SANDBOX .
RunOnSdkSandboxTargetPreparer An ITargetPreparer to marks that tests should run in the sdk sandbox.
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.
RuntimeRestartCollector Collector that collects timestamps of runtime restarts (system server crashes) during the test run, if any.
RunUtil用於執行操作的輔助方法的集合。
RustBenchmarkResultParser Interprets the output of tests run with Criterion benchmarking framework and translates it into calls on a series of ITestInvocationListener s.
RustBinaryHostTest Host test meant to run a rust binary file from the Android Build system (Soong)
RustBinaryTest A Test that runs a rust binary on given device.
RustTestBase Base class of RustBinaryHostTest and RustBinaryTest
RustTestBase.EnvPair
RustTestBase.Invocation
RustTestResultParser Interprets the output of tests run with Rust's unittest framework and translates it into calls on a series of ITestInvocationListener s.

S

SandboxConfigDump Runner class that creates a IConfiguration based on a command line and dump it to a file.
SandboxConfigDump.DumpCmd
SandboxConfigurationException Special Configuration Exception coming from the Sandbox setup.
SandboxConfigurationFactory Special Configuration factory to handle creation of configurations for Sandboxing purpose.
SandboxConfigUtil A utility class for managing IConfiguration when doing sandboxing.
SandboxedInvocationExecution Special sandbox execution of the invocation: This is the InvocationExection for when we are inside the sandbox running the command.
SandboxInvocationRunner Run the tests associated with the invocation in the sandbox.
SandboxOptions Class that can receive and provide options to a ISandbox .
ScreenshotOnFailureCollector 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.
Sdk32ModuleController Only run tests if the device under test is SDK version 32 or above.
Sdk33ModuleController Only run tests if the device under test is SDK version 33 or above.
Sdk34ModuleController Only run tests if the device under test is SDK version 34 or above.
SecondaryUserHandler Handler for ModuleParameters#SECONDARY_USER .
SecondaryUserOnDefaultDisplayHandler Handler for ModuleParameters#SECONDARY_USER_ON_DEFAULT_DISPLAY .
SecondaryUserOnSecondaryDisplayHandler Handler for ModuleParameters#SECONDARY_USER_ON_SECONDARY_DISPLAY .
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) .
ServiceAccountKeyCredentialFactory A credential factory to create service account key based oauth Credential .
SettingsBaselineSetter A common setter to handle device baseline settings via ITestDevice.setSetting.
ShardBuildCloner Helper class that handles cloning a build info from the command line.
ShardHelper Helper class that handles creating the shards and scheduling them for an invocation.
ShardListener A ITestInvocationListener that collects results from a invocation shard (aka an invocation split to run on multiple resources in parallel), and forwards them to another listener.
ShardMainResultForwarder A ResultForwarder that combines the results of a sharded test invocations.
ShellOutputReceiverStream Utility subclass of OutputStream that writes into an IShellOutputReceiver.
ShellStatusChecker Check if the shell status is as expected before and after a module run.
ShippingApiLevelModuleController Run tests if the device meets the following conditions:
  • If min-api-level is defined:
    • The device shipped with the min-api-level or later.
ShowmapPullerMetricCollector Base implementation of FilePullerDeviceMetricCollector that allows pulling the showmap files from the device and collect the metrics from it.
SideloadOtaTargetPreparer A target preparer that performs sideload of a specified OTA package, applies the package, waits for device to boot up, and injects the device build properties to use as build info

This target preparer assumes that the device will be in regular adb mode when started, and will ensure that the device exits in the same mode but with the newer build applied.

SimpleFileLogger A ILeveledLogOutput that directs log messages to stdout and to a single log file.
SimplePerfResult Object to hold all simpleperf test results
SimplePerfStatResultParser A utility class to parse simpleperf result.
SimplePerfUtil Utility class to dispatch simple command and collect results
SimplePerfUtil.SimplePerfType Enum of simpleperf command options
SimpleStats A small utility class that calculates a few statistical measures given a numerical dataset.
SizeLimitedOutputStream A thread safe file backed ERROR(/OutputStream) that limits the maximum amount of data that can be written.
SkipHWASanModuleController Base class for a module controller to not run tests on HWASan builds.
Sl4aBluetoothUtil A utility class provides Bluetooth operations on one or two devices using SL4A
Sl4aBluetoothUtil.BluetoothAccessLevel Enums for Bluetooth device access level which are based on BluetoothDevice.java
Sl4aBluetoothUtil.BluetoothConnectionState Enums for Bluetooth connection states which are based on BluetoothProfile.java
Sl4aBluetoothUtil.BluetoothPriorityLevel Enums for Bluetooth profile priority level which are based on BluetoothProfile.java
Sl4aBluetoothUtil.BluetoothProfile Enums for Bluetooth profiles which are based on BluetoothProfile.java
Sl4aClient Sl4A client to interact via RPC with SL4A scripting layer.
Sl4aEventDispatcher Event dispatcher polls for event and queue them by name to be queried.
Sl4aEventDispatcher.EventSl4aObject Object returned by the event poller.
SnapshotInputStreamSource A File-backed InputStreamSource.
SparseImageUtil Utility to unsparse sparse images.
SparseImageUtil.SparseInputStream SparseInputStream read from upstream and detects the data format.
StatsdBeforeAfterGaugeMetricPostProcessor A post processor that processes gauge metrics collected in a "before/after" approach, ie
StatsdEventMetricPostProcessor A post processor that processes event metrics in statsd reports into key-value pairs, using the formatters specified on the processor.
StatsdGenericPostProcessor A post processor that processes binary proto statsd reports into key-value pairs by expanding the report as a tree structure.
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
StubLocalAndroidVirtualDevice A placeholder IDevice used by DeviceManager to allocate when DeviceSelectionOptions.localVirtualDeviceRequested() is true
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.
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
TargetFileUtils
TargetFileUtils.FilePermission
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.
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.
TestContext A class to model a TestContext message of TFC API.
TestDependencyResolver Helper to resolve dependencies if needed.
TestDescription Class representing information about a test case.
TestDescriptionsFile A utility class for marshalling and unmarshalling a list of TestDescriptions to a test file.
TestDevice Implementation of a ITestDevice for a full stack android device
TestDevice.MicrodroidBuilder A builder used to create a Microdroid TestDevice.
TestDeviceOptions Container for ITestDevice Option s
TestDeviceOptions.InstanceType
TestDeviceState A more fully featured representation of device state than DeviceState .
TestEnvironment A class to model a TestEnvironment message returned by TFC API.
TestErrorIdentifier Error identifier from tests and tests runners.
TestFailureListener Listener used to take action such as screenshot, bugreport, logcat collection upon a test failure when requested.
TestFailureModuleController Controller for module that simply want to tune how the tests failures log collected are behaving.
TestFilePushSetup A ITargetPreparer that pushes one or more files/dirs from a IDeviceBuildInfo.getTestsDir() folder onto device.
TestFilterHelper Helper class for filtering tests
TestGroupStatus A class to store status of a test group.
TestInfo Stores the test information set in a TEST_MAPPING file.
TestInformation Holder object that contains all the information and dependencies a test runner or test might need to execute properly.
TestInformation.Builder Builder to create a TestInformation instance.
TestInvocation Default implementation of ITestInvocation .
TestInvocation.RunMode The different mode an invocation can run into.
TestInvocation.Stage
TestInvocationManagementServer GRPC server helping to management test invocation and their lifecycle.
TestInvocationManagementServer.InvocationInformation
TestMapping A class for loading a TEST_MAPPING file.
TestMappingSuiteRunner Implementation of BaseTestSuite to run tests specified by option include-filter, or TEST_MAPPING files from build, as a suite.
TestOption Stores the test option details set in a TEST_MAPPING file.
TestOutputUploader Uploads test output files to local file system, GCS, or an HTTP(S) endpoint.
TestRecordInterpreter Utility to convert a TestRecord proto into a more easily manipulable format in Tradefed.
TestRecordProtoUtil Utility to read the TestRecord proto from a file.
TestResource A class to model a TestResource message returned by TFC API.
TestResourceDownloader A class to download test resource files from file system/GCS/HTTP.
TestResult Container for a result of a single test.
TestResultListener A simplification of ITestLifecycleListener for implementers that only care about individual test results.
TestRunnerUtil A utility class to help various test runners.
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.
TestTimeoutEnforcer Listeners that allows to check the execution time of a given test case and fail it if it goes over a given timeout.
TextResultReporter A test result reporter that forwards results to the JUnit text result printer.
TfMetricProtoUtil Utility class to help with the Map to Map transition.
TfObjectTracker A utility to track the usage of the different Trade Fedederation objects.
TfSuiteRunner Implementation of ITestSuite which will load tests from TF jars res/config/suite/ folder.
TfTestLauncher A IRemoteTest for running unit or functional tests against a separate TF installation.
TimeStatusChecker Status checker to ensure that the device and host time are kept in sync.
TimeUtil Contains time related utility methods.
TimeVal This is a sentinel type which wraps a Long .
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.
TraceCmdCollector A IMetricCollector that collects traces during the test using trace-cmd, and logs them to the invocation.
TracePropagatingExecutorService An executor service that forwards tasks to an underlying implementation while propagating the tracing context.
TracingLogger Class that helps to manage tracing for each test invocation.
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.
Tradefed沙箱可以運行 Trade Federation 調用的沙箱容器。
TradefedSandboxFactory Default implementation for SandboxFactory
TradefedSandboxRunner Runner associated with a TradefedSandbox that will allow executing the sandbox.
TradefedSandboxRunner.StubScheduledInvocationListener A stub IScheduledInvocationListener that does nothing.

U

UiAutomatorRunner Runs UI Automator test on device and reports results.
UiAutomatorTest
UiAutomatorTest.LoggingOption
UiAutomatorTest.TestFailureAction
UnexecutedTestReporterThread Threads that takes care of reporting all unexecuted tests.
UniqueMultiMap <K, V> A MultiMap that ensures unique values for each key.
UsbResetMultiDeviceRecovery A IMultiDeviceRecovery which resets USB buses for offline devices.
UsbResetRunConfigRecovery Allow to trigger a command to reset the USB of a device
UsbResetTest An IRemoteTest that reset the device USB and checks whether the device comes back online afterwards.
UserChecker Checks if users have changed during the test.
UserCleaner A ITargetPreparer that removes secondary users on teardown.
UserHelper
UserInfo Similar to UserInfo class from platform.
UserInfo.UserType Supported variants of a user's type in external APIs.

V

ValidateSuiteConfigHelper This class will help validating that the IConfiguration loaded for the suite are meeting the expected requirements: - No Build providers - No Result reporters
VersionedFile Data structure representing a file that has an associated version.
VersionParser Fetch the version of the running tradefed artifacts.
VisibleBackgroundUserPreparer Target preparer for running tests in a user that is started in the visible in the background.
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

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

Y

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

Z

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