com.android.tradefed.util
接口
ClassPathScanner.IClassPathFilter |
用于过滤类路径条目路径的过滤器
|
ConditionPriorityBlockingQueue.IMatcher<T> | 用于确定元素是否符合某种条件的接口。 |
ICompressionStrategy | 表示可在运行时选择的压缩算法的接口。 |
IDisableable | 用于描述可停用的 Tradefed 对象的接口。 |
IRestApiHelper | 用于执行 REST API 调用的辅助接口。 |
类
AaptParser | 通过解析“aapt dump badging”的输出,从 APK 中提取信息的类。 |
AbiFormatter | ABI 的实用程序类。 |
AdbRootElevator |
一个 AutoCloseable ,用于在构建时根据需要启用 adb root,并在完成时恢复 root 状态。
|
AppVersionFetcher | 用于从设备获取应用版本字符串的实用程序类。 |
BluetoothUtils |
用于在设备上调用 BluetoothInstrumentation 的实用函数
设备端 BluetoothInstrumentation 代码位于 AOSP 中的以下位置:
|
BuildInfoUtil |
一个实用程序类,用于帮助操控 IBuildInfo
|
BuildTestsZipUtils | 用于执行与 Android 构建系统生成的测试 ZIP 文件相关的操作的辅助类 |
BulkEmailer | 电子邮件发件人实用程序,支持以下配置:发送间隔、初始突发大小、收件人和邮件总数。 |
BundletoolUtil | 使用 bundletool 命令行在设备上安装 .apk 的实用程序类。 |
CircularAtraceUtil | atrace 实用程序,主要用于在 Monkey 测试期间确定 ANR 的根本原因。 |
CircularByteArray | 用于存储固定大小数组的数据结构,该数组可用作循环缓冲区,并跟踪数组中所有值的总和。 |
ClassPathScanner | 查找类路径中的条目。 |
ClassPathScanner.ClassNameFilter |
用于过滤和转换 Java 类名称的 IClassPathFilter 。
|
ClassPathScanner.ExternalClassNameFilter |
拒绝内部类的 ClassNameFilter
|
ConditionPriorityBlockingQueue<T> |
一个线程安全的类,具有类似 ERROR(/PriorityBlockingQueue) 的操作,可检索与特定条件匹配的对象。
|
ConditionPriorityBlockingQueue.AlwaysMatch<T> |
与任何对象匹配的 ConditionPriorityBlockingQueue.IMatcher 。
|
DeviceConcurrentUtil |
包含用于设备端并发命令执行的实用程序方法和类
使用 |
DeviceConcurrentUtil.ShellCommandCallable<V> |
用于封装在 ITestDevice 上执行 shell 命令的详细信息的 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 | 用于 testFailed 信息的辅助程序。 |
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 | testStarted 信息的辅助程序 |
SubprocessExceptionParser | 用于处理标准 Tradefed 命令运行程序的异常输出的帮助程序。 |
SubprocessTestResultsParser |
扩展了 ERROR(/FileOutputStream) ,以便在写入文件之前解析输出,以便我们在启动器端生成测试事件。
|
SubprocessTestResultsParser.StatusKeys | 相关的测试状态键。 |
SystemUtil | 用于进行系统调用的实用工具类。 |
TableBuilder | 用于在表格中显示字符串元素矩阵的辅助类。 |
TableFormatter | 用于显示字符串元素矩阵的辅助类,以便每个元素列都对齐 |
TarUtil | 用于处理 tar 文件的实用程序。 |
TestFilterHelper | 用于过滤测试的辅助类 |
TestRecordInterpreter |
用于在 Tradefed 中将 TestRecord proto 转换为更易于操作的格式的实用程序。
|
TimeVal |
此类已废弃。
请改用 Duration 。
|
ZipCompressionStrategy |
用于创建 ZIP 归档文件的 ICompressionStrategy 。
|
枚举
AaptParser.AaptVersion | 用于解析 APK 文件的 AAPT 版本选项的枚举。 |
AppVersionFetcher.AppVersionInfo | 应用版本信息类型。 |
BinaryState | 用于记录开启/关闭状态的枚举,其中包含 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