NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

java.lang.Object
com.android.sts.common.NativePocMallocDebugAsserter


สรุป

วิธีการสาธารณะ

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

ส่งกลับ NativePocAsserter ที่แนบดีบัก libc malloc กับ PoC และตรวจสอบข้อผิดพลาดในการดีบัก malloc ขณะที่ poc ทำงาน

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

ส่งกลับ NativePocAsserter ที่ติดดีบัก libc malloc กับบริการก่อนเรียกใช้ PoC และตรวจหาข้อผิดพลาดในการดีบัก malloc บนบริการนั้นในขณะที่ poc ทำงานอยู่

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

เรียกก่อนที่ PoC จะทำงาน ส่งคืน AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น

วิธีการสาธารณะ

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

ส่งกลับ NativePocAsserter ที่แนบดีบัก libc malloc กับ PoC และตรวจสอบข้อผิดพลาดในการดีบัก malloc ขณะที่ poc ทำงาน

พารามิเตอร์
options String

ส่งคืน
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

ส่งกลับ NativePocAsserter ที่ติดดีบัก libc malloc กับบริการก่อนเรียกใช้ PoC และตรวจหาข้อผิดพลาดในการดีบัก malloc บนบริการนั้นในขณะที่ poc ทำงานอยู่

พารามิเตอร์
options String

service String

ส่งคืน
NativePocAsserter

พร้อมปิดอัตโนมัติ

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

เรียกก่อนที่ PoC จะทำงาน ส่งคืน AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น

พารามิเตอร์
nativePoc NativePoc

device ITestDevice

ส่งคืน
AutoCloseable

พ่น
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException