自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
NativePocMallocDebugAsserter
public
class
NativePocMallocDebugAsserter
extends Object
implements
NativePocAsserter
java.lang.Object
|
↳ |
com.android.sts.common.NativePocMallocDebugAsserter
|
摘要
公共方法
assertNoMallocDebugErrorOnPoc
public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)
返回一个 NativePocAsserter,用于将 libc malloc 调试附加到 PoC 并在 PoC 运行期间检查是否存在任何 malloc 调试错误。
assertNoMallocDebugErrorOnService
public static NativePocAsserter assertNoMallocDebugErrorOnService (String options,
String service)
返回一个 NativePocAsserter,用于在运行 PoC 之前将 libc malloc 调试附加到服务,并在 PoC 运行期间检查该服务是否存在任何 malloc 调试错误。
参数 |
options |
String |
service |
String |
withAutoCloseable
public AutoCloseable withAutoCloseable (NativePoc nativePoc,
ITestDevice device)
在 PoC 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 会在 PoC 完成后关闭
参数 |
nativePoc |
NativePoc |
device |
ITestDevice |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[null,null,["最后更新时间 (UTC):2025-03-26。"],[],[]]