NativeBenchmarkTest

public class NativeBenchmarkTest
extends Object implements IDeviceTest , IRemoteTest

java.lang.Oggetto
com.android.tradefed.testtype.NativeBenchmarkTest


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

Utilizza NativeBenchmarkTestParser per analizzare il tempo medio di operazione rispetto al ritardo tra le operazioni tali risultati per ITestInvocationListener s.

Riepilogo

Costruttori pubblici

NativeBenchmarkTest ()

Metodi pubblici

ITestDevice getDevice ()

Ottieni il dispositivo in prova.

String getModuleName ()

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

void run ( TestInformation testInfo, ITestInvocationListener listener)

Esegue i test e riporta i risultati al listener.

void setDevice ( ITestDevice device)

Iniettare il dispositivo in esame.

void setModuleName (String moduleName)

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

Costruttori pubblici

NativeBenchmarkTest

public NativeBenchmarkTest ()

Metodi pubblici

getDispositivo

public ITestDevice getDevice ()

Ottieni il dispositivo in prova.

ritorna
ITestDevice il ITestDevice

getModuleName

public String getModuleName ()

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

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

correre

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Esegue i test e riporta i risultati al listener.

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

listener ITestInvocationListener : ITestInvocationListener dei risultati del test

Getta
DeviceNotAvailableException

setDispositivo

public void setDevice (ITestDevice device)

Iniettare il dispositivo in esame.

Parametri
device ITestDevice : l' ITestDevice da usare

setNomeModulo

public void setModuleName (String moduleName)

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

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