ContentBasedHelper

public class ContentBasedHelper
extends Object

java.lang.Object
com.google.android.tradefed.build.content.ContentBasedHelper


用于获取 build 及其基础的所有内容信息的帮助程序。

摘要

公共构造函数

ContentBasedHelper()

公共方法

static void analyzeExtraDownloads(SkipManager skipManager, ITestDevice device, MultiMap<String, File> extraTargetDownloads)

分析额外的目标下载,以确保我们处理所有测试依赖项。

static ContentInformation getContentInformation(RemoteBuildInfo info, String branch, String buildFlavor, String buildId)

提取所有必要的部分,以获取与 build 及其基础相关的内容信息。

static boolean hasCasDetails(RemoteBuildInfo info)

帮助检查我们是否拥有要分析的详细信息。

static boolean hasHostPackageArgs(TestDeviceOptions options)
static ContentAnalysisContext obtainCloudParameters(String branch, TestDeviceOptions options)

处理嵌入式云参数的内容分析。

公共构造函数

ContentBasedHelper

public ContentBasedHelper ()

公共方法

analyzeExtraDownloads

public static void analyzeExtraDownloads (SkipManager skipManager, 
                ITestDevice device, 
                MultiMap<String, File> extraTargetDownloads)

分析额外的目标下载,以确保我们处理所有测试依赖项。

参数
skipManager SkipManagerSkipManager

device ITestDevice

getContentInformation

public static ContentInformation getContentInformation (RemoteBuildInfo info, 
                String branch, 
                String buildFlavor, 
                String buildId)

提取所有必要的部分,以获取与 build 及其 基础相关的内容信息。

参数
info RemoteBuildInfo

branch String

buildFlavor String

buildId String

返回
ContentInformation

hasCasDetails

public static boolean hasCasDetails (RemoteBuildInfo info)

帮助检查我们是否拥有要分析的详细信息。

参数
info RemoteBuildInfo

返回
boolean

hasHostPackageArgs

public static boolean hasHostPackageArgs (TestDeviceOptions options)

参数
options TestDeviceOptions

返回
boolean

obtainCloudParameters

public static ContentAnalysisContext obtainCloudParameters (String branch, 
                TestDeviceOptions options)

处理嵌入式云参数的内容分析。

参数
branch String

options TestDeviceOptions

返回
ContentAnalysisContext

抛出
BuildRetrievalError