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,并在完成时恢复 root 状态。
|
AdbUtils | 用于 adb 操作的实用程序类。 |
AppVersionFetcher | 用于从设备获取应用版本字符串的实用程序类。 |
ArrayUtil | 数组的实用程序方法 |
BluetoothUtils |
用于在设备上调用 BluetoothInstrumentation 的实用函数
设备端 BluetoothInstrumentation 代码可以在 AOSP 中找到: |
Bugreport | 包含 bug 报告文件引用的对象,与平面 bug 报告和压缩的 bug 报告 (bugreportz) 兼容。 |
BuildInfoUtil |
帮助操纵 IBuildInfo 的 util 类
|
BuildTestsZipUtils | 用于执行与 Android 构建系统生成的测试 ZIP 文件相关的操作的辅助类 |
BulkEmailer | 一种电子邮件发件人实用程序,允许进行以下配置:发送的间隔时间、初始突发大小、收件人和消息总数。 |
BundletoolUtil | 使用 bundletool 命令行在设备上安装 .apk 的实用程序类。 |
ByteArrayList | 表示轻量级字节数组的类。 |
ByteArrayUtil | 用于对字节数组进行操作的实用程序,例如将字节转换为整数。 |
CacheClientFactory |
用于创建 ICacheClient 的单例实例的工厂。
|
CircularAtraceUtil | atrace 实用程序,主要用于在 Monkey 测试期间确定 ANR 的根本原因。 |
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 报告时使用的常量。 |
EnvironmentVariableUtil | 用于准备环境变量的一系列辅助方法。 |
ExtensionAtomsRegistry | ExtensionAtomsRegistry,用于本地使用 statsd。 |
FakeTestsZipFolder | 一种测试夹具,用于根据内容列表创建假的未压缩测试文件夹。 |
FileIdleMonitor | 监控文件,并在文件处于空闲状态(即没有写入)时执行回调。 |
FileUtil | 用于文件相关操作的辅助类 |
FileUtil.LowDiskSpaceException | 可用磁盘空间低于最小阈值时抛出。 |
FixedByteArrayOutputStream |
仅保留最大数据量的内存 ERROR(/OutputStream) 。
|
FlashingResourceUtil |
此实用程序有助于设置适当的工件版本,以便通过 DeviceFlashPreparer 对其进行刷写。
|
FuseUtil | 用于 FUSE 操作的辅助类。 |
GceRemoteCmdFormatter | 用于设置命令格式以访问远程 GCE 设备的实用程序类。 |
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 | 锁屏状态的容器。 |
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、自公元纪年以来的秒数形式的开始时间)。 |
ProcessUtil | |
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 | 用于执行操作的一系列辅助方法。 |
SearchArtifactUtil | 一个实用程序类,可用于搜索测试工件。 |
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 |
用于在 Tradefed 中将 TestRecord proto 转换为更易于操作的格式的实用程序。
|
TestRunnerUtil | 一个实用程序类,可帮助各种测试运行器。 |
TimeUtil | 包含与时间相关的实用程序方法。 |
TimeVal |
这是一种标记类型,封装了 Long 。
|
UniqueMultiMap<K, V> |
一个 MultiMap ,用于确保每个键的值都是唯一的。
|
VersionParser | 获取正在运行的 tradefed 工件的版本。 |
ZipCompressionStrategy |
用于创建 zip 归档文件的 ICompressionStrategy 。
|
ZipUtil | 用于执行压缩相关操作的辅助类 |
ZipUtil2 | 用于提取 POSIX 文件权限的 zip 辅助类 |
枚举
AaptParser.AaptVersion | 用于解析 APK 文件的 AAPT 版本选项的枚举。 |
AppVersionFetcher.AppVersionInfo | 应用版本信息类型。 |
BinaryState | 用于记录开启/关闭状态的枚举,其中包含 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
- 错误报告
- 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
- 多映射
- 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
- TimeUtil
- 时间值
- 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