com.android.tradefed.util
介面
ClassPathScanner.IClassPathFilter |
用於 classpath 項目路徑的篩選器
在 |
ConditionPriorityBlockingQueue.IMatcher<T> | 用於判斷元素是否符合某種條件的介面。 |
ICompressionStrategy | 代表可在執行階段選取的壓縮演算法的介面。 |
IDisableable | 介面:說明可停用的 Tradefed 物件。 |
IRestApiHelper | 用於執行 REST API 呼叫的輔助介面。 |
類別
AaptParser | 這個類別會剖析「aapt 轉儲標記」的輸出內容,從 APK 中擷取資訊。 |
AbiFormatter | ABI 的公用程式類別。 |
AdbRootElevator |
AutoCloseable 會在需要時啟用 ADB 根目錄,並在完成時還原根目錄狀態。
|
AppVersionFetcher | 用於從裝置取得應用程式版本字串的工具類別。 |
BluetoothUtils |
用於在裝置上呼叫 BluetoothInstrumentation 的工具函式
裝置端的藍牙測試程式碼可在 AOSP 中找到:
|
BuildInfoUtil |
實用類別,可協助操作 IBuildInfo |
BuildTestsZipUtils | 輔助類別,用於與 Android 建構系統產生的測試 ZIP 相關的作業 |
BulkEmailer | 電子郵件傳送器公用程式,可設定以下項目:傳送間隔、初始傳送量、收件者和訊息總數。 |
BundletoolUtil | 使用 Bundletool 指令列在裝置上安裝 .apk 的工具類別。 |
CircularAtraceUtil | 這個 atrace 公用程式主要用於在 Monkey 測試期間找出 ANR 的根本原因。 |
CircularByteArray | 用於儲存固定大小陣列的資料結構,該陣列會以循環緩衝區運作,並追蹤陣列中所有值的總和。 |
ClassPathScanner | 尋找 classpath 上的項目。 |
ClassPathScanner.ClassNameFilter |
篩選及轉換 Java 類別名稱的 IClassPathFilter 。
|
ClassPathScanner.ExternalClassNameFilter |
拒絕內部類別的 ClassNameFilter
|
ConditionPriorityBlockingQueue<T> |
具有 ERROR(/PriorityBlockingQueue) 類似運算的執行緒安全類別,可擷取符合特定條件的物件。
|
ConditionPriorityBlockingQueue.AlwaysMatch<T> |
與任何物件相符的 ConditionPriorityBlockingQueue.IMatcher 。
|
DeviceConcurrentUtil |
包含用於裝置端指令並行執行的實用方法和類別
使用 |
DeviceConcurrentUtil.ShellCommandCallable<V> |
在 ITestDevice 上執行殼層指令的詳細資料包裝 ERROR(/Callable) 。
|
DeviceRecoveryModeUtil | |
DirectedGraph<V> | 有向無權重圖表實作項目。 |
EmmaXmlConstants | 剖析 emma xml 報表時使用的常數。 |
FakeTestsZipFolder | 測試例項,可根據內容清單建立偽裝的解壓縮測試資料夾。 |
FileIdleMonitor | 監控檔案,並在檔案處於閒置狀態時執行回呼 (也就是處於閒置狀態)。 |
FixedByteArrayOutputStream |
記憶體內 ERROR(/OutputStream) ,只保留最大資料量。
|
FlashingResourceUtil |
這項公用程式可協助設定適當的構件版本,以便透過 DeviceFlashPreparer 進行閃燈作業。
|
GCSBucketUtil | 檔案管理工具,可從 Google Cloud Storage (GCS) 下載及上傳檔案。 |
GCSBucketUtil.GCSFileMetadata | GCS 中檔案資訊的簡單包裝函式。 |
GCSCommon | 下載和上傳等 Gcs 作業的基礎類別。 |
GCSFileDownloader | 檔案下載器,可從 Google Cloud Storage (GCS) 下載檔案。 |
GCSFileUploader | 檔案上傳工具,可將檔案資料上傳至 Google Cloud Storage (GCS)。 |
GoogleApiClientUtil | 用於建立 Google API 用戶端的工具。 |
HprofAllocSiteParser | 輔助類別,可剖析 hprof 報告「Allocation Sites」部分的資訊。 |
JavaCodeCoverageFlusher | 此公用程式類別會重設並強制清除裝置上執行程序的 Java 程式碼涵蓋率評估資料。 |
JUnit4TestFilter |
輔助類別,可透過擴充 Filter 為 JUnit4 執行器提供篩選功能。
|
JUnitXmlParser | 這個剖析器會從儲存在 ant 的 XMLJUnitResultFormatter 中的 JUnit 結果中擷取測試結果資料,並轉送至 ITestInvocationListener。 |
ListInstrumentationParser |
用於剖析「pm list instrumentation」查詢的輸出結果的 IShellOutputReceiver
|
ListInstrumentationParser.InstrumentationTarget | |
LocalRunInstructionBuilder | 用於編譯本機測試指令的工具。 |
LogcatEventParser | |
MetricUtility | 包含用於儲存測試指標、匯總類似測試中的指標,以及將指標寫入檔案的常用公用程式方法。 |
NativeCodeCoverageFlusher | 此公用程式類別會清除原生涵蓋率評估,並強制清除裝置上程序的原生涵蓋率資料。 |
Pair<A, B> | 定義我們自己的 Pair 類別,其中包含兩個物件。 |
PrettyPrintDelimiter | 輔助公用程式,可用於列印醒目的分隔符訊息。 |
PropertyChanger | 用於在 Android 屬性檔案中變更 (或新增) 項目的工具類別 |
ProtoUtil | 用於處理 protobuf 訊息類型不受限制的實用方法。 |
PsParser | 用於從「ps」指令輸出內容中剖析(USER、PID 和 NAME) 的公用程式 |
QuotationAwareTokenizer | |
RegexTrie<V> |
RegexTrie 是一種 trie,其中每個鍵的ERROR(/Pattern) 。
|
RemoteZip | 用於解壓縮遠端 ZIP 檔案中的個別檔案。 |
RestApiHelper | 用於執行 REST API 呼叫的輔助類別。 |
SerializationUtil |
用於序列化/取消序列化實作 ERROR(/Serializable) 的物件。
|
ShellOutputReceiverStream | OutputStream 的實用工具子類別,可寫入 IShellOutputReceiver。 |
SimplePerfResult | 用來保存所有 Simpleperf 測試結果的物件 |
SimplePerfStatResultParser | 用於剖析 simpleperf 結果的工具類別。 |
SimplePerfUtil | 用於調度簡單指令及收集結果的工具類別 |
SimpleStats | 這個小型公用程式類別會在指定數值資料集時,計算一些統計指標。 |
SizeLimitedOutputStream |
一個可限制可寫入資料量上限的執行緒安全檔案 ERROR(/OutputStream) 。
|
Sl4aBluetoothUtil | 公用程式類別會使用 SL4A 在一部或兩部裝置上提供藍牙作業 |
StringEscapeUtils | 實用程式類別,可為特定格式逸出字串。 |
StringUtil | 用於常見字串操作的字串轉義工具類別。 |
SubprocessEventHelper | 用於將要傳遞至記錄的事件序列化/反序列化。 |
SubprocessEventHelper.BaseTestEventInfo | 用於 TestIgnored 資訊的基礎輔助程式。 |
SubprocessEventHelper.FailedTestEventInfo | 用於測試失敗資訊的輔助函式。 |
SubprocessEventHelper.InvocationEndedEventInfo | 叫用結束資訊的輔助程式。 |
SubprocessEventHelper.InvocationFailedEventInfo | 用於處理 InvocationFailed 資訊的輔助程式。 |
SubprocessEventHelper.InvocationStartedEventInfo | 叫用開始資訊的輔助程式。 |
SubprocessEventHelper.LogAssociationEventInfo | 用於 logAssociation 資訊的輔助程式。 |
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 | 輔助類別,用於顯示字串元素的矩陣,讓每個元素欄排列整齊 |
TarUtil | 用於操作 tar 檔案的工具。 |
TestFilterHelper | 用於篩選測試的輔助類別 |
TestRecordInterpreter |
可將 TestRecord 原型轉換為 Tradefed 中更容易操作的格式。
|
TimeVal |
這個類別已淘汰。
請改用 Duration 。
|
ZipCompressionStrategy |
用於建立 ZIP 封存檔的 ICompressionStrategy 。
|
列舉
AaptParser.AaptVersion | 用於剖析 APK 檔案的 AAPT 版本選項列舉。 |
AppVersionFetcher.AppVersionInfo | 應用程式版本資訊類型。 |
BinaryState | 用於記錄 ON/OFF 狀態的列舉,並提供 IGNORE 無操作狀態。 |
FakeTestsZipFolder.ItemType | |
LogcatEventType |
LogcatEventParser 的事件類型。
|
SimplePerfUtil.SimplePerfType | Simpleperf 指令選項的列舉值 |
Sl4aBluetoothUtil.BluetoothAccessLevel |
以 BluetoothDevice.java 為基礎的藍牙裝置存取層級的列舉
|
Sl4aBluetoothUtil.BluetoothConnectionState |
藍牙連線狀態的列舉,以 BluetoothProfile.java 為依據 |
Sl4aBluetoothUtil.BluetoothPriorityLevel |
以 BluetoothProfile.java 為基礎的藍牙設定檔優先順序等級的列舉值
|
Sl4aBluetoothUtil.BluetoothProfile |
以 BluetoothProfile.java 為基礎的藍牙設定檔的列舉值 |
SystemUtil.EnvVariable |
介面
類別
- AaptParser
- AbiFormatter
- AdbRootElevator
- AppVersionFetcher
- BluetoothUtils
- BuildInfoUtil
- BuildTestsZipUtils
- BulkEmailer
- BundletoolUtil
- CircularAtraceUtil
- CircularByteArray
- ClassPathScanner
- ClassPathScanner.ClassNameFilter
- ClassPathScanner.ExternalClassNameFilter
- ConditionPriorityBlockingQueue
- ConditionPriorityBlockingQueue.AlwaysMatch
- DeviceConcurrentUtil
- DeviceConcurrentUtil.ShellCommandCallable
- DeviceRecoveryModeUtil
- DirectedGraph
- EmmaXmlConstants
- FakeTestsZipFolder
- FileIdleMonitor
- FixedByteArrayOutputStream
- FlashingResourceUtil
- GCSBucketUtil
- GCSBucketUtil.GCSFileMetadata
- GCSCommon
- GCSFileDownloader
- GCSFileUploader
- GoogleApiClientUtil
- HprofAllocSiteParser
- JavaCodeCoverageFlusher
- JUnit4TestFilter
- JUnitXmlParser
- ListInstrumentationParser
- ListInstrumentationParser.InstrumentationTarget
- LocalRunInstructionBuilder
- LogcatEventParser
- MetricUtility
- NativeCodeCoverageFlusher
- 配對
- PrettyPrintDelimiter
- PropertyChanger
- ProtoUtil
- PsParser
- QuotationAwareTokenizer
- RegexTrie
- RemoteZip
- RestApiHelper
- SerializationUtil
- ShellOutputReceiverStream
- SimplePerfResult
- SimplePerfStatResultParser
- SimplePerfUtil
- SimpleStats
- SizeLimitedOutputStream
- Sl4aBluetoothUtil
- StringEscapeUtils
- StringUtil
- SubprocessEventHelper
- SubprocessEventHelper.BaseTestEventInfo
- SubprocessEventHelper.FailedTestEventInfo
- SubprocessEventHelper.InvocationEndedEventInfo
- SubprocessEventHelper.InvocationFailedEventInfo
- SubprocessEventHelper.InvocationStartedEventInfo
- SubprocessEventHelper.LogAssociationEventInfo
- SubprocessEventHelper.TestEndedEventInfo
- SubprocessEventHelper.TestLogEventInfo
- SubprocessEventHelper.TestModuleStartedEventInfo
- SubprocessEventHelper.TestRunEndedEventInfo
- SubprocessEventHelper.TestRunFailedEventInfo
- SubprocessEventHelper.TestRunStartedEventInfo
- SubprocessEventHelper.TestStartedEventInfo
- SubprocessExceptionParser
- SubprocessTestResultsParser
- SubprocessTestResultsParser.StatusKeys
- SystemUtil
- TableBuilder
- TableFormatter
- TarUtil
- TestFilterHelper
- TestRecordInterpreter
- TimeVal
- ZipCompressionStrategy
列舉
- AaptParser.AaptVersion
- AppVersionFetcher.AppVersionInfo
- BinaryState
- FakeTestsZipFolder.ItemType
- LogcatEventType
- SimplePerfUtil.SimplePerfType
- Sl4aBluetoothUtil.BluetoothAccessLevel
- Sl4aBluetoothUtil.BluetoothConnectionState
- Sl4aBluetoothUtil.BluetoothPriorityLevel
- Sl4aBluetoothUtil.BluetoothProfile
- SystemUtil.EnvVariable