MinSdkModuleController
public
class
MinSdkModuleController
extends BaseModuleController
java.lang.Object | ||
↳ | com.android.tradefed.testtype.suite.module.BaseModuleController | |
↳ | com.android.tradefed.testtype.suite.module.MinSdkModuleController |
Base class for a module controller to not run tests on versions below a specified SDK version number.
Summary
Protected constructors | |
---|---|
MinSdkModuleController(int minSdkVersion)
|
Public methods | |
---|---|
IModuleController.RunStrategy
|
shouldRun(IInvocationContext context)
Method to decide if the module should run or not. |
Protected constructors
MinSdkModuleController
protected MinSdkModuleController (int minSdkVersion)
Parameters | |
---|---|
minSdkVersion |
int : The minimum sdk version on which tests will run. |
Public methods
shouldRun
public IModuleController.RunStrategy shouldRun (IInvocationContext context)
Method to decide if the module should run or not.
Parameters | |
---|---|
context |
IInvocationContext : the IInvocationContext of the module |
Returns | |
---|---|
IModuleController.RunStrategy |
True if the module should run, false otherwise. |
Throws | |
---|---|
DeviceNotAvailableException |