NativeBenchmarkTest

public class NativeBenchmarkTest
extends Object implements IDeviceTest, IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.testtype.NativeBenchmarkTest


Un test che esegue un eseguibile di test di benchmark nativo su un determinato dispositivo.

Utilizza NativeBenchmarkTestParser per analizzare il tempo di esecuzione medio rispetto al ritardo tra le operazioni che generano i ITestInvocationListener.

Riepilogo

Costruttori pubblici

NativeBenchmarkTest()

Metodi pubblici

ITestDevice getDevice()

Ottieni il dispositivo di test.

String getModuleName()

Esegui il modulo di test del benchmark nativo Android.

void run(TestInformation testInfo, ITestInvocationListener listener)

Esegue i test e segnala il risultato all'ascoltatore.

void setDevice(ITestDevice device)

Esegui l'iniezione del dispositivo di test.

void setModuleName(String moduleName)

Imposta l'esecuzione del modulo di test del benchmark nativo Android.

Costruttori pubblici

NativeBenchmarkTest

public NativeBenchmarkTest ()

Metodi pubblici

getDevice

public ITestDevice getDevice ()

Ottieni il dispositivo di test.

Ritorni
ITestDevice ITestDevice

getModuleName

public String getModuleName ()

Esegui il modulo di test del benchmark nativo Android.

Ritorni
String il nome del modulo di test nativo da eseguire o null se non impostato

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Esegue i test e segnala il risultato all'ascoltatore.

Parametri
testInfo TestInformation: l'oggetto TestInformation contenente informazioni utili per eseguire i test.

listener ITestInvocationListener: il ITestInvocationListener dei risultati del test

Lanci
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

Esegui l'iniezione del dispositivo di test.

Parametri
device ITestDevice: il ITestDevice da utilizzare

setModuleName

public void setModuleName (String moduleName)

Imposta l'esecuzione del modulo di test del benchmark nativo Android.

Parametri
moduleName String: il nome del modulo di test nativo da eseguire