AtestUtils
public
class
AtestUtils
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.AtestUtils |
A utility class for Atest runners.
Summary
Public constructors | |
|---|---|
AtestUtils()
|
|
Public methods | |
|---|---|
static
void
|
addDebugger(IConfiguration testConfig)
Helper to attach the debugger to any Instrumentation tests in the config. |
static
void
|
applyIncludeFilters(LinkedHashMap<String, IConfiguration> configMap, List<String> includeFilters)
Helper to apply include filters to the tests in the config map. |
static
void
|
disableTargetPreparers(IConfiguration testConfig, boolean skipSetUp, boolean skipTearDown)
Helper to disable TargetPreparers of a test. |
static
void
|
setIncrementalSetupEnabledForTargetPreparers(IConfiguration testConfig, boolean shouldEnable)
Helper to set incremental setup enabled or disabled to TargetPreparers of a test. |
Public constructors
AtestUtils
public AtestUtils ()
Public methods
addDebugger
public static void addDebugger (IConfiguration testConfig)
Helper to attach the debugger to any Instrumentation tests in the config.
| Parameters | |
|---|---|
testConfig |
IConfiguration |
applyIncludeFilters
public static void applyIncludeFilters (LinkedHashMap<String, IConfiguration> configMap, List<String> includeFilters)
Helper to apply include filters to the tests in the config map.
| Parameters | |
|---|---|
configMap |
LinkedHashMap: The map of loaded configurations. |
includeFilters |
List: The list of include filters to apply. |
disableTargetPreparers
public static void disableTargetPreparers (IConfiguration testConfig, boolean skipSetUp, boolean skipTearDown)
Helper to disable TargetPreparers of a test.
| Parameters | |
|---|---|
testConfig |
IConfiguration |
skipSetUp |
boolean |
skipTearDown |
boolean |
setIncrementalSetupEnabledForTargetPreparers
public static void setIncrementalSetupEnabledForTargetPreparers (IConfiguration testConfig, boolean shouldEnable)
Helper to set incremental setup enabled or disabled to TargetPreparers of a test.
| Parameters | |
|---|---|
testConfig |
IConfiguration: the test config which contains all target preparers. |
shouldEnable |
boolean: true to enable incremental setup, otherwise disable incremental
setup. |