Coletor NativeLeak

public class NativeLeakCollector
extends BaseTargetPreparer implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.NativeLeakCollector


Um ITargetPreparer que executa 'dumpsys meminfo --unreachable -a' para identificar a memória nativa inacessível atualmente mantida por cada processo.

Nota: este preparador requer plataforma N ou mais recente.

Resumo

Construtores públicos

NativeLeakCollector ()

Métodos públicos

void setTestLogger ( ITestLogger testLogger)

Injeta a instância ITestLogger

void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

Construtores públicos

Coletor NativeLeak

public NativeLeakCollector ()

Métodos públicos

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Injeta a instância ITestLogger

Parâmetros
testLogger ITestLogger

configurar

public void setUp (TestInformation testInfo)

Parâmetros
testInfo TestInformation

Lança
BuildError
DeviceNotAvailableException
TargetSetupError

destruir

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parâmetros
testInfo TestInformation

e Throwable

Lança
DeviceNotAvailableException