com.android.tradefed.util
接口
ClassPathScanner.IClassPathFilter |
用于过滤类路径条目路径
图案在 |
ConditionPriorityBlockingQueue.IMatcher<T> | 用于确定元素是否符合某种条件的接口。 |
ICompressionStrategy | 表示可在运行时选择的压缩算法的接口。 |
可停用 | 描述可以停用的 Tradefed 对象的接口。 |
IEmail | 用于发送电子邮件的界面。 |
IRestApiHelper | 用于执行 REST API 调用的辅助程序接口。 |
IRunUtil | 用于运行定时操作和系统命令的接口。 |
IRunUtil.IRunnableResult | 用于异步执行返回布尔值状态的操作的接口。 |
类
AaptParser | 通过解析“aapt dump badging”的输出从 APK 中提取信息的类。 |
AbiFormatter | abi 的实用程序类。 |
AbiUtils | 用于处理设备 ABI 的实用程序类 |
AdbRootElevator |
一个 AutoCloseable ,可在构造时启用 adb root 命令,并在完成后恢复根状态。
|
AdbUtils | 用于 adb 操作的实用程序类。 |
AppVersionFetcher | 用于从设备获取应用版本字符串的实用程序类。 |
ArrayUtil | 数组的实用程序方法 |
BluetoothUtils |
用于在设备上调用 BluetoothInstrumentation 的实用函数
设备端 BluetoothInstrumentation 代码可以在 AOSP 中找到: |
错误报告 | 包含 bug 报告文件引用的对象,与平面 bug 报告和压缩的 bug 报告 (bugreportz) 兼容。 |
BuildInfoUtil |
帮助操纵 IBuildInfo 的 util 类
|
BuildTestsZipUtils | 一个辅助类,用于与 Android 构建系统生成的测试 ZIP 相关的操作 |
BulkEmailer | 一种电子邮件发件人实用程序,允许进行以下配置:发送的间隔时间、初始突发大小、收件人和消息总数。 |
BundletoolUtil | 该实用程序类使用 bundletool 命令行在设备上安装 .apk。 |
ByteArrayList | 用于表示轻量级字节数组的类。 |
ByteArrayUtil | 用于对字节数组执行操作的实用程序,例如,将字节转换为整数。 |
CircularAtraceUtil | 一种主要用于在 Monkey 测试期间识别 ANR 的根本原因开发的 atrace 实用程序。 |
CircularByteArray | 用于保存固定大小数组(作为环形缓冲区运行)的数据结构,并跟踪数组中所有值的总和。 |
ClangProfileIndexer | 一个实用程序类,用于将 Clang 代码覆盖率测量编入索引。 |
ClassPathScanner | 查找类路径中的条目。 |
ClassPathScanner.ClassNameFilter |
用于过滤和转换 Java 类名称的 IClassPathFilter 。
|
ClassPathScanner.ExternalClassNameFilter |
拒绝内部类的 ClassNameFilter
|
CommandResult | 包含命令的结果。 |
ConditionPriorityBlockingQueue<T> |
一个线程安全类,包含类似于 ERROR(/PriorityBlockingQueue) 的操作,可检索与特定条件匹配的对象。
|
ConditionPriorityBlockingQueue.AlwaysMatch<T> |
与任何对象匹配的 ConditionPriorityBlockingQueue.IMatcher 。
|
DeviceActionUtil | 用于执行设备操作的实用程序类。 |
DeviceActionUtil.DeviceActionConfigError | 配置错误的异常。 |
DeviceConcurrentUtil |
包含用于并发设备端命令执行的实用程序方法和类
使用 |
DeviceConcurrentUtil.ShellCommandCallable<V> |
一个 ERROR(/Callable) ,用于封装在 ITestDevice 上执行 shell 命令的详细信息。
|
DeviceRecoveryModeUtil | |
DirectedGraph<V> | 有向未加权图实现。 |
电子邮件 | 用于发送电子邮件的辅助类。 |
EmmaXmlConstants | 解析 emma xml 报告时使用的常量。 |
ExtensionAtomsRegistry | ExtensionAtomsRegistry,用于在本地使用 statsd。 |
FakeTestsZipFolder | 一种测试夹具,用于根据内容列表创建假的未压缩测试文件夹。 |
FileIdleMonitor | 监控文件并执行回调(如果文件已空闲)(即 |
FileUtil | 用于文件相关操作的辅助类 |
FileUtil.LowDiskSpaceException | 可用磁盘空间低于最低阈值时抛出。 |
FixedByteArrayOutputStream |
仅保留最大数据量的内存中 ERROR(/OutputStream) 。
|
FlashingResourceUtil |
此实用程序有助于设置适当的工件版本,以便通过 DeviceFlashPreparer 对其进行刷写。
|
FuseUtil | 用于 FUSE 操作的辅助类。 |
GCSBucketUtil | 用于从 Google Cloud Storage (GCS) 下载和上传文件的文件管理器。 |
GCSBucketUtil.GCSFileMetadata | GCS 中文件信息的简单封装容器。 |
GCSCommon | Gcs 操作(如下载和上传)的基类。 |
GCSFileDownloader | 文件下载工具,用于从 Google Cloud Storage (GCS) 下载文件。 |
GCSFileUploader | 文件上传器,用于将文件数据上传到 Google Cloud Storage (GCS)。 |
GenericLogcatEventParser<LogcatEventType> | 解析 logcat 输入以获取事件。 |
GenericLogcatEventParser.LogcatEvent | 用于保存具有事件类型并触发 logcat 消息的 logcat 事件的结构 |
GoogleApiClientUtil | 用于创建 Google API 客户端的实用程序。 |
HprofAllocSiteParser | 用于解析 hprof 报告的“分配网站”部分中信息的帮助程序类。 |
IEmail.Message | 用于存储电子邮件数据的容器。 |
JavaCodeCoverageFlusher | 一个实用程序类,用于从设备上运行的进程重置并强制刷新 Java 代码覆盖率测量结果。 |
JUnit4TestFilter |
通过扩展 Filter 为 JUnit4 运行程序提供过滤的帮助程序类。
|
JUnitXmlParser | 此解析器从存储在 ant 的 XMLJUnitResultFormatter 中的 JUnit 结果中提取测试结果数据,并将其转发给 ITestInvocationListener。 |
KeyguardControllerState | 锁屏状态的容器。 |
ListInstrumentationParser 调用 |
一个 IShellOutputReceiver ,用于解析“pm list Instrumentation”查询的输出
|
ListInstrumentationParser.InstrumentationTarget 的信息 | |
LocalRunInstructionBuilder | 用于编译指令以在本地运行测试的实用程序。 |
LogcatEventParser | |
MetricUtility | 包含用于存储测试指标、在类似测试中汇总指标以及将指标写入文件的常见实用程序方法。 |
ModuleTestTypeUtil | 包含用于检查模块的常用实用程序方法。 |
MultiMap<K、V> |
一个 ERROR(/Map) ,支持每个键具有多个值。
|
NativeCodeCoverageFlusher | 一个实用程序类,用于清除原生覆盖率测量值,并强制从设备上的进程中清除原生覆盖率数据。 |
配对<A、B> | 定义我们自己的 Pair 类,其中包含两个对象。 |
PerfettoTraceRecorder |
用于在 ITestDevice 上记录 Perfetto 轨迹的实用程序类。
|
PrettyPrintDelimiter | 帮助打印突出显示的分隔邮件的帮助程序实用程序。 |
ProcessInfo | 用于存储与进程相关的信息(USER、PID、NAME、自纪元以来的第二次启动时间)。 |
PropertyChanger | 用于在 Android 属性文件中更改(或添加)项目的实用程序类 |
ProtoUtil | 处理与类型无关的 protobuf 消息的实用程序方法。 |
PsParser | 用于从“ps”命令输出中解析(USER、PID 和 NAME)的实用程序 |
PythonVirtualenvHelper | 用于激活 Python 3 虚拟环境的辅助类。 |
QuotationAwareTokenizer | |
正则表达式<V> |
RegexTrie 是一个 trie,其中键的每个ERROR(/Pattern) 。
|
RemoteZip | 用于解压缩远程 ZIP 文件中的各个文件的实用程序。 |
RequestUtil(请求实用程序) | 允许通过错误处理对网络请求进行常规重试的实用程序。 |
ResourceUtil | 用于读取配置资源的实用程序。 |
RestApiHelper | 用于执行 REST API 调用的辅助类。 |
RunInterruptedException | 运行操作被外部请求中断时抛出。 |
RunUtil | 用于执行操作的辅助方法的集合。 |
SerializationUtil |
用于对实现 ERROR(/Serializable) 的对象进行序列化/反序列化的实用程序。
|
ShellOutputReceiverStream | 写入 IShellOutputReceiver 的 OutputStream 实用工具子类。 |
SimplePerfResult | 用于保存所有 simpleperf 测试结果的对象 |
SimplePerfStatResultParser | 用于解析 simpleperf 结果的实用程序类。 |
SimplePerfUtil | 用于调度简单命令和收集结果的实用程序类 |
SimpleStats | 一个小型实用程序类,用于针对给定数值数据集计算几项统计度量。 |
SizeLimitedOutputStream |
支持 ERROR(/OutputStream) 的线程安全文件,可限制可写入的最大数据量。
|
Sl4aBluetoothUtil | 实用程序类使用 SL4A 在一两台设备上提供蓝牙操作 |
SparseImageUtil | 用于取消稀疏稀疏映像的实用程序。 |
SparseImageUtil.SparseInputStream | 从上游读取 SparseInputStream 并检测数据格式。 |
StreamUtil | 用于管理输入流的实用程序类。 |
StringEscapeUtils | 用于对特定格式的字符串进行转义的实用程序类。 |
StringUtil | 用于对常见字符串操作进行转义字符串的实用程序类。 |
SubprocessEventHelper | 帮助对要传递给日志的事件进行序列化/反序列化。 |
SubprocessEventHelper.BaseTestEventInfo | 用于 TestIgnored 信息的基础辅助程序。 |
SubprocessEventHelper.FailedTestEventInfo | testFailed 信息帮助程序。 |
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 | testStarted 信息帮助程序 |
SubprocessExceptionParser | 帮助处理来自标准 Tradefed 命令运行程序的异常输出。 |
SubprocessTestResultsParser |
扩展 ERROR(/FileOutputStream) ,以便在写入文件之前解析输出,以便我们在启动器端生成测试事件。
|
SubprocessTestResultsParser.StatusKeys | 相关的测试状态键。 |
SystemUtil | 用于进行系统调用的实用程序类。 |
TableBuilder | 辅助类,用于在表中显示字符串元素矩阵。 |
TableFormatter | 一种辅助类,用于显示字符串元素矩阵,使每个元素列都排成一行 |
TargetFileUtils | |
TarUtil | 用于操作 tar 文件的实用程序。 |
TestFilterHelper | 用于过滤测试的辅助类 |
TestRecordInterpreter |
用于将 TestRecord proto 转换为 Tradefed 中更易于操作的格式的实用程序。
|
TestRunnerUtil 中 | 一个实用程序类,用于帮助各种测试运行程序。 |
TimeUtil | 包含与时间相关的实用程序方法。 |
时间值 |
这是一种标记类型,封装了 Long 。
|
UniqueMultiMap<K, V> |
一个 MultiMap ,用于确保每个键的值都是唯一的。
|
VersionParser | 获取正在运行的 tradefed 工件的版本。 |
ZipCompressionStrategy |
用于创建 zip 归档文件的 ICompressionStrategy 。
|
ZipUtil | 用于执行压缩相关操作的辅助类 |
ZipUtil2 | 用于提取 POSIX 文件权限的 zip 辅助类 |
枚举
AaptParser.AaptVersion | 用于解析 APK 文件的 AAPT 版本选项的枚举。 |
AppVersionFetcher.AppVersionInfo | 应用版本信息类型。 |
BinaryState | 用于记录具有 IGNORE 空操作状态的 ON/OFF 状态的枚举。 |
CommandStatus | 表示定时操作的状态。 |
DeviceActionUtil.Command | 针对设备操作的命令。 |
FakeTestsZipFolder.ItemType | |
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
- 错误报告
- BuildInfoUtil
- BuildTestsZipUtils
- BulkEmailer
- BundletoolUtil
- ByteArrayList
- ByteArrayUtil
- CircularAtraceUtil
- CircularByteArray
- ClangProfileIndexer
- ClassPathScanner
- ClassPathScanner.ClassNameFilter
- ClassPathScanner.ExternalClassNameFilter
- CommandResult
- ConditionPriorityBlockingQueue
- ConditionPriorityBlockingQueue.AlwaysMatch
- DeviceActionUtil
- DeviceActionUtil.DeviceActionConfigError
- DeviceConcurrentUtil
- DeviceConcurrentUtil.ShellCommandCallable
- DeviceRecoveryModeUtil
- DirectedGraph
- 电子邮件
- EmmaXmlConstants
- ExtensionAtomsRegistry
- FakeTestsZipFolder
- FileIdleMonitor
- FileUtil
- FileUtil.LowDiskSpaceException
- FixedByteArrayOutputStream
- FlashingResourceUtil
- FuseUtil
- GCSBucketUtil
- GCSBucketUtil.GCSFileMetadata
- GCSCommon
- GCSFileDownloader
- GCSFileUploader
- GenericLogcatEventParser
- GenericLogcatEventParser.LogcatEvent
- GoogleApiClientUtil
- HprofAllocSiteParser
- IEmail.Message
- JavaCodeCoverageFlusher
- JUnit4TestFilter
- JUnitXmlParser
- KeyguardControllerState
- ListInstrumentationParser 调用
- ListInstrumentationParser.InstrumentationTarget 的信息
- LocalRunInstructionBuilder
- LogcatEventParser
- MetricUtility
- ModuleTestTypeUtil
- 多映射
- NativeCodeCoverageFlusher
- 配对
- PerfettoTraceRecorder
- PrettyPrintDelimiter
- ProcessInfo
- PropertyChanger
- ProtoUtil
- PsParser
- PythonVirtualenvHelper
- QuotationAwareTokenizer
- 正则表达式
- RemoteZip
- RequestUtil(请求实用程序)
- ResourceUtil
- RestApiHelper
- RunInterruptedException
- RunUtil
- 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 中
- TimeUtil
- 时间值
- UniqueMultiMap
- VersionParser
- ZipCompressionStrategy
- ZipUtil
- ZipUtil2
枚举
- AaptParser.AaptVersion
- AppVersionFetcher.AppVersionInfo
- BinaryState
- CommandStatus
- DeviceActionUtil.Command
- FakeTestsZipFolder.ItemType
- IRunUtil.EnvPriority
- LogcatEventType
- SimplePerfUtil.SimplePerfType
- Sl4aBluetoothUtil.BluetoothAccessLevel
- Sl4aBluetoothUtil.BluetoothConnectionState
- Sl4aBluetoothUtil.BluetoothPriorityLevel
- Sl4aBluetoothUtil.BluetoothProfile
- SystemUtil.EnvVariable
- TargetFileUtils.FilePermission