ActivityStatusChecker

public class ActivityStatusChecker
extends Object implements ISystemStatusChecker, ITestLoggerReceiver

java.lang.Object
   ↳ com.android.tradefed.suite.checker.ActivityStatusChecker


Status checker for left over activities running at the end of a module.

Summary

Public constructors

ActivityStatusChecker()

Public methods

StatusCheckerResult postExecutionCheck(ITestDevice device)

Check system condition after test module execution.

void setTestLogger(ITestLogger testLogger)

Injects the ITestLogger instance

Public constructors

ActivityStatusChecker

public ActivityStatusChecker ()

Public methods

postExecutionCheck

public StatusCheckerResult postExecutionCheck (ITestDevice device)

Check system condition after test module execution. Subclass should override this method if a check is desirable here. Implementation must return a boolean value to indicate if the status check has passed or failed.

Parameters
device ITestDevice: The ITestDevice on which to run the checks.

Returns
StatusCheckerResult result of system status check

Throws
DeviceNotAvailableException

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Injects the ITestLogger instance

Parameters
testLogger ITestLogger