禁用
public interface IDisableable
com.android.tradefed.util.IDisableable |
已知的间接子类 AdbStopServerPreparer 、 AggregatePostProcessor 、 AllTestAppsInstallSetup 、 AoaTargetPreparer 、 AppSetup 、 ArtChrootPreparer 、 AtraceCollector 、 AtraceRunMetricCollector 、 AveragePostProcessor 、 BaseDeviceMetricCollector 、 BaseEmulatorPreparer 、 BaseMultiTargetPreparer 、 BasePostProcessor 、 BaseTargetPreparer 、 BluetoothConnectionLatency收藏家等130人。
|
描述可禁用的 Tradefed 对象的接口。禁用的对象将被跳过并且根本不会被调用。
概括
公共方法 | |
---|---|
default boolean | isDisabled () 如果整个对象被禁用(跳过设置和拆卸),则返回 True。 |
default boolean | isTearDownDisabled () 如果仅应跳过拆卸,则返回 True。 |
default void | setDisable (boolean isDisabled) 设置是否应禁用该对象。 |
default void | setDisableTearDown (boolean isDisabled) 设置是否应跳过对象中的拆卸步骤。 |
公共方法
被禁用
public boolean isDisabled ()
如果整个对象被禁用(跳过设置和拆卸),则返回 True。否则为假。
退货 | |
---|---|
boolean |
isTearDownDisabled
public boolean isTearDownDisabled ()
如果仅应跳过拆卸,则返回 True。否则为假。
退货 | |
---|---|
boolean |
设置禁用
public void setDisable (boolean isDisabled)
设置是否应禁用该对象。禁用意味着应跳过设置和拆卸步骤。可用于在默认构造函数中默认禁用对象。
参数 | |
---|---|
isDisabled | boolean :对象应处于的状态。 |
设置禁用TearDown
public void setDisableTearDown (boolean isDisabled)
设置是否应跳过对象中的拆卸步骤。设置步骤仍然完成。
参数 | |
---|---|
isDisabled | boolean :对象应处于的状态。 |