Google 致力于为黑人社区推动种族平等。查看具体举措

BaseTargetPreparer

public abstract class BaseTargetPreparer
extends Object implements ITargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer


Base implementation class for ITargetPreparer that allows to control whether the object is disabled or not.

Summary

Public constructors

BaseTargetPreparer()

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

BaseTargetPreparer

public BaseTargetPreparer ()

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.