Google is committed to advancing racial equity for Black communities. See how.

BaseMultiTargetPreparer

public abstract class BaseMultiTargetPreparer
extends Object implements IMultiTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.multi.BaseMultiTargetPreparer


Base implementation of IMultiTargetPreparer that allows to disable the object.

Summary

Public constructors

BaseMultiTargetPreparer()

Public methods

final boolean isDisabled()

Returns True if entire object disabled (skip both setup and teardown).

final boolean isTearDownDisabled()

Returns True if just teardown should be skipped.

final void setDisable(boolean isDisabled)

Sets whether the object should be disabled.

final void setDisableTearDown(boolean isDisabled)

Sets whether the teardown step in the object should be skipped.

Public constructors

BaseMultiTargetPreparer

public BaseMultiTargetPreparer ()

Public methods

isDisabled

public final boolean isDisabled ()

Returns True if entire object disabled (skip both setup and teardown). False otherwise.

Returns
boolean

isTearDownDisabled

public final boolean isTearDownDisabled ()

Returns True if just teardown should be skipped. False otherwise.

Returns
boolean

setDisable

public final void setDisable (boolean isDisabled)

Sets whether the object should be disabled. Disabled means that both setup and teardown steps should be skipped. Can be use to make an object disabled by default in the default constructor.

Parameters
isDisabled boolean: the state the object should be put in.

setDisableTearDown

public final void setDisableTearDown (boolean isDisabled)

Sets whether the teardown step in the object should be skipped. Setup step is still done.

Parameters
isDisabled boolean: the state the object should be put in.