to top
public class

StubBuildProvider

extends Object
implements IBuildProvider @OptionClass(alias = "stub")
java.lang.Object
   ↳ com.android.tradefed.build.StubBuildProvider
Known Direct Subclasses

Class Overview

No-op empty implementation of a IBuildProvider.

Will provide an empty BuildInfo with the provided values from options.

Summary

Fields
private String mBranch @Option(name = "branch", description = "build branch name to supply.")
private Map<String, String> mBuildAttributes @Option(name = "build-attribute", description = "build attributes to supply.")
private String mBuildFlavor @Option(name = "build-flavor", description = "build flavor name to supply.")
private String mBuildId @Option(name = "build-id", description = "build id to supply.")
private String mBuildTargetName @Option(name = "build-target", description = "build target name to supply.")
private String mTestTag @Option(name = "test-tag", description = "test tag name to supply.")
Public Constructors
StubBuildProvider()
Public Methods
void buildNotTested(IBuildInfo info)
Mark the given build as untested.
void cleanUp(IBuildInfo info)
Clean up any temporary build files.
IBuildInfo getBuild()
Retrieve the data for build under test.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.build.IBuildProvider

Fields

private String mBranch

private Map<String, String> mBuildAttributes

private String mBuildFlavor

private String mBuildId

private String mBuildTargetName

private String mTestTag

Public Constructors

public StubBuildProvider ()

Public Methods

public void buildNotTested (IBuildInfo info)

Mark the given build as untested.

Called in cases where TradeFederation has failed to complete testing on the build due to an environment problem.

Parameters
info IBuildInfo: the IBuildInfo to reset

public void cleanUp (IBuildInfo info)

Clean up any temporary build files.

Parameters
info IBuildInfo

public IBuildInfo getBuild ()

Retrieve the data for build under test.

Returns
IBuildInfo the IBuildInfo for build under test or null if no build is available for testing
Throws
BuildRetrievalError