自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
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 執行前呼叫,會傳回在 PoC 完成後關閉的 AutoCloseable
參數 |
nativePoc |
NativePoc |
device |
ITestDevice |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-03-26 (世界標準時間)。
[null,null,["上次更新時間:2025-03-26 (世界標準時間)。"],[],[]]