MinApiLevelModuleController

public class MinApiLevelModuleController
extends BaseModuleController

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.module.BaseModuleController
     ↳ com.android.tradefed.testtype.suite.module.MinApiLevelModuleController


Base class for a module controller to not run tests when it below a specified API Level.

Summary

Public constructors

MinApiLevelModuleController()

Public methods

IModuleController.RunStrategy shouldRun(IInvocationContext context)

Method to decide if the module should run or not.

Public constructors

MinApiLevelModuleController

public MinApiLevelModuleController ()

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