SkipContext

public class SkipContext
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.skipped.SkipContext


Representation of the context surrounding decision about skipping or caching of results.

Summary

Public constructors

SkipContext(boolean presubmit, unchangedModules, imageToDigest)

Public methods

getImageToDigest()
boolean shouldSkipModule(String moduleName)

Only skip unchanged modules in presubmit.

boolean shouldUseCache()

Reports whether to use caching or not.

Public constructors

SkipContext

public SkipContext (boolean presubmit, 
                 unchangedModules, 
                 imageToDigest)

Parameters
presubmit boolean

unchangedModules

imageToDigest

Public methods

getImageToDigest

public  getImageToDigest ()

Returns

shouldSkipModule

public boolean shouldSkipModule (String moduleName)

Only skip unchanged modules in presubmit. At this stage the unchanged modules are known (based on unchanged device image and test artifacts)

Parameters
moduleName String

Returns
boolean

shouldUseCache

public boolean shouldUseCache ()

Reports whether to use caching or not.

Returns
boolean