PackageInstalledModuleController

public class PackageInstalledModuleController
extends BaseModuleController

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


Module controller to not run tests when the device has not got the given packages installed.

Summary

Public constructors

PackageInstalledModuleController()

Public methods

IModuleController.RunStrategy shouldRun(IInvocationContext context)

Method to decide if the module should run or not.

Public constructors

PackageInstalledModuleController

public PackageInstalledModuleController ()

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