ContentBasedHelper

public class ContentBasedHelper
extends Object

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


Helper to obtain all the content information surrounding a build and its base.

Summary

Public constructors

ContentBasedHelper()

Public methods

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

Analyze extra target downloads to ensure we handle all the test dependencies.

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

Fetch all the pieces necessary to obtain content information relevant to a build compared to its base.

static boolean hasCasDetails(RemoteBuildInfo info)

Help checking whether we have the details to analyze.

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

Handle the content analysis of embedded cloud parameters.

Public constructors

ContentBasedHelper

public ContentBasedHelper ()

Public methods

analyzeExtraDownloads

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

Analyze extra target downloads to ensure we handle all the test dependencies.

Parameters
skipManager SkipManager: SkipManager

device ITestDevice

getContentInformation

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

Fetch all the pieces necessary to obtain content information relevant to a build compared to its base.

Parameters
info RemoteBuildInfo

branch String

buildFlavor String

buildId String

Returns
ContentInformation

hasCasDetails

public static boolean hasCasDetails (RemoteBuildInfo info)

Help checking whether we have the details to analyze.

Parameters
info RemoteBuildInfo

Returns
boolean

hasHostPackageArgs

public static boolean hasHostPackageArgs (TestDeviceOptions options)

Parameters
options TestDeviceOptions

Returns
boolean

obtainCloudParameters

public static ContentAnalysisContext obtainCloudParameters (String branch, 
                TestDeviceOptions options)

Handle the content analysis of embedded cloud parameters.

Parameters
branch String

options TestDeviceOptions

Returns
ContentAnalysisContext

Throws
BuildRetrievalError