com.android.tradefed.util
介面
ClassPathScanner.IClassPathFilter |
用於 classpath 項目路徑的篩選器
|
ConditionPriorityBlockingQueue.IMatcher<T> | 用於判斷元素是否符合某種條件的介面。 |
ICompressionStrategy | 代表可在執行階段選取的壓縮演算法的介面。 |
IDisableable | 可用來說明可停用的 Tradefed 物件的介面。 |
IEmail | 傳送電子郵件的介面。 |
IRestApiHelper | 用於執行 REST API 呼叫的輔助介面。 |
IRunUtil | 執行計時作業和系統指令的介面。 |
IRunUtil.IRunnableResult | 用於非同步執行傳回布林狀態的作業的介面。 |
類別
AaptParser | 這個類別會剖析「aapt 轉儲標記」的輸出內容,從 APK 中擷取資訊。 |
AbiFormatter | ABI 的公用程式類別。 |
AbiUtils | 用於處理裝置 ABI 的公用程式類別 |
AdbRootElevator |
AutoCloseable 會在需要時啟用 ADB 根目錄,並在完成時還原根目錄狀態。
|
AdbUtils | 用於 ADB 作業的公用程式類別。 |
AppVersionFetcher | 用於從裝置取得應用程式版本字串的工具類別。 |
ArrayUtil | 陣列的工具程式方法 |
BluetoothUtils |
用於在裝置上呼叫 BluetoothInstrumentation 的工具函式
裝置端的藍牙測試程式碼可在 AOSP 中找到:
|
Bugreport | 可保留錯誤報告檔案參照的物件,可相容於平面錯誤報告和壓縮的錯誤報告 (bugreportz)。 |
BuildInfoUtil |
用於操作 IBuildInfo 的實用類別 |
BuildTestsZipUtils | 輔助類別,用於與 Android 建構系統產生的測試 ZIP 相關的作業 |
BulkEmailer | 電子郵件傳送器公用程式,可設定以下項目:傳送間隔、初始傳送量、收件者和訊息總數。 |
BundletoolUtil | 使用 Bundletool 指令列在裝置上安裝 .apk 的工具類別。 |
ByteArrayList | 用來代表輕量位元組陣列的類別。 |
ByteArrayUtil | 用於處理位元組陣列的工具,例如將位元組轉換為整數。 |
CacheClientFactory |
工廠,用於建立 ICacheClient 的單例模式例項。
|
CircularAtraceUtil | 這個 atrace 公用程式主要用於在 Monkey 測試期間找出 ANR 的根本原因。 |
CircularByteArray | 用於儲存固定大小陣列的資料結構,該陣列會以循環緩衝區運作,並追蹤陣列中所有值的總和。 |
ClangProfileIndexer | 用於為 Clang 程式碼涵蓋率評估結果建立索引的工具類別。 |
ClassPathScanner | 尋找 classpath 上的項目。 |
ClassPathScanner.ClassNameFilter |
篩選及轉換 Java 類別名稱的 IClassPathFilter 。
|
ClassPathScanner.ExternalClassNameFilter |
拒絕內部類別的 ClassNameFilter |
CommandResult | 包含指令的結果。 |
ConditionPriorityBlockingQueue<T> |
具有 ERROR(/PriorityBlockingQueue) 類似運算的執行緒安全類別,可擷取符合特定條件的物件。
|
ConditionPriorityBlockingQueue.AlwaysMatch<T> |
與任何物件相符的 ConditionPriorityBlockingQueue.IMatcher 。
|
DeviceActionUtil | 用於執行裝置動作的工具類別。 |
DeviceActionUtil.DeviceActionConfigError | 設定錯誤的例外狀況。 |
DeviceConcurrentUtil |
包含用於裝置端指令並行執行的實用方法和類別
使用 |
DeviceConcurrentUtil.ShellCommandCallable<V> |
在 ITestDevice 上執行殼層指令的詳細資料包裝 ERROR(/Callable) 。
|
DeviceRecoveryModeUtil | |
DirectedGraph<V> | 有向無權重圖表實作。 |
電子郵件內文 | 用於傳送電子郵件的輔助類別。 |
EmmaXmlConstants | 剖析 emma xml 報表時使用的常數。 |
EnvironmentVariableUtil | 用於準備環境變數的輔助方法集合。 |
ExtensionAtomsRegistry | ExtensionAtomsRegistry,用於本機使用 statsd。 |
FakeTestsZipFolder | 測試固定值,可根據內容清單建立偽裝的解壓縮測試資料夾。 |
FileIdleMonitor | 監控檔案,並在檔案處於閒置狀態時執行回呼 (也就是處於閒置狀態)。 |
FileUtil | 檔案相關作業的輔助類別 |
FileUtil.LowDiskSpaceException | 如果可用磁碟空間低於最低門檻,就會擲回此例外狀況。 |
FixedByteArrayOutputStream |
記憶體內 ERROR(/OutputStream) ,只會保留最大資料量。
|
FlashingResourceUtil |
這項公用程式可協助設定適當的構件版本,以便透過 DeviceFlashPreparer 進行閃燈作業。
|
FuseUtil | FUSE 作業的輔助類別。 |
GceRemoteCmdFormatter | 用於格式化指令以連線至遠端 Google Compute Engine 裝置的工具類別。 |
GCSBucketUtil | 檔案管理工具,可從 Google Cloud Storage (GCS) 下載及上傳檔案。 |
GCSBucketUtil.GCSFileMetadata | GCS 中檔案資訊的簡單包裝函式。 |
GCSCommon | 已淘汰!請改用 com.android.tradefed.util.gcs.GCSCommon。 |
GCSFileDownloader | 檔案下載器,可從 Google Cloud Storage (GCS) 下載檔案。 |
GCSFileUploader | 檔案上傳工具,可將檔案資料上傳至 Google Cloud Storage (GCS)。 |
GCSHelper | |
GenericLogcatEventParser<LogcatEventType> | 剖析事件的 Logcat 輸入內容。 |
GenericLogcatEventParser.LogcatEvent | 用於儲存 Logcat 事件的結構體,其中包含事件類型和觸發 Logcat 訊息 |
GoogleApiClientUtil | 用於建立 Google API 用戶端的工具。 |
HprofAllocSiteParser | 輔助類別,可剖析 hprof 報表「Allocation Sites」部分的資訊。 |
IEmail.Message | 電子郵件訊息資料的容器。 |
JavaCodeCoverageFlusher | 此公用程式類別會重設並強制清除裝置上執行程序的 Java 程式碼涵蓋率評估資料。 |
JUnit4TestFilter |
輔助類別,可透過擴充 Filter 為 JUnit4 執行器提供篩選功能。
|
JUnitXmlParser | 這個剖析器會從儲存在 ant 的 XMLJUnitResultFormatter 中的 JUnit 結果中擷取測試結果資料,並轉送至 ITestInvocationListener。 |
KernelModuleUtils | |
KeyguardControllerState | 用於 Keyguard 狀態的容器。 |
ListInstrumentationParser |
用於剖析「pm list instrumentation」查詢輸出的 IShellOutputReceiver
|
ListInstrumentationParser.InstrumentationTarget | |
LocalRunInstructionBuilder | 用於編譯本機測試指令的工具。 |
LogcatEventParser | |
MetricUtility | 包含用於儲存測試指標、匯總類似測試中的指標,以及將指標寫入檔案的常用公用程式方法。 |
ModuleTestTypeUtil | 包含用於檢查模組的常用公用方法。 |
MultiMap<K, V> |
支援每個鍵多個值的 ERROR(/Map) 。
|
NativeCodeCoverageFlusher | 此公用程式類別會清除原生涵蓋率評估,並強制清除裝置上程序的原生涵蓋率資料。 |
Pair<A, B> | 定義我們自己的 Pair 類別,其中包含兩個物件。 |
PerfettoTraceRecorder |
用於在 ITestDevice 上記錄 Perfetto 追蹤記錄的工具類別。
|
PrettyPrintDelimiter | 輔助公用程式,可用於列印醒目的分隔符訊息。 |
ProcessInfo | 用於儲存程序相關資訊(USER、PID、NAME、START TIME IN SECOND SINCE EPOCH)。 |
ProcessUtil | |
PropertyChanger | 用於變更 (或新增) Android 屬性檔案項目的工具類別 |
ProtoUtil | 用於處理 protobuf 訊息類型不受限制的實用方法。 |
PsParser | 用於從「ps」指令輸出內容中剖析(USER、PID 和 NAME) 的公用程式 |
PythonVirtualenvHelper | 用於啟用 Python 3 虛擬環境的輔助類別。 |
QuotationAwareTokenizer | |
RegexTrie<V> |
RegexTrie 是 trie,其中每個鍵的ERROR(/Pattern) 。
|
RemoteZip | 用於解壓縮遠端 ZIP 檔案中的個別檔案。 |
RequestUtil | 可讓您透過錯誤處理機制重試網路要求的工具。 |
ResourceUtil | 用於讀取設定資源的工具。 |
RestApiHelper | 用於執行 REST API 呼叫的輔助類別。 |
RunInterruptedException | 當外部要求中斷執行作業時,系統會擲回此例外狀況。 |
RunUtil | 執行作業的輔助方法集合。 |
SearchArtifactUtil | 可用於搜尋測試構件的公用程式類別。 |
SerializationUtil |
用於序列化/取消序列化實作 ERROR(/Serializable) 的物件。
|
ShellOutputReceiverStream | OutputStream 的公用程式子類別,可寫入 IShellOutputReceiver。 |
SimplePerfResult | 用來保存所有 Simpleperf 測試結果的物件 |
SimplePerfStatResultParser | 用於剖析 simpleperf 結果的工具類別。 |
SimplePerfUtil | 用於調度簡單指令及收集結果的工具類別 |
SimpleStats | 這個小型公用程式類別會在指定數值資料集時,計算一些統計指標。 |
SizeLimitedOutputStream |
一個可限制可寫入資料量上限的執行緒安全檔案 ERROR(/OutputStream) 。
|
Sl4aBluetoothUtil | 公用程式類別會使用 SL4A 在一部或兩部裝置上提供藍牙作業 |
SparseImageUtil | 用於將稀疏圖片轉為非稀疏圖片的工具。 |
SparseImageUtil.SparseInputStream | SparseInputStream 會從上游讀取並偵測資料格式。 |
StreamUtil | 用於管理輸入串流的工具類別。 |
StringEscapeUtils | 實用程式類別,可為特定格式逸出字串。 |
StringUtil | 用於常見字串操作的字串轉義工具類別。 |
SubprocessEventHelper | 用於序列化/反序列化要傳遞至記錄的事件的輔助程式。 |
SubprocessEventHelper.BaseTestEventInfo | 用於 TestIgnored 資訊的基礎輔助程式。 |
SubprocessEventHelper.FailedTestEventInfo | 用於測試失敗資訊的輔助程式。 |
SubprocessEventHelper.InvocationEndedEventInfo | 叫用結束資訊的輔助程式。 |
SubprocessEventHelper.InvocationFailedEventInfo | 用於處理 InvocationFailed 資訊的輔助程式。 |
SubprocessEventHelper.InvocationStartedEventInfo | 叫用開始資訊的輔助程式。 |
SubprocessEventHelper.LogAssociationEventInfo | 用於 logAssociation 資訊的輔助程式。 |
SubprocessEventHelper.SkippedTestEventInfo | |
SubprocessEventHelper.TestEndedEventInfo | 用於 testEnded 資訊的輔助函式。 |
SubprocessEventHelper.TestLogEventInfo | 用於處理 testLog 資訊的輔助程式。 |
SubprocessEventHelper.TestModuleStartedEventInfo | 測試模組啟動資訊的輔助程式。 |
SubprocessEventHelper.TestRunEndedEventInfo | 用於 testRunEnded 資訊的輔助函式。 |
SubprocessEventHelper.TestRunFailedEventInfo | testRunFailed 資訊的輔助程式 |
SubprocessEventHelper.TestRunStartedEventInfo | testRunStarted 資訊的輔助程式 |
SubprocessEventHelper.TestStartedEventInfo | 測試開始資訊的輔助程式 |
SubprocessExceptionParser | 輔助程式,可處理標準 Tradefed 指令執行工具的例外狀況輸出內容。 |
SubprocessTestResultsParser |
擴充 ERROR(/FileOutputStream) ,在寫入檔案前剖析輸出內容,以便在啟動器端產生測試事件。
|
SubprocessTestResultsParser.StatusKeys | 相關的測試狀態鍵。 |
SystemUtil | 用於發出系統呼叫的工具類別。 |
TableBuilder | 輔助類別,用於在表格中顯示字串元素的矩陣。 |
TableFormatter | 輔助類別,用於顯示字串元素的矩陣,讓每個元素欄排成一列 |
TargetFileUtils | |
TarUtil | 用於操作 tar 檔案的工具。 |
TestFilterHelper | 用於篩選測試的輔助類別 |
TestRecordInterpreter |
可將 TestRecord 原型轉換為 Tradefed 中更容易操作的格式。
|
TestRunnerUtil | 用於協助各種測試執行程式的公用程式類別。 |
TfInternalOptionsFetcher | 公用程式類別,可讓類別從 res 檔案以靜態方式載入變數值。 |
TimeUtil | 包含與時間相關的公用程式方法。 |
TimeVal |
這是包裝 Long 的哨兵類型。
|
UniqueMultiMap<K, V> |
MultiMap ,可確保每個鍵的值皆不重複。
|
VersionParser | 擷取執行中的 tradefed 構件版本。 |
ZipCompressionStrategy |
用於建立 ZIP 封存檔的 ICompressionStrategy 。
|
ZipUtil | 用於壓縮相關作業的輔助類別 |
ZipUtil2 | 用於解壓縮的輔助程式類別,可考量 POSIX 檔案權限 |
列舉
AaptParser.AaptVersion | 用於剖析 APK 檔案的 AAPT 版本選項列舉。 |
AppVersionFetcher.AppVersionInfo | 應用程式版本資訊類型。 |
BinaryState | 用於記錄 ON/OFF 狀態的列舉,並提供 IGNORE 無操作狀態。 |
CommandStatus | 代表計時作業的狀態。 |
DeviceActionUtil.Command | 裝置動作的指令。 |
FakeTestsZipFolder.ItemType | |
GceRemoteCmdFormatter.ScpMode | 視引數的結構而定,SCP 可用於推送或拉取檔案。 |
IRunUtil.EnvPriority | 定義是否設定或取消設定特定環境的列舉。 |
LogcatEventType |
LogcatEventParser 的事件類型。
|
SimplePerfUtil.SimplePerfType | Simpleperf 指令選項的列舉值 |
Sl4aBluetoothUtil.BluetoothAccessLevel |
以 BluetoothDevice.java 為基礎的藍牙裝置存取層級的列舉值 |
Sl4aBluetoothUtil.BluetoothConnectionState |
藍牙連線狀態的列舉,以 BluetoothProfile.java 為依據
|
Sl4aBluetoothUtil.BluetoothPriorityLevel |
以 BluetoothProfile.java 為基礎的藍牙設定檔優先順序等級的列舉項目 |
Sl4aBluetoothUtil.BluetoothProfile |
以 BluetoothProfile.java 為基礎的藍牙設定檔的列舉值 |
SystemUtil.EnvVariable | |
TargetFileUtils.FilePermission |
介面
類別
- AaptParser
- AbiFormatter
- AbiUtils
- AdbRootElevator
- AdbUtils
- AppVersionFetcher
- ArrayUtil
- BluetoothUtils
- Bugreport
- BuildInfoUtil
- BuildTestsZipUtils
- BulkEmailer
- BundletoolUtil
- ByteArrayList
- ByteArrayUtil
- CacheClientFactory
- CircularAtraceUtil
- CircularByteArray
- ClangProfileIndexer
- ClassPathScanner
- ClassPathScanner.ClassNameFilter
- ClassPathScanner.ExternalClassNameFilter
- CommandResult
- ConditionPriorityBlockingQueue
- ConditionPriorityBlockingQueue.AlwaysMatch
- DeviceActionUtil
- DeviceActionUtil.DeviceActionConfigError
- DeviceConcurrentUtil
- DeviceConcurrentUtil.ShellCommandCallable
- DeviceRecoveryModeUtil
- DirectedGraph
- 電子郵件內文
- EmmaXmlConstants
- EnvironmentVariableUtil
- ExtensionAtomsRegistry
- FakeTestsZipFolder
- FileIdleMonitor
- FileUtil
- FileUtil.LowDiskSpaceException
- FixedByteArrayOutputStream
- FlashingResourceUtil
- FuseUtil
- GceRemoteCmdFormatter
- GCSBucketUtil
- GCSBucketUtil.GCSFileMetadata
- GCSCommon
- GCSFileDownloader
- GCSFileUploader
- GCSHelper
- GenericLogcatEventParser
- GenericLogcatEventParser.LogcatEvent
- GoogleApiClientUtil
- HprofAllocSiteParser
- IEmail.Message
- JavaCodeCoverageFlusher
- JUnit4TestFilter
- JUnitXmlParser
- KernelModuleUtils
- KeyguardControllerState
- ListInstrumentationParser
- ListInstrumentationParser.InstrumentationTarget
- LocalRunInstructionBuilder
- LogcatEventParser
- MetricUtility
- ModuleTestTypeUtil
- MultiMap
- NativeCodeCoverageFlusher
- 配對
- PerfettoTraceRecorder
- PrettyPrintDelimiter
- ProcessInfo
- ProcessUtil
- PropertyChanger
- ProtoUtil
- PsParser
- PythonVirtualenvHelper
- QuotationAwareTokenizer
- RegexTrie
- RemoteZip
- RequestUtil
- ResourceUtil
- RestApiHelper
- RunInterruptedException
- RunUtil
- SearchArtifactUtil
- SerializationUtil
- ShellOutputReceiverStream
- SimplePerfResult
- SimplePerfStatResultParser
- SimplePerfUtil
- SimpleStats
- SizeLimitedOutputStream
- Sl4aBluetoothUtil
- SparseImageUtil
- SparseImageUtil.SparseInputStream
- StreamUtil
- StringEscapeUtils
- StringUtil
- SubprocessEventHelper
- SubprocessEventHelper.BaseTestEventInfo
- SubprocessEventHelper.FailedTestEventInfo
- SubprocessEventHelper.InvocationEndedEventInfo
- SubprocessEventHelper.InvocationFailedEventInfo
- SubprocessEventHelper.InvocationStartedEventInfo
- SubprocessEventHelper.LogAssociationEventInfo
- SubprocessEventHelper.SkippedTestEventInfo
- SubprocessEventHelper.TestEndedEventInfo
- SubprocessEventHelper.TestLogEventInfo
- SubprocessEventHelper.TestModuleStartedEventInfo
- SubprocessEventHelper.TestRunEndedEventInfo
- SubprocessEventHelper.TestRunFailedEventInfo
- SubprocessEventHelper.TestRunStartedEventInfo
- SubprocessEventHelper.TestStartedEventInfo
- SubprocessExceptionParser
- SubprocessTestResultsParser
- SubprocessTestResultsParser.StatusKeys
- SystemUtil
- TableBuilder
- TableFormatter
- TargetFileUtils
- TarUtil
- TestFilterHelper
- TestRecordInterpreter
- TestRunnerUtil
- TfInternalOptionsFetcher
- TimeUtil
- TimeVal
- UniqueMultiMap
- VersionParser
- ZipCompressionStrategy
- ZipUtil
- ZipUtil2
列舉
- AaptParser.AaptVersion
- AppVersionFetcher.AppVersionInfo
- BinaryState
- CommandStatus
- DeviceActionUtil.Command
- FakeTestsZipFolder.ItemType
- GceRemoteCmdFormatter.ScpMode
- IRunUtil.EnvPriority
- LogcatEventType
- SimplePerfUtil.SimplePerfType
- Sl4aBluetoothUtil.BluetoothAccessLevel
- Sl4aBluetoothUtil.BluetoothConnectionState
- Sl4aBluetoothUtil.BluetoothPriorityLevel
- Sl4aBluetoothUtil.BluetoothProfile
- SystemUtil.EnvVariable
- TargetFileUtils.FilePermission