NativeBenchmarkTest
public
class
NativeBenchmarkTest
extends Object
implements
IDeviceTest,
IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.NativeBenchmarkTest |
A Test that runs a native benchmark test executable on given device.
It usesNativeBenchmarkTestParser
to parse out the average operation time vs delay
between operations those results to the ITestInvocationListener
s.
Summary
Constants | |
---|---|
String |
AVG_OP_TIME_KEY_PREFIX
|
String |
DEFAULT_TEST_PATH
|
String |
ITERATION_KEY
|
Public constructors | |
---|---|
NativeBenchmarkTest()
|
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. |
Constants
AVG_OP_TIME_KEY_PREFIX
String AVG_OP_TIME_KEY_PREFIX
Constant Value: "avg-operation-time"
DEFAULT_TEST_PATH
String DEFAULT_TEST_PATH
Constant Value: "data/nativebenchmark"
ITERATION_KEY
String ITERATION_KEY
Constant Value: "iterations"
Public constructors
NativeBenchmarkTest
NativeBenchmarkTest ()
Public methods
getModuleName
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
void run (ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
Parameters | |
---|---|
listener |
ITestInvocationListener : the ITestInvocationListener of test results |
Throws | |
---|---|
DeviceNotAvailableException |
setDevice
void setDevice (ITestDevice device)
Inject the device under test.
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to use
|
setModuleName
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
|
Interfaces
- CodeCoverageReportFormat
- IAbi
- IAbiReceiver
- IBuildReceiver
- IDeviceTest
- IInvocationContextReceiver
- IMultiDeviceTest
- INativeDeviceTest
- IRemoteTest
- IResumableTest
- IRetriableTest
- IRuntimeHintProvider
- ISetOptionReceiver
- IShardableTest
- IStrictShardableTest
- ITestAnnotationFilterReceiver
- ITestCollector
- ITestFileFilterReceiver
- ITestFilterReceiver
Classes
- Abi
- AndroidJUnitTest
- CodeCoverageListener
- CodeCoverageTest
- CodeCoverageTestBase
- CodeCoverageTestBase.CoverageCollectingListener
- CompanionAwareTest
- DeviceBatteryLevelChecker
- DeviceJUnit4ClassRunner
- DeviceJUnit4ClassRunner.LogAnnotation
- DeviceJUnit4ClassRunner.MetricAnnotation
- DeviceJUnit4ClassRunner.TestLogData
- DeviceJUnit4ClassRunner.TestMetrics
- DeviceSuite
- DeviceTestCase
- DeviceTestResult
- DeviceTestSuite
- FakeTest
- GoogleBenchmarkResultParser
- GoogleBenchmarkTest
- GTest
- GTestListTestParser
- GTestResultParser
- GTestXmlResultParser
- HostTest
- InstalledInstrumentationsTest
- InstrumentationFileTest
- InstrumentationSerialTest
- InstrumentationTest
- InstrumentationTest.FailedTestLogcatGenerator
- InstrumentationTest.FailedTestScreenshotGenerator
- JackCodeCoverageTest
- JacocoCodeCoverageTest
- JUnitRunUtil
- MetricTestCase
- MetricTestCase.LogHolder
- NativeBenchmarkTest
- NativeBenchmarkTestParser
- NativeStressTest
- NativeStressTestParser
- NoisyDryRunTest
- PythonUnitTestResultParser
- PythonUnitTestRunner
- StubTest
- SubprocessTfLauncher
- TfTestLauncher
- UiAutomatorRunner
- UiAutomatorTest
- VersionedTfLauncher
Enums
Exceptions