Stay organized with collections
Save and categorize content based on your preferences.
SkipManager
public
class
SkipManager
extends Object
implements
IDisableable
java.lang.Object
|
↳ |
com.android.tradefed.result.skipped.SkipManager
|
Based on a variety of criteria the skip manager helps to decide what should be skipped at
different levels: invocation, modules and tests.
Summary
Public constructors
SkipManager
public SkipManager ()
Public methods
clearManager
public void clearManager ()
getDemotedTests
public getDemotedTests ()
Returns the demoted tests and the reason for demotion
getImageToDigest
public getImageToDigest ()
getInvocationSkipReason
public String getInvocationSkipReason ()
getUnchangedModules
public getUnchangedModules ()
Returns the list of unchanged modules. Modules are only unchanged if device image is also
unchanged.
isDisabled
public boolean isDisabled ()
Returns True if entire object disabled (skip both setup and teardown). False otherwise.
reportDiscoveryDependencies
public void reportDiscoveryDependencies ( modules,
depFiles)
Parameters |
modules |
|
depFiles |
|
reportDiscoveryWithNoTests
public void reportDiscoveryWithNoTests ()
In the early download and discovery process, report to the skip manager that no tests are
expected to be run. This should lead to skipping the invocation.
reportInvocationSkippedModule
public boolean reportInvocationSkippedModule ()
setDisable
public 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. |
setImageAnalysis
public void setImageAnalysis (ITestDevice device,
ContentAnalysisContext analysisContext)
Parameters |
device |
ITestDevice |
analysisContext |
ContentAnalysisContext |
setSkipDecision
public void setSkipDecision (boolean shouldSkip)
Parameters |
shouldSkip |
boolean |
setTestArtifactsAnalysis
public void setTestArtifactsAnalysis (ContentAnalysisContext analysisContext)
Parameters |
analysisContext |
ContentAnalysisContext |
setup
public void setup (IConfiguration config,
IInvocationContext context)
Setup and initialize the skip manager.
Parameters |
config |
IConfiguration |
context |
IInvocationContext |
public boolean shouldSkipInvocation (TestInformation information,
IConfiguration configuration)
Reports whether we should skip the current invocation.
Parameters |
information |
TestInformation |
configuration |
IConfiguration |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-19 UTC."],[],[]]