ShippingApiLevelModuleController
public
class
ShippingApiLevelModuleController
extends BaseModuleController
java.lang.Object | ||
↳ | com.android.tradefed.testtype.suite.module.BaseModuleController | |
↳ | com.android.tradefed.testtype.suite.module.ShippingApiLevelModuleController |
Run tests if the device meets the following conditions:
- If
min-api-level
is defined:- The device shipped with the
min-api-level
or later.
- The device shipped with the
- If
vsr-min-api-level
is defined:- The device shipped with the
vsr-min-api-level
or later. - The vendor image implemented the features for the
vsr-min-api-level
or later.
- The device shipped with the
Summary
Public constructors | |
---|---|
ShippingApiLevelModuleController()
|
Public methods | |
---|---|
IModuleController.RunStrategy
|
shouldRun(IInvocationContext context)
Method to decide if the module should run or not. |
Public constructors
ShippingApiLevelModuleController
public ShippingApiLevelModuleController ()
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 |
RunStrategy#RUN if the module should run, IModuleController.RunStrategy.FULL_MODULE_BYPASS otherwise. |
Throws | |
---|---|
DeviceNotAvailableException |
if device is not available |