com.android.tradefed.util
接口
ClassPathScanner.IClassPathFilter |
用于过滤类路径条目路径的过滤器
遵循 |
ConditionPriorityBlockingQueue.IMatcher<T> | 用于确定元素是否符合某种条件的接口。 |
ICompressionStrategy | 表示可在运行时选择的压缩算法的接口。 |
IDisableable | 用于描述可停用的 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 | 用于存储 bugreport 文件引用的对象,与平面 bugreport 和压缩 bugreport (bugreportz) 兼容。 |
BuildInfoUtil |
一个实用类,用于帮助操控 IBuildInfo
|
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> |
用于封装在 ITestDevice 上执行 shell 命令的详细信息的 ERROR(/Callable) 。
|
DeviceInspectionResult | 一个类包含设备变为不可用时的设备检查结果。 |
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 |
用于解析“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、自公元纪年以来的秒数形式的开始时间)。 |
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 | 用于 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 | 一个实用工具类,可帮助各种测试运行程序。 |
TfInternalOptionsFetcher | 一个实用程序类,允许类从 res 文件中静态加载变量值。 |
TimeUtil | 包含与时间相关的实用程序方法。 |
TimeVal |
这是一种封装 Long 的哨兵类型。
|
UniqueMultiMap<K, V> |
一个 MultiMap ,用于确保每个键的值都是唯一的。
|
VersionParser | 提取正在运行的 tradefed 工件的版本。 |
ZipCompressionStrategy |
用于创建 ZIP 归档文件的 ICompressionStrategy 。
|
ZipUtil | 用于压缩相关操作的辅助类 |
ZipUtil2 | 用于解压缩 ZIP 文件的辅助类,会考虑 POSIX 文件权限 |
枚举
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
- 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
- DeviceInspectionResult
- 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