Indeks Kelas

Ini adalah kelas API. Lihat semua paket API .

A

AaptParser Kelas yang mengekstrak info dari apk dengan mem-parsing keluaran 'aapt dump badging'.
AaptParser.AaptVersion Enum opsi untuk versi AAPT yang digunakan untuk mengurai file APK.
Abi Kelas yang mewakili ABI.
AbiFormatter Kelas utilitas untuk abi.
AbiUtils Kelas utilitas untuk menangani ABI perangkat
Koneksi Abstrak Representasi koneksi abstrak.
AbstractHostMonitor Kelas tipikal untuk Pemantauan Kesehatan Tuan Rumah.
AbstractXmlParser Kelas dasar pembantu untuk mem-parsing file xml
AbstractXmlParser.ParseException Dilempar jika input XML tidak dapat diuraikan
AcloudConfigParser Kelas pembantu yang mengurai konfigurasi Acloud (digunakan untuk memulai instance perangkat Cloud).
AcloudConfigParser.AcloudKeys Kumpulan kunci yang dapat dicari dari konfigurasi.
ActionInProgress Tindakan umum sedang berlangsung.
ActiveTrace Kelas utama membantu mendeskripsikan dan mengelola pelacakan aktif.
Pemeriksa Status Aktivitas Pemeriksa status untuk sisa aktivitas yang berjalan di akhir modul.
AdbRootElevator AutoCloseable yang mengaktifkan adb root saat dibuat jika diperlukan dan memulihkan status root saat selesai.
Koneksi AdbSsh Koneksi adb melalui jembatan ssh.
AdbStopServerPreparer Siapkan target untuk menghentikan server adb di host sebelum dan sesudah menjalankan pengujian adb.
AdbTcpConnection Representasi koneksi default perangkat, dianggap sebagai koneksi adb standar perangkat.
AdbUtils Kelas utilitas untuk operasi adb.
AfterClassWithInfo Jaminan serupa dengan AfterClass tetapi metode yang dianotasi harus memerlukan parameter TestInformation .
AggregatePostProcessor Agregator metrik yang memberikan persentil min, maks, rata-rata, varians, standar deviasi, total, jumlah, dan opsional untuk metrik numerik yang dikumpulkan selama pengujian multi-iterasi, memperlakukannya sebagai ganda.
AllTestAppsInstallSetup ITargetPreparer yang menginstal semua aplikasi dari folder IDeviceBuildInfo#getTestsDir() ke perangkat.
AltDirBehaviour Enum untuk menentukan perilaku direktori alternatif untuk berbagai penginstal/pendorong artefak pengujian

AndroidJUnitTest Pengujian yang menjalankan paket pengujian instrumentasi pada perangkat tertentu menggunakan android.support.test.runner.AndroidJUnitRunner.
AoaTargetPreparer ITargetPreparer yang mengeksekusi serangkaian tindakan (misalnya klik dan gesek) menggunakan protokol Android Open Accessory (AOAv2).
AppBuildInfo IBuildInfo yang merepresentasikan aplikasi Android dan paket pengujiannya.
AppDeviceBuildInfo Kelas ini sudah tidak digunakan lagi. Gunakan IDeviceBuildInfo secara langsung.
Pengaturan Aplikasi ITargetPreparer yang menginstal apk dan pengujiannya.
AppVersionFetcher Kelas utilitas untuk mendapatkan string versi aplikasi dari perangkat.
AppVersionFetcher.AppVersionInfo Jenis info versi aplikasi.
ArchModuleController Pengontrol modul untuk tidak menjalankan pengujian jika tidak cocok dengan arsitektur yang diberikan.
ArgsOptionParser Mengisi bidang Option dari argumen baris perintah yang diuraikan.
ArrayUtil Metode utilitas untuk array
ArtChrootPreparer Buat direktori chroot untuk tes ART.
ArtGTest
ArtRunTest Pelari uji untuk menjalankan uji coba ART.
ArtRunTest.AdbShellCommandException Kelas pengecualian untuk melaporkan kesalahan yang terjadi selama eksekusi perintah shell ADB.
ATestFileSystemLogSaver Kelas LogSaver ini digunakan oleh ATest untuk menyimpan log di jalur tertentu.
AtestRunner Implementasi ITestSuite
AtraceCollector IMetricCollector yang menjalankan atrace selama pengujian dan mengumpulkan hasilnya dan mencatatnya ke dalam pemanggilan.
AtraceRunMetricCollector Mengumpulkan pelacakan dari semua direktori pengujian di bawah direktori yang diberikan dari perangkat pengujian, mencatat log direktori pengujian dan memposting memproses file pelacakan di bawah direktori pengujian dan menggabungkan metrik.
AutoLogCollector Pencacahan yang menggambarkan kolektor mana yang secara otomatis dapat ditangani oleh harness.
Reporter Otomatis Kelas yang mendefinisikan pemetaan dari pelapor otomatis Tradefed.
Rata-rataPostProcessor Implementasi post processor yang menghitung rata-rata daftar metrik.

B

BackgroundDeviceAction Menjalankan perintah pada perangkat tertentu yang berulang seperlunya hingga tindakan dibatalkan.
BaseDeviceMetricCollector Implementasi dasar IMetricCollector yang memungkinkan untuk memulai dan menghentikan pengumpulan di onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) dan ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map)) .
BaseEmulatorPreparer Persiapan umum untuk meluncurkan emulator lokal.
BaseHostJUnit4Test Kelas pengujian dasar untuk menjalankan pengujian gaya JUnit4 host.
BaseLeveledLogOutput Implementasi dasar untuk ILeveledLogOutput yang memungkinkan untuk memfilter beberapa tag berdasarkan nama atau komponennya.
BaseModuleController Implementasi dasar IModuleController yang harus diimplementasikan untuk memeriksa apakah suatu modul harus dijalankan atau tidak.
BaseMultiTargetPreparer Implementasi dasar IMultiTargetPreparer yang memungkinkan untuk menonaktifkan objek.
BasePostProcessor IPostProcessor dasar yang harus diperluas oleh setiap implementasi.
BaseRetryDecision Implementasi dasar IRetryDecision .
BaseStreamLogger <OS memperluas OutputStream> ILeveledLogOutput yang mengarahkan pesan log ke aliran keluaran dan ke stdout.
BaseTargetPreparer Kelas implementasi dasar untuk ITargetPreparer yang memungkinkan untuk mengontrol apakah objek dinonaktifkan atau tidak.
BaseTestSuite Tes untuk menjalankan Compatibility Test Suite dengan sistem suite baru.
BatteryController Kelas utilitas yang memungkinkan untuk mengontrol status pengisian daya baterai suatu perangkat.
Isi Ulang BateraiPemulihan Perangkat Izinkan untuk memicu perintah saat level baterai perangkat berada di bawah ambang batas yang diberikan.
Suhu Baterai
BatteryUnavailableDeviceRecovery Pemeriksa pemulihan yang akan memicu konfigurasi jika level baterai tidak tersedia.
BeforeClassWithInfo Jaminan serupa seperti BeforeClass tetapi metode yang dianotasi harus memerlukan parameter TestInformation .
BinaryState Enum digunakan untuk merekam status ON/OFF dengan status IGNORE no-op.
BluetoothConnectionLatencyCollector Pengumpul akan mendorong konfigurasi metrik durasi statsd yang ditentukan sebelumnya ke perangkat dan mengumpulkan durasi koneksi Bluetooth untuk setiap profil.
BluetoothConnectionStateCollector Kolektor ini akan mengumpulkan metrik BluetoothConnectionStateChanged dan merekam nomor status koneksi untuk setiap profil.
BluetoothConnectionSuccessRatePostProcessor Implementasi postprocessor yang menghitung tingkat keberhasilan untuk profil bluetooth

Gunakan "metric-key-match" untuk menentukan metrik yang berisi status koneksi bluetooth dalam array numerik Contoh [0, 1, 2, 3, 0, 1, 2, 3].

BluetoothHciSnoopLogCollector Collector untuk mengaktifkan Bluetooth HCI snoop logging pada DUT dan mengumpulkan log untuk setiap pengujian.
BluetoothUtils Fungsi utilitas untuk memanggil BluetoothInstrumentation di perangkat

Kode sisi perangkat BluetoothInstrumentation dapat ditemukan di AOSP di: frameworks/base/core/tests/bluetoothtests

BootstrapBuildProvider IDeviceBuildProvider yang mem-bootstrap membangun info dari perangkat uji

Ini biasanya digunakan untuk perangkat dengan build yang disediakan secara eksternal, yaitu

BootstrapServiceFileResolverLoader Memuat penyelesai menggunakan fasilitas pemuatan layanan.
laporan bug Objek yang memegang referensi file bugreport, kompatibel dengan flat bugreport dan zip bugreport (bugreportz).
BugreportCollector ITestInvocationListener pass-through yang mengumpulkan laporan bug saat peristiwa yang dapat dikonfigurasi terjadi dan kemudian memanggil ITestInvocationListener#testLog pada turunannya setelah setiap laporan bug dikumpulkan.
BugreportCollector.Filter
BugreportCollector.Freq
BugreportCollector.Noun
BugreportCollector.Predikat Predikat lengkap yang menjelaskan kapan harus merekam laporan bug.
BugreportCollector.Relation
BugreportCollector.SubPredikat
BugreportzOnFailureCollector Kumpulkan laporan bug saat kasus uji gagal.
BugreportzOnTestCaseFailureCollector Kumpulkan laporan bug ketika kasus uji coba gagal.
BuildError Dilempar jika build yang disediakan gagal dijalankan.
BuildInfo Implementasi umum IBuildInfo yang harus diasosiasikan dengan ITestDevice .
BuildInfoKey Pencacahan pemegang kelas terkait untuk membangun kueri informasi.
BuildInfoKey.BuildInfoFileKey Enum menjelaskan semua jenis file yang diketahui yang dapat dilihat melalui IBuildInfo.getFile(com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey) .
BuildInfoRecorder ITargetPreparer yang menulis build info meta data ke dalam file tertentu.
BuildInfoUtil Kelas util untuk membantu memanipulasi IBuildInfo
BuildRetrievalError Terjadi error fatal saat mengambil build untuk pengujian.
BuildSerializedVersion Kelas yang berisi versi serialisasi saat ini dari semua IBuildInfo .
BuildTestsZipUtils Kelas pembantu untuk operasi yang terkait dengan pengujian zip yang dihasilkan oleh sistem build Android
BulkEmailer Utilitas pengirim email yang memungkinkan konfigurasi berikut: interval terkirim, ukuran burst awal, penerima, dan jumlah total pesan.
BundletoolUtil Kelas utilitas yang menggunakan baris perintah bundletool untuk menginstal .apks di perangkat.
ByteArrayInputStreamSource
DaftarByteArray Kelas untuk mewakili larik byte ringan.
ByteArrayUtil Utilitas untuk beroperasi pada array byte, misalnya mengubah byte menjadi integer.

C

CarModuleController Pengontrol ini mencegah eksekusi kasus pengujian pada perangkat non-otomotif.
CarryDnaeError RuntimeException internal untuk membawa DeviceNotAvailableException melalui kerangka kerja JUnit4.
CarryInterruptedException Dilempar saat batas waktu fase uji dipicu dan InterruptedException perlu dibawa dari utas eksekusi uji ke utas eksekusi pemanggilan.
CdmaDeviceFlasher Kelas yang mem-flash gambar pada perangkat Android fisik dengan radio CDMA.
CecControllerTokenProvider Penyedia token untuk token terkait Consumer Electronics Control (CEC).
Informasi Direktori Pusat CentralDirectoryInfo adalah kelas yang berisi informasi file/folder di dalam file zip.
CheckPairingPreparer CompanionAwarePreparer yang memverifikasi ikatan BT antara perangkat utama dan pendamping
CircularAtraceUtil Utilitas atrace dikembangkan terutama untuk mengidentifikasi akar penyebab ANR selama pengujian Monkey.
CircularByteArray Struktur data untuk menyimpan larik ukuran tetap yang beroperasi sebagai buffer melingkar, dan melacak jumlah total semua nilai dalam larik.
ClangCodeCoverageCollector BaseDeviceMetricCollector yang akan menarik pengukuran cakupan Clang dari perangkat dan mencatatnya sebagai artefak pengujian.
ClassNotFoundConfigurationException ConfigurationException ketika kelas objek tidak ditemukan.
Pemindai ClassPath Menemukan entri di classpath.
ClassPathScanner.ClassNameFilter IClassPathFilter yang memfilter dan mengubah nama kelas java.
ClassPathScanner.ExternalClassNameFilter ClassNameFilter yang menolak kelas dalam
ClassPathScanner.IClassPathFilter Filter untuk jalur masuk classpath

Berpola setelah FileFilter

ClockworkUtils Utilitas jarum jam untuk berbagi logika multi-perangkat
CloseableTraceScope Kelas cakupan yang memungkinkan untuk melaporkan bagian pelacakan melalui coba-dengan-sumber daya
ClusterBuildInfo Kelas IBuildInfo untuk build yang disalurkan dari TFC.
ClusterBuildProvider IBuildProvider untuk mengunduh sumber daya pengujian TFC.
ClusterClient Implementasi IClusterClient untuk berinteraksi dengan backend TFC.
ClusterCommand Kelas yang mewakili tugas yang diambil dari TF Cluster.
ClusterCommand.RequestType
ClusterCommand.State Status perintah di kluster TF.
ClusterCommandConfigBuilder Kelas untuk membangun file konfigurasi untuk perintah cluster.
ClusterCommandEvent Kelas untuk mengenkapsulasi peristiwa perintah klaster yang akan diunggah.
ClusterCommandEvent.Builder
ClusterCommandEvent.Type
ClusterCommandLauncher Kelas IRemoteTest untuk meluncurkan perintah dari TFC melalui TF subproses.
ClusterCommandScheduler ICommandScheduler untuk mendukung TFC (Tradefed Cluster).
ClusterCommandStatus Kelas yang mewakili status dan alasan pembatalan untuk perintah dari TF Cluster.
ClusterDeviceInfo Kelas untuk mengenkapsulasi informasi perangkat cluster yang akan diunggah.
ClusterDeviceInfo.Builder
ClusterDeviceMonitor Implementasi IDeviceMonitor yang melaporkan hasil ke layanan Tradefed Cluster.
ClusterEventUploader <T extends IClusterEvent > Kelas ClusterEventUploader, yang mengunggah IClusterEvent ke TFC.
ClusterHostEvent Kelas untuk mengenkapsulasi peristiwa host klaster yang akan diunggah.
ClusterHostEvent.Builder
ClusterHostEvent.HostEventType Enum dari berbagai jenis acara tuan rumah.
ClusterHostUtil Fungsi util statis untuk TF Cluster untuk mendapatkan instance konfigurasi global, informasi host, dll.
ClusterLogSaver Kelas ILogSaver untuk mengunggah keluaran pengujian ke TFC.
ClusterLogSaver.FilePickingStrategy Strategi memilih file.
ClusterOptions
Tes Cakupan Kode Pengujian yang menjalankan paket pengujian instrumentasi pada perangkat tertentu dan menghasilkan laporan cakupan kode.
MengumpulkanByteOutputReceiver IShellOutputReceiver yang mengumpulkan seluruh keluaran shell menjadi byte[] .
MengumpulkanOutputReceiver IShellOutputReceiver yang mengumpulkan seluruh keluaran shell menjadi satu String .
MengumpulkanTestListener ITestInvocationListener yang akan mengumpulkan semua hasil tes.
CollectorHelper Pembantu untuk melakukan beberapa operasi IMetricCollector yang dibutuhkan di beberapa tempat.
CommandFileParser Parser untuk file yang berisi sekumpulan baris perintah.
CommandFileParser.CommandLine
CommandInterrupter Layanan yang memungkinkan perintah TradeFederation diinterupsi atau ditandai sebagai tidak dapat diinterupsi.
CommandLineBuildInfoBuilder Utilitas dimaksudkan untuk menangkap argumen informasi build biasa dari baris perintah dan membuat IBuildInfo darinya.
Opsi Perintah Implementasi ICommandOptions .
CommandOptionsGetter Implementasi layanan yang mengembalikan nilai opsi perintah dari pemanggilan yang diberikan.
CommandResult Berisi hasil dari perintah.
CommandRunner Titik masuk TradeFederation alternatif yang akan menjalankan perintah yang ditentukan dalam argumen baris perintah dan kemudian keluar.
CommandRunner.ExitCode Kode kesalahan yang memungkinkan untuk keluar.
Penjadwal Perintah Penjadwal untuk menjalankan perintah TradeFederation di semua perangkat yang tersedia.
CommandScheduler.HostState Enum dari status host yang berbeda
Status Perintah Mewakili status operasi berjangka waktu.
CommandStatusHandler Handler membantu memantau dan memperbarui status doa.
CommonLogRemoteFileUtil Utilitas ini memungkinkan untuk menghindari duplikasi kode di seluruh representasi perangkat jarak jauh yang berbeda untuk logika pengambilan log jarak jauh dari file umum.
CommonLogRemoteFileUtil.KnownLogFileEntry Representasi dari entri log yang diketahui untuk perangkat jarak jauh.
CompanionAllocator Kelas dasar yang menangani pengalokasian dan pembebasan perangkat pendamping

getCompanionDeviceSelectionOptions() harus diterapkan untuk menjelaskan kriteria yang diperlukan untuk mengalokasikan perangkat pendamping

CompanionAwarePreparer ITargetPreparer yang merangkum logika mendapatkan perangkat pendamping yang sudah dialokasikan.
CompanionAwareTest Kelas uji dasar yang merangkum boilerpate untuk mendapatkan dan memeriksa perangkat pendamping

Subkelas dapat memanggil getCompanion() untuk mengambil pendamping yang dialokasikan.

CompanionDeviceTracker Kelas untuk mengalokasikan dan membebaskan perangkat pendamping
CompanionRunCommandTargetPreparer ITargetPreparer yang menjalankan perintah tertentu pada perangkat pendamping yang dialokasikan
CompanionTestAppInstallSetup ITargetPreparer yang menginstal satu atau beberapa aplikasi dari folder IDeviceBuildInfo#getTestsDir() ke perangkat pendamping yang dialokasikan.
Kompilasi BootImageDenganSpeedTargetPreparer Mengkompilasi ulang boot classpath dan server sistem dengan 'kecepatan' filter kompiler.
ConditionFailureMonitor Pantau setiap kegagalan dari pemanggilan.
ConditionPriorityBlockingQueue <T> Kelas thread-safe dengan operasi mirip ERROR(/PriorityBlockingQueue) yang dapat mengambil objek yang cocok dengan kondisi tertentu.
ConditionPriorityBlockingQueue.AlwaysMatch <T> ConditionPriorityBlockingQueue.IMatcher yang cocok dengan objek apa pun.
ConditionPriorityBlockingQueue.IMatcher <T> Antarmuka untuk menentukan apakah elemen cocok dengan semacam kondisi.
ConfigCompleter Implementasi Completer untuk konfigurasi TF kami.
Konfigurasi Implementasi IConfiguration konkret yang menyimpan objek konfigurasi yang dimuat di peta.
KonfigurasiDef Memegang catatan konfigurasi, objek terkait dan opsinya.
ConfigurationDef.ConfigObjectDef Objek untuk menyimpan info untuk className dan nomor tampilan yang dimilikinya (misalnya jika konfigurasi memiliki objek yang sama dua kali, yang pertama akan memiliki nomor tampilan pertama).
ConfigurationDescriptor Objek Konfigurasi yang menjelaskan beberapa aspek dari konfigurasi itu sendiri.
ConfigurationDescriptor.LocalTestRunner Enum digunakan untuk menunjukkan pelari uji lokal.
Pengecualian Konfigurasi Dilempar jika konfigurasi tidak dapat dimuat.
Pabrik Konfigurasi Pabrik untuk membuat IConfiguration .
ConfigurationFactory.ConfigLoader Implementasi IConfigDefLoader yang melacak konfigurasi yang disertakan dari satu konfigurasi root, dan melontarkan pengecualian pada penyertaan melingkar.
ConfigurationFactory.ExceptionLoader
KonfigurasiUtil Fungsi utilitas untuk menangani file konfigurasi.
ConfigurationXmlParserSettings Kelas sederhana untuk menerima pengaturan untuk ConfigurationXmlParser

Untuk meneruskan pengaturan ke kelas ini, alias adalah wajib.

KonfigurasiYamlParser Parser untuk konfigurasi Tradefed gaya YAML
ConfigUtil Kelas utilitas untuk membuat, berinteraksi dengan, dan mendorong file konfigurasi statsd.
ConfigUtil.LogSource
Menghibur Konsol TradeFederation utama menyediakan antarmuka bagi pengguna untuk berinteraksi

Saat ini mendukung operasi seperti

  • tambahkan perintah untuk menguji
  • daftar perangkat dan statusnya
  • daftar doa yang sedang berlangsung
  • daftar perintah dalam antrian
  • buang log doa ke file/stdout
  • matikan
Console.ArgDapat Dijalankan <T> Runnable dengan metode run yang dapat mengambil argumen
Console.CaptureList Jenis kemudahan untuk List<List<String>>
ConsoleReaderOutputStream OutputStream yang dapat digunakan untuk membuat System.out.print() bermain baik dengan pengguna LineReader unfinishedLine.
ConsoleResultReporter Pelapor hasil untuk mencetak hasil tes ke konsol.
ContentProviderHandler Penangan yang mengabstraksi interaksi penyedia konten dan memungkinkan untuk menggunakan penyedia konten sisi perangkat untuk operasi yang berbeda.
CountingTestResultListener TestResultListener yang melacak jumlah total pengujian oleh TestStatus
CountTestCasesCollector Hitung dan laporkan jumlah kasus uji untuk IRemoteTest tertentu.
CoverageMeasurementForwarder Pengujian placeholder yang meneruskan pengukuran cakupan dari penyedia build ke logger.
Pilihan Cakupan Objek tradefed untuk menyimpan opsi cakupan.
CoverageOptions.Toolchain
CPUThrottlingWaiter ITargetPreparer yang menunggu hingga frekuensi maksimum pada semua inti dipulihkan ke level tertinggi yang tersedia
BuatAvdPreparer
CreateUserPreparer Persiapan target untuk membuat pengguna dan membersihkannya di bagian akhir.
Doa Saat Ini Kelas yang melacak dan menyediakan informasi pemanggilan saat ini yang berguna di mana pun di dalam pemanggilan.
Permintaan Saat Ini.Info Permintaan Beberapa kunci bernama khusus yang akan selalu kami isi untuk pemanggilan.
CurrentInvocation.IsolationGrade Menjelaskan tingkat isolasi

D

DebugHostLogOnFailureCollector Kolektor yang akan mengumpulkan dan mencatat log sisi host saat terjadi kegagalan kasus uji.
Sambungan Default Representasi koneksi default perangkat, dianggap sebagai koneksi adb standar perangkat.
DefaultConnection.ConnectionBuilder Builder digunakan untuk mendeskripsikan koneksi.
DefaultRemoteAndroidTestRunner Perpanjangan ddmlib RemoteAndroidTestRunner untuk menyetel beberapa default untuk kasus penggunaan Tradefed.
DefaultTestsZipInstaller Implementasi default dari penginstal pengujian zip.
Eksekusi Panggilan yang Didelegasikan InvocationExecution yang mendelegasikan eksekusi ke biner Tradefed lainnya.
DependenciesResolver Jenis penyedia baru yang memungkinkan untuk mendapatkan semua dependensi untuk pengujian.
DeviceAllocationResult Merupakan hasil upaya alokasi untuk perintah.
DeviceAllocationState Mewakili status alokasi perangkat dari perspektif IDeviceManager
DeviceAvailableChecker Pemeriksa untuk memastikan modul tidak meninggalkan perangkat dalam keadaan offline.
DeviceBaselineChecker Tetapkan pengaturan garis dasar perangkat sebelum setiap modul.
DeviceBaselineSetter Kelas abstrak digunakan untuk membuat pengaturan dasar perangkat.
DeviceBatteryLevelChecker IRemoteTest yang memeriksa daya baterai minimum, dan menunggu baterai mencapai ambang pengisian daya kedua jika daya minimum tidak ada.
DeviceBatteryResourceMetricCollector Kolektor ini mengumpulkan metrik baterai perangkat.
DeviceBuildDescriptor Kelas pembungkus untuk IBuildInfo , yang berisi metode bantuan untuk mengambil informasi pembangunan platform perangkat.
DeviceBuildInfo IBuildInfo yang merepresentasikan build perangkat Android lengkap dan (opsional) pengujiannya.
DeviceBuildInfoBootStrapper ITargetPreparer yang menggantikan kolom info build dengan atribut yang dibaca dari perangkat

Ini berguna untuk menguji perangkat dengan build yang dihasilkan dari sumber eksternal (mis

DeviceBuildInfoInjector ITargetPreparer yang menyisipkan metadata DeviceBuildDescriptor ke dalam IBuildInfo .
Pembersih Perangkat Melakukan reboot atau format sebagai tindakan pembersihan setelah pengujian, dan secara opsional mematikan layar
DeviceCleaner.CleanupAction
DeviceCleaner.PostCleanupAction
DeviceConcurrentUtil Berisi metode dan kelas utilitas untuk eksekusi perintah sisi perangkat secara bersamaan

Gunakan ERROR(/ExecutorService) untuk menjalankan perintah yang diimplementasikan sebagai ShellCommandCallable , dan gunakan ERROR(/#joinFuture(String,Future,long)) untuk sinkronisasi terhadap ERROR(/Future) sebagaimana dikembalikan oleh ERROR(/ExecutorService) untuk eksekusi perintah.

DeviceConcurrentUtil.ShellCommandCallable <V> ERROR(/Callable) yang membungkus detail eksekusi perintah shell pada ITestDevice .
DeviceConfigurationHolder Implementasi IDeviceConfiguration konkret yang menyimpan objek konfigurasi perangkat yang dimuat dalam atributnya.
DeviceDescriptor Kelas berisi informasi yang mendeskripsikan perangkat yang sedang diuji.
DeviceDisconnectedException Dilempar saat perangkat tidak lagi dapat dijangkau melalui jenis transportasinya, misalnya jika perangkat tidak lagi terlihat melalui USB, atau koneksi TCP/IP
DeviceErrorIdentifier Pengidentifikasi Kesalahan dari kesalahan Perangkat dan kesalahan yang dilaporkan perangkat.
DeviceFailedToBootError Dilemparkan jika perangkat gagal melakukan booting setelah di-flash dengan build.
DeviceFeatureModuleController Pengontrol modul untuk tidak menjalankan tes saat tidak mendukung fitur tertentu.
DeviceFileReporter Kelas utilitas yang memeriksa perangkat untuk mencari file dan mengirimkannya ke ITestInvocationListener#testLog(String, LogDataType, InputStreamSource) jika ditemukan.
DeviceFlashPreparer ITargetPreparer yang mem-flash gambar pada perangkat keras fisik Android.
DeviceFoldableState Representasi status perangkat foldable seperti yang ditampilkan oleh "cmd device_state print-states".
DeviceFolderBuildInfo IDeviceBuildInfo yang juga berisi artefak build lain yang terdapat dalam direktori di sistem file lokal.
DeviceImageZipFlashingTargetPreparer Persiapan target yang mem-flash perangkat dengan gambar perangkat yang disediakan melalui format tertentu.
DeviceInternetAccessibilityResourceMetricCollector Kolektor melakukan ping ke google.com untuk memeriksa apakah perangkat memiliki aksesibilitas internet atau tidak.
DeviceJUnit4ClassRunner Pelari uji JUnit4 yang juga mengakomodasi IDeviceTest .
DeviceJUnit4ClassRunner.LogAnnotation Anotasi palsu dimaksudkan untuk membawa log ke wartawan.
DeviceJUnit4ClassRunner.MetricAnnotation Anotasi palsu dimaksudkan untuk menyampaikan metrik kepada reporter.
DeviceJUnit4ClassRunner.TestLogData Implementasi ExternalResource dan TestRule .
DeviceJUnit4ClassRunner.TestMetrics Implementasi ExternalResource dan TestRule .
DeviceManagementGrpcServer Server GRPC memungkinkan untuk memesan perangkat dari Tradefed.
Pengaturan perangkat
DeviceManager.FastbootDevice Representasi perangkat dalam mode Fastboot.
DeviceMetricData Objek untuk menyimpan semua data yang dikumpulkan oleh pengumpul metrik.
DeviceMonitorMultiplexer Kelas proxy untuk menyebarkan permintaan ke beberapa IDeviceMonitor s.
DeviceNotAvailableException Dilempar saat perangkat tidak lagi tersedia untuk pengujian.
DeviceOwnerTargetPreparer ITargetPreparer yang menyiapkan komponen pemilik perangkat.
DeviceParameterizedRunner Pelari berparameter gaya JUnit4 untuk pengujian berparameter berbasis sisi host.
Properti Perangkat Definisi konstanta umum untuk nama properti sisi perangkat
DeviceRecoveryModeUtil
DeviceReleaseReporter Reporter rilis perangkat yang menangani komunikasi dengan induk memproses perangkat yang akan dirilis.
Fitur Reset Perangkat Implementasi sisi server dari pengaturan ulang perangkat.
DeviceResetHandler Utilitas menangani pengaturan ulang perangkat secara umum.
DeviceRuntimeException Dilempar saat tindakan perangkat tidak menghasilkan hasil yang diharapkan.
DeviceSelectionOptions Penampung untuk kriteria pemilihan perangkat.
DeviceSelectionOptions.DeviceRequestedType Berbagai jenis perangkat placeholder yang mungkin didukung.
Pemeriksa Pengaturan Perangkat Periksa apakah pengaturan perangkat telah berubah selama menjalankan modul.
Penyiapan Perangkat ITargetPreparer yang mengonfigurasi perangkat untuk pengujian berdasarkan Option s yang disediakan.
DeviceStateMonitor Kelas pembantu untuk memantau status IDevice .
DeviceStorageAgeResourceMetricCollector Mengurai usia penyimpanan dari logcat.
DeviceStorageFiller Siapkan target untuk mengisi penyimpanan sehingga sejumlah ruang kosong tersedia.
DeviceStorageStatusChecker Periksa apakah perangkat memiliki cukup ruang disk untuk partisi yang diberikan.
DeviceStringPusher Siapkan target untuk menulis string ke file.
DeviceSuite Memperluas JUnit4 container Suite untuk memberikan ITestDevice pada pengujian yang memerlukannya.
DeviceSyncHelper Pembantu yang membantu menyinkronkan gambar perangkat baru ke perangkat.
DeviceTestCase Kasus uji Helper JUnit yang menyediakan layanan IRemoteTest dan IDeviceTest .
DeviceTestResult Spesialisasi TestResult yang akan dibatalkan saat terjadi DeviceNotAvailableException
DeviceTestResult.RuntimeDeviceNotAvailableException
DeviceTestRunOptions Kelas pembuat untuk opsi terkait menjalankan pengujian perangkat melalui BaseHostJUnit4Test.
DeviceTestSuite Helper JUnit test suite yang menyediakan layanan IRemoteTest dan IDeviceTest .
DeviceTraceCollector Kolektor yang akan memulai pelacakan perfetto saat uji coba dimulai dan mencatat file pelacakan di akhir.
DeviceUnavailableMonitor Pemroses ini mencoba menangkap DNAE tingkat kasus uji saja.
DeviceUnresponsiveException Spesialisasi DeviceNotAvailableException yang menunjukkan bahwa perangkat terlihat oleh adb, tetapi tidak responsif (misalnya, waktu perintah habis, tidak bisa boot, dll.)
DeviceUpdateTargetPreparer ITargetPreparer abstrak yang menangani langkah-langkah umum seputar memperbarui perangkat dengan file image perangkat dari sumber eksternal (sebagai lawan dari layanan build).
DeviceWifiResourceMetricCollector Kolektor mengumpulkan kekuatan sinyal wifi yang terhubung saat ini dan metrik kecepatan tautan.
DeviceWiper ITargetPreparer yang menghapus data pengguna
Grafik Terarah <V> Implementasi grafik tak berbobot terarah.
NonaktifkanSELinuxTargetPreparer Penyedia target yang menonaktifkan SELinux jika diaktifkan.
DryRunKeyStore Keystore untuk dry-run di mana nilai keystore apa pun selalu diganti dan ditemukan dengan benar.
DryRunner Uji coba kering secara transparan alih-alih benar-benar mengeksekusinya.
Tes FileStub Dinamis Ini adalah tes tradefed untuk menguji tradefed dapat menyelesaikan file dinamis dengan benar.
DynamicRemoteFileResolver Kelas yang membantu menyelesaikan jalur ke file jarak jauh.
DynamicRemoteFileResolver.FileResolverLoader Memuat implementasi IRemoteFileResolver .
DynamicShardHelper Strategi sharding untuk memungkinkan pekerjaan jarak jauh mengantri di antara beberapa instans TF
DynamicSystemPreparer ITargetPreparer yang menyiapkan image sistem di atas build perangkat dengan Dynamic System Update.

e

Fitur Rilis Perangkat Awal Implementasi server fitur untuk rilis perangkat awal.
Surel Kelas pembantu untuk mengirim email.
EmailHostHealthAgent Implementasi IHostHealthAgent untuk mengirim email dari laporan monitor Host
EmmaXmlConstants Konstanta yang digunakan saat mem-parsing laporan emma xml.
EmulatorMemoryCpuCapturer
EndCentralDirectoryInfo EndCentralDirectoryInfo adalah kelas yang berisi informasi keseluruhan dari file zip.
EnforcedSeLinuxChecker Pemeriksa status yang memastikan status Selinux.
HapusUserDataPreparer ITargetPreparer yang menghapus data pengguna di perangkat.
Pengidentifikasi Kesalahan Antarmuka ini menjelaskan kesalahan spesifik dan propertinya.
ErrorStorageUtil Kelas pembantu untuk memanipulasi kesalahan agar selaras dengan penyimpanan umum.
EventsLoggerListener Pendengar yang mencatat semua peristiwa yang diterimanya ke dalam file
PengecualianThrowingRunnerWrapper
ExecutableBaseTest Kelas dasar untuk gaya pengujian yang dapat dieksekusi.
ExecutableHostTest Test runner untuk eksekusi yang dapat dijalankan di host.
TesTarget yang Dapat Dieksekusi Test runner untuk menjalankan eksekusi pada target.
File Eksekusi Ketergantungan file yang dihasilkan selama pelaksanaan pengujian atau pemanggilan yang perlu dilakukan untuk pengujian.
ExecutionFiles.FilesKey Pencacahan kunci standar yang diketahui untuk peta.
Properti Eksekusi Properti yang dihasilkan selama pelaksanaan tes atau pemanggilan.
BuildProvider yang ada IBuildProvider yang mengembalikan IBuildInfo yang sudah dibuat.
ExtendedFile Perpanjangan file standar untuk membawa metadata terkait build.

F

Deskripsi Kegagalan Kelas yang menjelaskan informasi kegagalan di Federasi Dagang.
Uji Palsu Tes palsu yang tujuannya untuk memudahkan menghasilkan hasil tes yang berulang.
FakeTestsZipFolder Perlengkapan pengujian yang membuat folder tes unzip palsu berdasarkan daftar konten.
FakeTestsZipFolder.ItemType
FastbootCommandPreparer Persiapan target yang memicu fastboot dan mengirimkan perintah fastboot.
FastbootDeviceFlasher Kelas yang mengandalkan fastboot untuk mem-flash gambar pada perangkat keras fisik Android.
FastbootHelper Kelas pembantu untuk operasi fastboot.
FastbootUpdateBootstrapPreparer ITargetPreparer yang menampilkan file tertentu (bootloader, radio, zip gambar perangkat) ke dalam IDeviceBuildInfo agar perangkat di-flash dengan FastbootDeviceFlasher , lalu menyuntikkan atribut perangkat pasca-booting ke dalam info build untuk tujuan pelaporan hasil.
FatalHostError Pengecualian yang menunjukkan kesalahan fatal yang tidak dapat dipulihkan telah terjadi pada mesin host yang menjalankan TradeFederation, dan instance TradeFederation harus dimatikan.
FeatureFlagTargetPreparer Memperbarui DeviceConfig (flag fitur disetel oleh layanan jarak jauh).
File Unduh Cache Kelas pembantu yang memelihara cache LRU sistem file lokal dari file yang diunduh.
FileDownloadCacheFactory Pabrik untuk membuat FileDownloadCache
FileUnduhCacheWrapper Kelas pembungkus yang menyediakan fasilitas FileDownloadCache saat mengimplementasikan antarmuka IFileDownloader .
FileIdleMonitor Memantau file dan menjalankan panggilan balik jika tidak digunakan (mis
FileInputStreamSource InputStreamSource yang mengambil file input.
FileLogger ILeveledLogOutput yang mengarahkan pesan log ke file dan ke stdout.
FileProtoResultReporter Reporter proto yang membuang TestRecord ke dalam file.
FilePullerDeviceMetricCollector BaseDeviceMetricCollector yang mendengarkan kunci metrik yang berasal dari perangkat dan menariknya sebagai file dari perangkat.
FilePullerLogCollector Pencatat file yang dilaporkan oleh sisi perangkat.
FileSystemLogSaver Simpan log ke sistem file.
FileUtil Kelas pembantu untuk operasi terkait file
FileUtil.HarnessIOException Memanfaatkan pengecualian yang membantu membawa masalah file.
FileUtil.LowDiskSpaceException Dilempar jika ruang disk yang dapat digunakan di bawah ambang batas minimum.
FilteredResultForwarder Varian dari ResultForwarder yang hanya mengizinkan laporan TestDescription yang diizinkan.
FixedByteArrayOutputStream ERROR(/OutputStream) yang hanya menyimpan jumlah data maksimum.
Metode Berkedip Enum untuk menjelaskan metode yang digunakan untuk mem-flash perangkat yang diuji
FlashingResourcesParser Kelas yang mem-parsing versi file gambar tambahan yang diperlukan untuk mem-flash perangkat.
FlashingResourcesParser.AndroidInfo Typedef untuk Map&lt;String, MultiMap&lt;String, String&gt;&gt; .
FlashingResourcesParser.Constraint Antarmuka pemfilteran, dimaksudkan untuk memungkinkan FlashingResourcesParser mengabaikan beberapa sumber daya yang mungkin digunakannya
FlashingResourceUtil Utilitas ini membantu mengatur versi artefak yang sesuai sehingga dapat di-flash melalui DeviceFlashPreparer .
FoldableExpandingHandler IModuleParameterHandler berkembang menjadi lebih banyak untuk setiap konfigurasi lipat non-primer.
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 Ekstensi dari ConfigurationFactory.ConfigLoader yang memuat konfigurasi dari GCS, melacak konfigurasi yang disertakan dari satu konfigurasi root, dan melontarkan pengecualian pada penyertaan melingkar.
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 Antarmuka yang menentukan kotak pasir yang dapat digunakan untuk menjalankan pemanggilan.
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 Kelas abstrak digunakan untuk menjalankan 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 Pendengar dilampirkan ke setiap IRemoteTest dari setiap modul untuk mengumpulkan daftar hasil.
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 Kelas pembantu yang dapat menyalin nilai bidang Option dengan nama yang sama dari satu objek ke objek lainnya.
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 Utilities to unzip individual files inside a remote zip file.
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 Kumpulan metode pembantu untuk menjalankan operasi.
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 Implementasi BaseTestSuite untuk menjalankan pengujian yang ditentukan oleh opsi include-filter, atau file TEST_MAPPING dari build, sebagai 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 Implementasi ITestSuite yang akan memuat pengujian dari folder TF jars res/config/suite/.
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.
TradefedSandbox Penampung kotak pasir yang dapat menjalankan pemanggilan Federasi Dagang.
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