NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


खास जानकारी

सार्वजनिक तरीके

static NativePocAsserter assertNoMallocDebugErrorOnPoc(String options)

यह एक NativePocAsserter दिखाता है, जो PoC में libc malloc डीबग को अटैच करता है और PoC के चलने के दौरान, malloc डीबग से जुड़ी किसी भी गड़बड़ी की जांच करता है.

static NativePocAsserter assertNoMallocDebugErrorOnService(String options, String service)

यह एक NativePocAsserter दिखाता है, जो PoC को चलाने से पहले, किसी सेवा में libc malloc डीबग को अटैच करता है. साथ ही, PoC के चलने के दौरान उस सेवा में malloc डीबग की किसी भी गड़बड़ी की जांच करता है.

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

यह पोक के चलने से पहले कॉल किया जाता है. यह एक AutoCloseable रिटर्न करता है, जो पोक के खत्म होने के बाद बंद हो जाता है

सार्वजनिक तरीके

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

यह एक NativePocAsserter दिखाता है, जो PoC में libc malloc डीबग को अटैच करता है और PoC के चलने के दौरान, malloc डीबग से जुड़ी किसी भी गड़बड़ी की जांच करता है.

पैरामीटर
options String

रिटर्न
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

यह एक NativePocAsserter दिखाता है, जो PoC को चलाने से पहले, किसी सेवा में libc malloc डीबग को अटैच करता है. साथ ही, PoC के चलने के दौरान उस सेवा में malloc डीबग की किसी भी गड़बड़ी की जांच करता है.

पैरामीटर
options String

service String

रिटर्न
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

यह पोक के चलने से पहले कॉल किया जाता है. यह एक AutoCloseable रिटर्न करता है, जो पोक के खत्म होने के बाद बंद हो जाता है

पैरामीटर
nativePoc NativePoc

device ITestDevice

रिटर्न
AutoCloseable

थ्रो
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException