SkipContext

public class SkipContext
extends Object

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


表示围绕跳过或缓存结果的决策的上下文。

摘要

公共构造函数

SkipContext(boolean presubmit, Set<String> unchangedModules, Map<String, Digest> imageToDigest)

公共方法

Map<String, Digest> getImageToDigest()
boolean hasDeviceDigest()
boolean isPresubmit()
boolean shouldSkipModule(String moduleName)

仅在预提交中跳过未更改的模块。

boolean shouldUseCache()

报告是否使用缓存。

公共构造函数

SkipContext

public SkipContext (boolean presubmit, 
                Set<String> unchangedModules, 
                Map<String, Digest> imageToDigest)

参数
presubmit boolean

unchangedModules Set

imageToDigest Map

公共方法

getImageToDigest

public Map<String, Digest> getImageToDigest ()

返回
Map<String, Digest>

hasDeviceDigest

public boolean hasDeviceDigest ()

返回
boolean

isPresubmit

public boolean isPresubmit ()

返回
boolean

shouldSkipModule

public boolean shouldSkipModule (String moduleName)

仅在预提交中跳过未更改的模块。在此阶段,未更改的模块是已知的 (基于未更改的设备映像和测试工件)

参数
moduleName String

返回
boolean

shouldUseCache

public boolean shouldUseCache ()

报告是否使用缓存。

返回
boolean