Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

類索引

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

一種

AaptParser通過解析“ aapt dump Badging”的輸出從apk提取信息的類。
AaptParser.AaptVersion用於解析APK文件的AAPT版本的選項的枚舉。
AbiFormatter abi的實用程序類。
AbstractXmlParser用於解析xml文件的Helper基類
AbstractXmlParser.ParseException如果無法解析XML輸入,則拋出該異常
AcloudConfigParser解析Acloud配置的輔助類(用於啟動Cloud設備實例)。
AcloudConfigParser.AcloudKeys可以從配置中搜索的密鑰集。
ActivityStatusChecker在模塊末尾運行的剩餘活動的狀態檢查器。
AggregatePostProcessor度量聚合器,它為多次迭代測試運行期間收集的數字度量提供最小值,最大值,均值,方差和標準偏差,將其視為兩倍。
AltDir行為為各種測試工件安裝程序/推送程序定義替代目錄行為的枚舉

AppBuildInfo一個IBuildInfo ,代表一個Android應用程序及其測試包。
AppDeviceBuildInfo此類已棄用。直接使用IDeviceBuildInfo
AppVersionFetcher從設備獲取應用程序版本字符串的實用程序類。
AppVersionFetcher.AppVersionInfo應用程序版本信息類型。
ArgsOptionParser根據已解析的命令行參數填充“ Option字段。
ATestFileSystemLogSaver ATest使用此LogSaver類將日誌保存在特定路徑中。
自動日誌收集器枚舉描述線束可以自動處理的收集器。
自動化記者定義來自Tradefed自動報告程序的映射的類。
AveragePostProcessor實現後處理器,以計算度量標準列表的平均值。

BackgroundDeviceAction在給定設備上運行命令,並根據需要重複執行該命令,直到取消操作為止。
BaseDeviceMetricCollector IMetricCollector基本實現,它允許在onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map))上啟動和停止收集。
BaseLeveledLogOutput ILeveledLogOutput的基本實現,允許根據標籤或標籤的名稱或組件來對其進行過濾。
BaseModuleController IModuleController基本實現,應實現該模塊以檢查模塊是否應該運行。
BaseMultiTargetPreparer IMultiTargetPreparer基本實現,允許禁用該對象。
BasePostProcessor每個實現都應擴展的基礎IPostProcessor
BaseRetryDecision IRetryDecision基本實現。
BaseStreamLogger <OS擴展OutputStream> ILeveledLogOutput ,它將日誌消息定向到輸出流和stdout。
BaseTargetPreparer ITargetPreparer基本實現類, ITargetPreparer允許控制是否禁用該對象。
BaseTestSuite與新套件系統一起運行兼容性測試套件的測試。
電池控制器實用程序類,它可以控制設備的電池充電狀態。
電池充電設備恢復當設備的電池電量低於給定閾值時,允許觸發命令。
電池溫度
電池不可用設備恢復恢復檢查器,如果電池電量不足,將觸發配置。
二進制狀態用於記錄具有IGNORE無操作狀態的ON / OFF狀態的枚舉。
藍牙實用程序在設備上調用BluetoothInstrumentation的實用程序功能

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

BootstrapBuildProvider IDeviceBuildProvider ,從測試設備引導生成信息

通常用於具有外部提供的內部版本的設備,即

BugreportCollector一個傳遞式ITestInvocationListener ,它在發生可配置事件時收集ITestInvocationListener ,然後在收集每個ITestInvocationListener#testLog報告後在其子ITestInvocationListener#testLog上調用ITestInvocationListener#testLog
BugreportCollector.Filter
BugreportCollector.Freq
BugreportCollector.Noun
BugreportCollector.Predicate描述何時捕獲錯誤報告的完整謂詞。
BugreportCollector.Relation
BugreportCollector.SubPredicate
BugreportzOnFailureCollector測試用例失敗時收集錯誤報告。
BuildInfo通用實施的IBuildInfo應與相關ITestDevice
BuildInfoRecorder一個ITargetPreparer ,它將構建信息元數據寫入指定的文件。
BuildInfoUtil一個IBuildInfo類,可幫助操縱IBuildInfo
BuildRetrievalError檢索構建以進行測試時發生致命錯誤。
BuildTestsZipUtils與Android構建系統生成的測試zip相關的操作的幫助程序類
大量電子郵件電子郵件發件人實用程序,可以進行以下配置:發送間隔,初始突發大小,收件人和郵件總數。
BundletoolUtil使用bundletool命令行在設備上安裝.apks的實用程序類。

C

CircularAtraceUtil開發了atrace實用程序,主要用於在Monkey測試期間識別ANR的根本原因。
CircularByteArray用於保存固定大小的數組的數據結構,該數組用作循環緩衝區,並跟踪該數組中所有值的總和。
ClassNotFoundConfigurationException找不到對像類時的ConfigurationException
類路徑掃描器在類路徑上查找條目。
ClassPathScanner.ClassNameFilter一個IClassPathFilter ,用於過濾和轉換Java類名稱。
ClassPathScanner.ExternalClassNameFilter拒絕內部類的ClassNameFilter
ClassPathScanner.IClassPathFilter類路徑入口路徑的過濾器

仿照FileFilter之後

ClusterBuildInfo一個IBuildInfo類,用於從TFC通過管道進行構建。
ClusterBuildProvider IBuildProvider用於下載TFC測試資源。
集群客戶端用於與TFC後端進行交互的IClusterClient實現。
集群命令表示從TF群集獲取的任務的類。
ClusterCommand.RequestType
ClusterCommand.State TF群集中命令的狀態。
ClusterCommandConfigBuilder用於為集群命令構建配置文件的類。
ClusterCommandEvent封裝要上載的集群命令事件的類。
ClusterCommandEvent.Builder
ClusterCommandEvent.Type
ClusterCommandLauncher一個IRemoteTest類,用於通過子IRemoteTest TF從TFC啟動命令。
ClusterCommandScheduler一個ICommandScheduler以支持TFC(貿易集群)。
ClusterCommandStatus表示TF群集的命令的狀態和取消原因的類。
ClusterDeviceInfo封裝要上傳的集群設備信息的類。
ClusterDeviceInfo.Builder
ClusterDeviceMonitor一個IDeviceMonitor實現,可將結果報告給Tradefed Cluster服務。
ClusterEventUploader <T擴展了IClusterEvent > ClusterEventUploader類,該類將IClusterEvent上傳到TFC。
ClusterHostEvent封裝要上載的群集主機事件的類。
ClusterHostEvent.Builder
ClusterHostEvent.HostEventType不同類型的主機事件的枚舉。
ClusterHostUtil TF Cluster的靜態util函數獲取全局配置實例,主機信息等。
ClusterLogSaver一個ILogSaver類,用於將測試輸出上傳到TFC。
ClusterLogSaver.FilePickingStrategy文件挑選策略。
集群選項
CollectingByteOutputReceiver一個IShellOutputReceiver ,它將整個外殼程序輸出收集到byte[]
收集輸出接收器一個IShellOutputReceiver ,它將整個shell輸出收集到一個String
收集測試監聽器一個ITestInvocationListener ,它將收集所有測試結果。
CollectorHelper幫助程序在多個位置執行所需的一些IMetricCollector操作。
CommandFileParser包含命令行的文件的解析器。
CommandFileParser.CommandLine
CommandOptions ICommandOptions實現。
指揮官備用TradeFederation入口點,它將運行命令行參數中指定的命令,然後退出。
CommandRunner.ExitCode可能會退出的錯誤代碼。
命令調度程序在所有可用設備上運行TradeFederation命令的調度程序。
CommandScheduler.HostState主機不同狀態的枚舉
CommonLogRemoteFileUtil利用此實用程序,可以避免公共文件的遠程日誌提取邏輯在不同的遠程設備表示形式之間進行代碼重複。
CommonLogRemoteFileUtil.KnownLogFileEntry遠程設備的已知日誌條目的表示。
ConditionPriorityBlockingQueue <T>具有ERROR(/PriorityBlockingQueue)類操作的線程安全類,可以檢索匹配特定條件的對象。
ConditionPriorityBlockingQueue.AlwaysMatch <T>與任何對象匹配的ConditionPriorityBlockingQueue.IMatcher
ConditionPriorityBlockingQueue.IMatcher <T>用於確定元素是否符合某種條件的接口。
ConfigCompletor Completor我們TF配置的完成器。
組態一個具體的IConfiguration實現,用於將加載的配置對象存儲在映射中。
配置定義保留配置及其相關對象及其選項的記錄。
ConfigurationDef.ConfigObjectDef用於保存className信息及其外觀編號的對象(例如,如果配置兩次具有相同的對象,則第一個將具有第一個外觀編號)。
配置工廠用於創建IConfiguration工廠。
ConfigurationFactory.ConfigLoader IConfigDefLoader實現可從一個根配置中跟踪包含的配置,並在循環包含中引發異常。
配置實用程序實用程序功能來處理配置文件。
配置YamlParser YAML樣式Tradefed配置的解析器
安慰主TradeFederation控制台為用戶提供交互界面

目前支持諸如

  • 添加命令進行測試
  • 列出設備及其狀態
  • 列出正在進行的調用
  • 列出隊列中的命令
  • 將調用日誌轉儲到文件/ stdout
  • 關掉
Console.ArgRunnable <T>具有可帶參數的run方法的Runnable
Console.CaptureList List<List<String>>便捷類型
ConsoleReaderOutputStream一個OutputStream,可用於使System.out.print()與用戶的ConsoleReader緩衝區配合使用。
ConsoleResultReporter結果報告器將測試結果打印到控制台。
CountingTestResultListener一個TestResultListener ,根據TestStatus跟踪測試TestStatus
CoverageOptions交易對象可以持有承保範圍選項。
CoverageOptions.Toolchain
CreateUserPreparer目標準備者,用於創建用戶並在最後清理用戶。

d

DebugHostLogOnFailureCollector當發生測試用例失敗時,收集器將收集並記錄主機端日誌。
DefaultRemoteAndroidTestRunner擴展ddmlib RemoteAndroidTestRunner來為Tradefed用例設置一些默認值。
DefaultTestsZipInstaller測試zip安裝程序的默認實現。
委託調用執行InvocationExecution ,將執行委託給另一個Tradefed二進製文件。
DependenciesResolver一種新型的提供程序,允許獲取測試的所有依賴關係。
設備分配結果表示命令分配嘗試的結果。
DeviceBatteryLevelChecker IRemoteTest ,用於檢查最小電池電量,如果不存在最小電量,則等待電池達到第二個充電閾值。
DeviceBuildDescriptor IBuildInfo包裝器類,其中包含用於檢索設備平台構建信息的幫助程序方法。
DeviceBuildInfo一個IBuildInfo ,代表完整的Android設備構建及其(可選)測試。
DeviceBuildInfoBootStrapper ITargetPreparer ,用從設備讀取的屬性替換構建信息字段

這對於通過外部來源(例如,

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一種測試,用於診斷可用於運行測試的設備。
DeviceFailedToBootError如果設備在通過內部版本刷新後無法啟動,則拋出該異常。
DeviceFeatureModuleController不支持某些功能的模塊控制器不運行測試。
DeviceFileReporter一個實用程序類,它檢查設備中的文件,如果找到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)它們發送到ITestInvocationListener#testLog(String, LogDataType, InputStreamSource)
DeviceFlashPreparer一個ITargetPreparer ,用於在物理Android硬件上ITargetPreparer圖像。
DeviceFlashPreparer.EncryptionOptions枚舉用於處理用戶數據圖像加密的選項
DeviceFolderBuildInfo IDeviceBuildInfo ,還包含本地文件系統上的目錄中包含的其他構建工件。
DeviceImageZipFlashingTargetPreparer一個目標準備器,用於通過特定格式提供的設備映像來刷新設備。
裝置經理
DeviceManager.FastbootDevice快速啟動模式下的設備表示。
DeviceMetricData用於保存指標收集器收集的所有數據的對象。
DeviceMonitorMultiplexer代理類,用於將請求傳播到多個IDeviceMonitor
設備屬性設備端屬性名稱的通用常量定義
DeviceRecoveryModeUtil
DeviceSelectionOptions用於設備選擇標準的容器。
DeviceSelectionOptions.DeviceRequestedType支持不同類型的佔位符設備。
DeviceSettingChecker在模塊運行期間檢查設備設置是否已更改。
設備設置一個ITargetPreparer ,用於根據提供的Option將設備配置為進行測試。
DeviceStateMonitor用於監視IDevice狀態的Helper類。
DeviceStorageStatusChecker檢查設備是否有足夠的磁盤空間用於給定的分區。
DeviceUnavailEmailResultReporter當由於設備不可用異常而導致調用失敗時將發送電子郵件的EmailResultReporter
DeviceUpdateTargetPreparer一個抽象的ITargetPreparer ,負責執行有關使用來自外部源(與構建服務相對)的設備映像文件更新設備的常見步驟。
DirectedGraph <V>有向無加權圖的實現。
DynamicFileStubTest這是交易測試,測試交易可以正確解析動態文件。
DynamicRemoteFileResolver有助於解決遠程文件路徑的類。
DynamicRemoteFileResolver.FileResolverLoader加載IRemoteFileResolver實現。

Ë

EmailResultReporter一個簡單的結果報告程序基類,用於發送測試結果的電子郵件。
EmmaXmlConstants解析emma xml報告時使用的常量。
強制SeLinuxChecker狀態檢查器,用於確保Selinux的狀態。
現有BuildProvider一個IBuildProvider ,它返回一個已經構造的IBuildInfo

F

FailureEmailResultReporter如果發生測試失敗或調用失敗,則發送EmailResultReporter通知的EmailResultReporter
假測試一種偽造的測試,其目的是使其易於生成可重複的測試結果。
FakeTestsZipFolder一種測試夾具,根據內容列表創建偽造的未壓縮測試文件夾。
FakeTestsZipFolder.ItemType
FastbootDeviceFlasher依靠fastboot來在物理Android硬件上刷新圖像的類。
FastbootHelper快速啟動操作的幫助程序類。
FastbootUpdateBootstrapPreparer一個ITargetPreparer ,它將指定的文件(引導加載程序,廣播,設備映像zip) IDeviceBuildInfoIDeviceBuildInfo以使用FastbootDeviceFlasher IDeviceBuildInfo設備,然後將引導後設備屬性注入到構建信息中以進行結果報告。
FileDownloadCache一個幫助程序類,用於維護下載文件的本地文件系統LRU緩存。
FileDownloadCacheFactory創建FileDownloadCache的工廠
FileDownloadCacheWrapper一個包裝器類,在實現IFileDownloader接口時提供FileDownloadCache功能。
FileIdleMonitor監視文件並在文件空閒時執行回調(即
文件記錄器一個ILeveledLogOutput ,它將日誌消息定向到文件和stdout。
FileProtoResultReporter原始記者,將TestRecord轉儲到文件中。
FilePullerDeviceMetricCollector一個BaseDeviceMetricCollector ,它偵聽來自設備的指標密鑰,並將其作為文件從設備中拉出。
FilePullerLogCollector設備端報告的文件的記錄器。
FileSystemLogSaver將日誌保存到文件系統。
FilteredResultForwarder的變異ResultForwarder ,只允許一個允許列表TestDescription予以報導。
FixedByteArrayOutputStream內存中的ERROR(/OutputStream)僅保留最大數量的數據。
FlashingResourcesParser解析閃存設備所需的輔助映像文件的必需版本的類。
FlashingResourcesParser.AndroidInfo Map&lt;String, MultiMap&lt;String, String&gt;&gt; typedef 。
FlashingResourcesParser.Constraint篩選接口,旨在允許FlashingResourcesParser忽略其可能使用的某些資源
FolderBuildInfo IFolderBuildInfo具體實現。
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操作(例如下載和上傳)的基類。
GCSDownloaderHelper GCS存儲桶的下載程序,負責緩存和解析全局配置。
GCSFileDownloader文件下載器,可從Google雲存儲(GCS)下載文件。
GCSFileUploader文件上傳器,用於將文件數據上傳到Google雲存儲(GCS)。
GCSHostResourceManager從GCS(Google雲存儲)下載主機資源。
GcsRemoteFileResolver IRemoteFileResolver實現,允許從GCS存儲桶下載。
GkiDeviceFlashPreparer一個目標準備器,用於用android通用內核通用映像刷新設備。
GoogleApiClientUtil用於創建Google API客戶端的實用程序。
GranularRetriableTestWrapper包裝類在IRemoteTest上工作,以在測試用例級別對IRemoteTest進行細化。
GsiDeviceFlashPreparer一個目標準備器,用Android通用系統映像刷新設備。

H

HelloWorldMultiTargetPreparer IMultiTargetPreparer的示例實現。
歷史記錄器TF History Logger,僅包含一些特定事件的特殊日誌。
HprofAllocSiteParser幫助程序類,用於解析hprof報告的“分配站點”部分中的信息。
HttpRemoteFileResolver IRemoteFileResolver實現,允許通過http下載遠程文件
HttpsRemoteFileResolver IRemoteFileResolver實現,允許通過https下載遠程文件

一世

IAbi接收器需要被測ABI的測試。
IAppBuildInfo不推薦使用此接口。直接使用IBuildInfo
IAutoRetriableTest未實現ITestFilterReceiver但仍希望支持自動重試的IRemoteTest接口。
電池信息定義與設備電池交互的接口。
IBatteryInfo.BatteryState描述當前的電池充電狀態。
IBuildProvider負責提供有關正在測試的構建的信息。
IBuildReceiver需要參考被測構建的測試。
ICluster客戶端與TFC後端進行交互的接口。
IClusterEvent用於將任何集群事件上載到TFC的接口。
IClusterEventUploader <T擴展了IClusterEvent > ClusterEventUploader的接口
IClusterOptions用於獲取與群集相關的選項的界面。
ICommandOptions命令執行選項的容器。
ICommandScheduler運行TradeFederation命令的調度程序。
ICommandScheduler.IScheduledInvocationListener調用完成時的調用事件偵聽器。
ICompressionStrategy表示可以在運行時選擇的壓縮算法的接口。
配置TradeFederation調用的配置信息。
IConfigurationFactory用於創建IConfiguration的工廠
IConfigurationReceiver表示接受IConfiguration對象的簡單接口。
IDefaultObjectLoader用於加載默認對象的接口,該對象應該是我們的YAML配置的一部分。
IDefaultObjectLoader.LoaderConfiguration加載配置對象,用於將信息傳遞給加載器。
IDeviceBuildInfo一個IBuildInfo ,代表完整的Android設備版本及其(可選)測試。
IDeviceBuildProvider一個IBuildProvider ,它使用來自ITestDevice信息來檢索構建。
IDeviceConfiguration設備配置持有人接口。
IDeviceFlasher刷新設備上的設備映像。
IDeviceFlasher.UserDataFlashOption枚舉用於處理用戶數據圖像的選項
IDeviceManager用於管理一組可用設備進行測試的界面。
IDeviceManager.IFastbootListener快速啟動狀態更改的偵聽器。
IDeviceMonitor監視設備狀態的接口。
IDeviceMonitor.DeviceLister Runnable的類,應返回已知設備及其狀態。
IDeviceSelection設備選擇標準的界面。
IDeviceTest需要引用ITestDevice對象的接口。
可識別的描述可以禁用的Tradefed對象的接口。
IFileDownloader下載遠程文件的界面。
IFlashingResourcesParser用於提供刷新設備所需的輔助映像文件的所需版本的接口。
IFlashingResourcesRetriever用於檢索刷新設備所需的輔助圖像文件的界面。
IFolderBuildInfo一個簡單的抽象IBuildInfo其構建工件包含在本地文件系統目錄中。
IFormatterGenerator描述SuiteResultHolder格式化程序的SuiteResultHolder
IHostCleaner測試運行完成後清理主機。
IInvocationContextReceiver需要參考調用上下文的測試。
IInvocationExecution接口,描述將作為調用的一部分執行的操作。
ILeveledLogOutput實現此接口的類提供了處理輸出日誌消息的方法。
ILogcat接收器一個類,提供設備logcat的輸出作為InputStreamSource
ILogRegistry ILogOutput單例記錄器的接口,用於多路復用和管理不同的記錄器。
ILogRegistry.EventType有助於記錄的事件
IMetricCollector報告測試結果時,此接口將被添加為裝飾器,以收集匹配的指標。
IMetricCollectorReceiver IRemoteTest的接口,如果他們需要獲取IMetricCollector的列表以進行測試運行,則可以實現。
IModuleController用於控制是否應執行模塊的接口。
IModuleController.RunStrategy枚舉,描述應如何執行模塊。
IModuleParameter套件模塊參數的接口。
IMul​​tiDeviceTest不推薦使用此接口。為了兼容起見,暫時保留了此接口,但實際上不再使用。請不要實施它。
IMul​​tiTargetPreparer一起為多個設備準備測試環境。
INativeDeviceTest需要引用INativeDevice對象的接口。
IncidentReportCollector如果進行了配置,則在測試運行結束時提取並處理在設備端報告的事件報告,並在主機端收集事件報告。
InstallApexModuleTargetPreparer
InstantAppHandler ModuleParameters#INSTANT_APP處理ModuleParameters#INSTANT_APP
InstrumentationResultProtoParser解析在工具測試運行期間收集的工具結果原型,並將結果通知ITestRunListener。
調用上下文IInvocationContext通用實現。
調用執行描述所有調用步驟的類:構建下載,target_prep,運行測試,清理。
InvocationFailureEmailResultReporter一個EmailResultReporter ,它還可以將通知限制為僅調用失敗。
調用範圍適用於單個Tradefed調用。
調用範圍
InvocationScopeModule可以在TF調用中的任何地方使用的Guice模塊,以請求Guice-Tradefed支持的對象。
調用狀態用於存儲調用狀態的類。
InvocationToJUnitResultForwarder偵聽ITestInvocationListener事件並將其轉發到TestListener
IPostProcessor後處理器是一個貿易聯盟對象,旨在允許在測試之後和結果報告之前處理指標和日誌。
IRemoteFileResolver可以將遠程文件解析為本地文件的對象的接口。
IReportNotExecuted如果執行不完整, IRemoteTest實現此接口的IRemoteTest可能會報告其未執行的測試,以改進報告功能。
調度員用於重新安排配置以供將來執行的接口。
IRestApiHelper用於執行REST API調用的幫助程序界面。
IResumableTest不推薦使用此接口。不再需要這個了
IRetry決策接口驅動重試決策,並在類上應用過濾器以實現更有針對性的重試。
IRuntimeHintProvider
ISandbox定義可用於運行調用的沙箱的接口。
ISandboxFactory用於創建ISandbox工廠。
ISetOptionReceiver此接口的實現應該有一個Option與鏈接到“設置選項”名HostTest#SET_OPTION_NAME
IShardableTest IRemoteTest ,可以分為獨立的可執行子測試。
IShardHelper描述用於配置的分片策略的對象的接口。
ISystemStatusChecker一個檢查程序,它檢查系統狀態並返回一個布爾值,以指示系統是否處於預期狀態。
ISystemStatusCheckerReceiver一個IRemoteTest ,它需要從配置訪問ISystemStatusChecker
ITargetCleaner不推薦使用此接口。 tearDown已移至基本ITargetPreparer接口。
ITargetPreparer為測試運行準備測試環境。
ITerribleFailureHandler一個接口,用於處理LogUtil.CLog.wtf(String, Throwable)嚴重故障
ITestAnnotationFilterReceiver可以根據註釋篩選要運行的測試的運行程序。
ITestCollector為測試收集提供支持;設置後,測試運行程序必須進行空運行以收集測試用例,而無需實際執行它們。
ITestFileFilterReceiver可以接收指定運行和/或不運行哪些測試的文件的運行程序。
ITestFilterReceiver可以過濾要運行的測試的運行程序。
ITestInformationReceiver用於接收某些類的TestInformation接口。
ITestInvocation處理一個TradeFederation測試調用。
ITestSuite用於運行測試套件的抽像類。
ITestSuiteResultLoader描述幫助程序以可以重新運行的方式加載先前結果的界面。
ITestsZipInstaller從測試zip文件(由構建系統輸出)在設備上安裝測試。

Ĵ

JavaCodeCoverageFlusher實用程序類,用於重置並強制從設備上運行的進程清除Java代碼覆蓋率度量。
JsonHttpTestResultReporter結果報告器,對測試指標結果進行編碼,並將設備信息分支為JSON,然後將POST分支為HTTP服務端點
JUnit4TestFilter通過擴展Filter為JUnit4運行器提供過濾的Helper類。
JUnitToInvocationResultForwarder偵聽TestListener事件並將其轉發到ITestInvocationListener
JUnitXmlParser解析器,該解析器從ant的XMLJUnitResultFormatter中存儲的JUnit結果中提取測試結果數據,並將其轉發給ITestInvocationListener。

ķ

KeyguardStatusChecker模塊執行後檢查鍵盤鎖狀態。

大號

大型輸出接收器旨在幫助運行長時間運行的命令的類收集輸出。
LastShardDetector在運行本地分片時,有時我們只希望在最後一個分片到達invocationEnded(long)時執行一些操作。
LaunchCvdHelper實用程序幫助程序,用於在Cuttlefish VM中控制Launch_cvd。
LeakedThreadStatusChecker狀態檢查器,以確保模塊不會洩漏正在運行的線程。
LegacySubprocessResultsReporter子過程結果報告程序的凍結實現,儘管其超類發生了變化,該報告程序仍應與TF / CTS的早期版本(例如8+)兼容。
ListInstrumentationParser一個IShellOutputReceiver ,用於解析“ pm list instrumentation”查詢的輸出
ListInstrumentationParser.InstrumentationTarget
本地AndroidVirtualDevice在TradeFed主機上運行的本地虛擬設備的類。
LocalAppBuildProvider一個IBuildProviderIBuildInfo根據提供的本地路徑構造IBuildInfo
LocalDeviceBuildProvider一個IBuildProviderIDeviceBuildInfo根據提供的文件系統目錄路徑構造IDeviceBuildInfo
LocalFileResolver IRemoteFileResolver實現,允許鏈接本地文件
LocalFolderBuildProvider一個IBuildProviderIFolderBuildInfo根據提供的本地路徑構造IFolderBuildInfo
LocalRunInstructionBuilder編譯指令以在本地運行測試的實用程序。
LogcatCrashResultForwarder特殊的偵聽器:在失敗(儀器進程崩潰)時,它將嘗試從logcat中提取崩潰,並將其添加到與測試關聯的失敗消息中。
LogcatEventParser解析logcat輸入以獲取事件。
LogcatEventParser.LogcatEvent結構以事件類型保存logcat事件並觸發logcat消息
LogcatEventType LogcatEventParser事件類型。
LogcatOnFailureCollector當測試用例失敗時,將捕獲並記錄logcat的收集器。
Logcat接收器在後台收集logcat的類。
日誌文件保護程序ITestInvocationListener的幫助ITestInvocationListener ,它將日誌數據保存到文件中
LogReceiver
LogRegistry一種ILogRegistry實現,使用基於進行調用的線程的ThreadGroup的適當記錄器來多路復用和管理不同的記錄器。
LogSaverResultForwarder一個ResultForwarder用於使用全局文件保護程序保存日誌。

中號

MainlineModuleHandler一個用於Mainline Modules的簡單處理程序類,它創建InstallApexModuleTargetPreparer並根據給定的mainline模塊將動態鏈接注入其中,以自動檢索這些模塊。
MainlineTestModuleController模塊控制器的基類,它基於被測設備上預加載的主線模塊來運行測試。
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
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.
MinApiLevelModuleController Base class for a module controller to not run tests when it below a specified API Level.
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 .

N

NameMangleListener A proxy listener to translate test method, class, and package names as results are reported.
NativeCodeCoverageFlusher A utility class that clears native coverage measurements and forces a flush of native coverage data from processes on the device.
NativeDevice Default implementation of a ITestDevice Non-full stack android devices.
NativeDevice.AdbAction A DeviceAction for running a OS 'adb ....' command.
NativeDevice.AdbShellAction
NativeDevice.RebootDeviceAction DeviceAction for rebooting a device.
NativeDevice.RebootMode A mode of a reboot.
NativeDeviceStateMonitor Helper class for monitoring the state of a IDevice with no framework support.
NegativeHandler Handler that specify that nothing should be done and the parameter should not create any extra module.
NestedDeviceStateMonitor Device state monitor that executes extra checks on nested device to accommodate the specifics of the virtualized environment.
NestedRemoteDevice Representation of the device running inside a remote Cuttlefish VM.
NetworkNotAvailableException Thrown when a device is not able to connect to network for testing.
NoDeviceException Thrown when there's no device to execute a given command.
NoisyDryRunTest Run noisy dry run on a command file.
NotMultiAbiHandler Special handler that notify the SuiteModuleLoader that the secondary abi should not create a module.

O

OpenObjectLoader Loader for the default objects available in AOSP.
OptionCopier A helper class that can copy Option field values with same names from one object to another.
OptionNotAllowedException Specific ConfigurationException when an option is not allowed to be passed in the command line.
OptionSetter Populates Option fields.
OptionSetter.OptionFieldsForName Container for the list of option fields with given name.
OtaDeviceBuildInfo A IDeviceBuildInfo used for over-the-air update testing.
OtatoolsBuildInfo An IBuildInfo that contains otatools artifacts.
OtaToolsDeviceBuildInfo An OtaDeviceBuildInfo that also contains an otatools directory.
OtaZipfileBuildProvider Provides a IBuildInfo based on a local OTA zip file.

P

Pair <A, B> Define our own Pair class which contains two objects.
ParallelDeviceExecutor <V> Wrapper of ERROR(/ExecutorService) to execute a function in parallel.
ParentSandboxInvocationExecution Version of InvocationExecution for the parent invocation special actions when running a sandbox.
ParentShardReplicate Replicate a setup for one device to all other devices that will be part of sharding.
PassingTestFileReporter A ITestInvocationListener that saves the list of passing test cases to a test file
PrettyPrintDelimiter Helper utility that helps to print delimited message that stands out.
PropertyChanger A utility class for changing (or adding) items in an Android property file
ProtoResultParser Parser for the Tradefed results proto format.
ProtoResultParser.TestLevel Enumeration representing the current level of the proto being processed.
ProtoResultReporter Result reporter build a TestRecord protobuf with all the results inside.
ProxyConfiguration Object that allows pointing to a remote configuration to execute.
PsParser Utility used to parse(USER,PID and NAME) from the "ps" command output

Q

QuotationAwareTokenizer

R

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.
RemoteZip Utilities to unzip individual files inside a remote zip file.
RestApiHelper A helper class for performing REST API calls.
ResultAggregator Special forwarder that aggregates the results when needed, based on the retry strategy that was taken.
ResultAndLogForwarder Forwarder for results and logs events.
ResultForwarder A ITestInvocationListener that forwards invocation results to a list of other listeners.
ResultsPlayer Special runner that replays the results given to it.
RetentionFileSaver Helper class for creating a .retention file in a directory.
RetryConfigurationFactory Factory that handles retrying a command.
RetryLogSaverResultForwarder Forwarder that also handles passing the current attempt we are at.
RetryRescheduler A special runner that allows to reschedule a previous run tests that failed or where not executed.
RetryRescheduler.RetryType The types of the tests that can be retried.
RetryResultForwarder An Extension of ResultForwarder that always push to a given attempt number.
RetryResultHelper Helper class to determine which module or test should run or not.
RetryStatistics Structure holding the statistics for a retry session of one IRemoteTest .
RunCommandTargetPreparer
RunConfigDeviceRecovery Generic base IMultiDeviceRecovery to run a tradefed configuration to do the recovery step.

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.
SecondaryUserHandler Handler for ModuleParameters#SECONDARY_USER .
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.
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.
SimpleFileLogger A ILeveledLogOutput that directs log messages to stdout and to a single log file.
SimplePerfResult Object to hold all simpleperf test results
SimplePerfStatResultParser A utility class to parse simpleperf result.
SimplePerfUtil Utility class to dispatch simple command and collect results
SimplePerfUtil.SimplePerfType Enum of simpleperf command options
SimpleStats A small utility class that calculates a few statistical measures given a numerical dataset.
SizeLimitedOutputStream A thread safe file backed ERROR(/OutputStream) that limits the maximum amount of data that can be written.
Sl4aBluetoothUtil A utility class provides Bluetooth operations on one or two devices using SL4A
Sl4aBluetoothUtil.BluetoothAccessLevel Enums for Bluetooth device access level which are based on BluetoothDevice.java
Sl4aBluetoothUtil.BluetoothConnectionState Enums for Bluetooth connection states which are based on BluetoothProfile.java
Sl4aBluetoothUtil.BluetoothPriorityLevel Enums for Bluetooth profile priority level which are based on BluetoothProfile.java
Sl4aBluetoothUtil.BluetoothProfile Enums for Bluetooth profiles which are based on BluetoothProfile.java
Sl4aClient Sl4A client to interact via RPC with SL4A scripting layer.
Sl4aEventDispatcher Event dispatcher polls for event and queue them by name to be queried.
Sl4aEventDispatcher.EventSl4aObject Object returned by the event poller.
SnapshotInputStreamSource A File-backed InputStreamSource.
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.
StreamProtoReceiver A receiver that translates proto TestRecord received into Tradefed events.
StreamProtoResultReporter An implementation of ProtoResultReporter
StrictShardHelper Sharding strategy to create strict shards that do not report together,
StringEscapeUtils Utility class for escaping strings for specific formats.
StringUtil Utility class for escaping strings for common string manipulation.
StubBuildProvider No-op empty implementation of a IBuildProvider .
StubMultiTargetPreparer Placeholder empty implementation of a IMultiTargetPreparer .
StubTargetPreparer Placeholder empty implementation of a ITargetPreparer .
StubTest No-op empty test implementation.
StubTestRunListener Stub implementation of ITestRunListener
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
SubprocessReportingHelper A class to build a wrapper configuration file to use subprocess results reporter for a cluster command.
SubprocessResultsReporter Implements ITestInvocationListener to be specified as a result_reporter and forward from the subprocess the results of tests, test runs, test invocations.
SubprocessTestResultsParser Extends ERROR(/FileOutputStream) to parse the output before writing to the file so we can generate the test events on the launcher side.
SubprocessTestResultsParser.StatusKeys Relevant test status keys.
SubprocessTfLauncher A IRemoteTest for running tests against a separate TF installation.
SuiteApkInstaller Installs specified APKs for Suite configuration: either from $ANDROID_TARGET_OUT_TESTCASES variable or the ROOT_DIR in build info.
SuiteModuleLoader Retrieves Compatibility test module definitions from the repository.
SuiteModuleLoader.ConfigFilter A ERROR(/FilenameFilter) to find all the config files in a directory.
SuiteResultHolder Helper object to ease up serializing and deserializing the invocation results.
SuiteResultReporter Collect test results for an entire suite invocation and output the final results.
SuiteResultReporter.ModulePrepTimes Object holder for the preparation and tear down time of one module.
SuiteTestFilter Represents a filter for including and excluding tests.
SystemServerFileDescriptorChecker Checks if system server appears to be running out of FDs.
SystemServerStatusChecker Check if the pid of system_server has changed from before and after a module run.
SystemUtil Utility class for making system calls.
SystemUtil.EnvVariable

T

TableBuilder Helper class to display a matrix of String elements in a table.
TableFormatter Helper class to display a matrix of String elements so each element column is lined up
TarUtil Utility to manipulate a tar file.
TelephonyHelper A utility to use and get information related to the telephony.
TelephonyHelper.SimCardInformation An information holder for the sim card related information.
TelephonyTokenProvider Token provider for telephony related tokens.
TemplateResolutionError Class extending ConfigurationException for template related error during configuration parsing.
TerribleFailureEmailHandler A simple handler class that sends an email to interested people when a WTF (What a Terrible Failure) error occurs within a Trade Federation instance.
TestAppInstallSetup A ITargetPreparer that installs one or more apps from a IDeviceBuildInfo#getTestsDir() folder onto device.
TestContext A class to model a TestContext message of TFC API.
TestDependencyResolver Helper to resolve dependencies if needed.
TestDescriptionsFile A utility class for marshalling and unmarshalling a list of TestDescriptions to a test file.
TestDevice Implementation of a ITestDevice for a full stack android device
TestEnvironment A class to model a TestEnvironment message returned by TFC API.
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.
TestFilterHelper Helper class for filtering tests
TestGroupStatus A class to store status of a test group.
TestInfo Stores the test information set in a TEST_MAPPING file.
TestInvocation Default implementation of ITestInvocation .
TestInvocation.RunMode The different mode an invocation can run into.
TestInvocation.Stage
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.
TestOutputUploader A class to upload test output files to GCS/HTTP.
TestRecordInterpreter Utility to convert a TestRecord proto into a more easily manipulable format in Tradefed.
TestResource A class to model a TestResource message returned by TFC API.
TestResourceDownloader A class to download test resource files from file system/GCS/HTTP.
TestResultListener A simplification of ITestLifecycleListener for implementers that only care about individual test results.
TestRunToTestInvocationForwarder Forwarder from ddmlib ITestRunListener to ITestLifeCycleReceiver .
TestsPoolPoller Tests wrapper that allow to execute all the tests of a pool of tests.
TestSuiteInfo A class that resolves loading of build related metadata for test suite

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

TextResultReporter A test result reporter that forwards results to the JUnit text result printer.
TfObjectTracker A utility to track the usage of the different Trade Fedederation objects.
TfSuiteRunner Implementation of ITestSuite which will load tests from TF jars res/config/suite/ folder.
TfTestLauncher A IRemoteTest for running unit or functional tests against a separate TF installation.
TimeStatusChecker Status checker to ensure that the device and host time are kept in sync.
TimeVal This class is deprecated. use Duration instead.
TokenProviderHelper Helper that gives the provider associated to a particular token, in order to find out if a device supports the token.
TradefedConfigObject A class to model a TradefedConfigObject message of TFC API.
TradefedConfigObject.Type A list of configuration object types which can be injected to a cluster command config.
TradefedDelegator Objects that helps delegating the invocation to another Tradefed binary.
TradefedSandbox Sandbox container that can run a Trade Federation invocation.
TradefedSandboxFactory Default implementation for SandboxFactory
TradefedSandboxRunner Runner associated with a TradefedSandbox that will allow executing the sandbox.
TradefedSandboxRunner.StubScheduledInvocationListener A stub IScheduledInvocationListener that does nothing.

U

UnexecutedTestReporterThread Threads that takes care of reporting all unexecuted tests.
UsbResetMultiDeviceRecovery A IMultiDeviceRecovery which resets USB buses for offline devices.
UsbResetRunConfigRecovery Allow to trigger a command to reset the USB of a device
UsbResetTest An IRemoteTest that reset the device USB and checks whether the device comes back online afterwards.
UserChecker Checks if users have changed during the test.

V

ValidateSuiteConfigHelper This class will help validating that the IConfiguration loaded for the suite are meeting the expected requirements: - No Build providers - No Result reporters
VmRemoteDevice A Remote virtual device that we will manage from inside the Virtual Machine.

W

WaitDeviceRecovery A simple implementation of a IDeviceRecovery that waits for device to be online and respond to simple commands.
WifiHelper Helper class for manipulating wifi services on device.

X

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

Y

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

Z

ZipCompressionStrategy An ICompressionStrategy for creating zip archives.