GoogleBenchmarkTest
public
class
GoogleBenchmarkTest
extends Object
implements
IDeviceTest,
IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.GoogleBenchmarkTest |
A Test that runs a Google benchmark test package on given device.
Summary
Public constructors | |
---|---|
GoogleBenchmarkTest()
|
Public methods | |
---|---|
ITestDevice
|
getDevice()
Get the device under test. |
String
|
getModuleName()
Get the Android native benchmark test module to run. |
void
|
run(ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
void
|
setDevice(ITestDevice device)
Inject the device under test. |
void
|
setModuleName(String moduleName)
Set the Android native benchmark test module to run. |
void
|
setReportRunName(String reportRunName)
|
Protected methods | |
---|---|
boolean
|
shouldSkipFile(String fullPath)
Helper method to determine if we should skip the execution of a given file. |
Public constructors
GoogleBenchmarkTest
public GoogleBenchmarkTest ()
Public methods
getDevice
public ITestDevice getDevice ()
Get the device under test.
Returns | |
---|---|
ITestDevice |
the ITestDevice
|
getModuleName
public String getModuleName ()
Get the Android native benchmark test module to run.
Returns | |
---|---|
String |
the name of the native test module to run, or null if not set |
run
public void run (ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
Parameters | |
---|---|
listener |
ITestInvocationListener : the ITestInvocationListener of test results |
Throws | |
---|---|
DeviceNotAvailableException |
setDevice
public void setDevice (ITestDevice device)
Inject the device under test.
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to use
|
setModuleName
public void setModuleName (String moduleName)
Set the Android native benchmark test module to run.
Parameters | |
---|---|
moduleName |
String : The name of the native test module to run
|
setReportRunName
public void setReportRunName (String reportRunName)
Parameters | |
---|---|
reportRunName |
String |
Protected methods
shouldSkipFile
protected boolean shouldSkipFile (String fullPath)
Helper method to determine if we should skip the execution of a given file.
Parameters | |
---|---|
fullPath |
String : the full path of the file in question |
Returns | |
---|---|
boolean |
true if we should skip the said file. |