IDeviceTest

public interface IDeviceTest

com.android.tradefed.testtype.IDeviceTest
Known Indirect Subclasses
AndroidJUnitTest A Test that runs an instrumentation test package on given device using the android.support.test.runner.AndroidJUnitRunner. 
CodeCoverageTest A Test that runs an instrumentation test package on a given device and generates the code coverage report. 
CodeCoverageTestBase<T extends CodeCoverageReportFormat> An abstract base class which runs installed instrumentation test(s) and collects execution data from each test that was run. 
CompanionAwareTest Base test class that encapsulates boilerpate of getting and checking companion device

Subclass may call getCompanion() to retrieve the allocated companion. 

DeviceBatteryLevelChecker An ITargetPreparer that checks for a minimum battery charge, and waits for the battery to reach a second charging threshold if the minimum charge isn't present. 
DeviceJUnit4ClassRunner JUnit4 test runner that also accommodate IDeviceTest
DeviceSuite Extends the JUnit4 container Suite in order to provide a ITestDevice to the tests that requires it. 
DeviceTestCase Helper JUnit test case that provides the IRemoteTest and IDeviceTest services. 
DeviceTestSuite Helper JUnit test suite that provides the IRemoteTest and IDeviceTest services. 
FakeTest A fake test whose purpose is to make it easy to generate repeatable test results. 
GTest A Test that runs a native test package on given device. 
GoogleBenchmarkTest A Test that runs a Google benchmark test package on given device. 
HostTest A test runner for JUnit host based tests. 
ITestSuite Abstract class used to run Test Suite. 
InstalledInstrumentationsTest Runs all instrumentation found on current device. 
InstrumentationTest A Test that runs an instrumentation test package on given device. 
JackCodeCoverageTest An IRemoteTest which runs installed instrumentation test(s) and generates a code coverage report. 
JacocoCodeCoverageTest An IRemoteTest that generates a code coverage report by generating build.xml on the fly and executing the ant command. 
LogFilesReporter Helper test component that pulls files located on a device and adds them to the test logs. 
NativeBenchmarkTest A Test that runs a native benchmark test executable on given device. 
NativeStressTest A Test that runs a native stress test executable on given device. 
TfSuiteRunner Implementation of ITestSuite which will load tests from TF jars res/config/suite/ folder. 
UiAutomatorTest  
XmlDefsTest Runs a set of instrumentation test's defined in test_defs.xml files. 


Interface for object that needs a reference to a ITestDevice.

Summary

Public methods

abstract ITestDevice getDevice()

Get the device under test.

abstract void setDevice(ITestDevice device)

Inject the device under test.

Public methods

getDevice

ITestDevice getDevice ()

Get the device under test.

Returns
ITestDevice the ITestDevice

setDevice

void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device ITestDevice: the ITestDevice to use