IBuildProvider

public interface IBuildProvider

com.android.tradefed.build.IBuildProvider
Known Indirect Subclasses
BootstrapBuildProvider A IDeviceBuildProvider that bootstraps build info from the test device

This is typically used for devices with an externally supplied build, i.e. 

ExistingBuildProvider A IBuildProvider that returns an already constructed IBuildInfo
IDeviceBuildProvider A IBuildProvider that uses information from a ITestDevice to retrieve a build. 
LocalAppBuildProvider A IBuildProvider that constructs a IAppBuildInfo based on a provided local path  
LocalDeviceBuildProvider A IBuildProvider that constructs a IDeviceBuildInfo based on a provided filesystem directory path. 
LocalFolderBuildProvider A IBuildProvider that constructs a IFolderBuildInfo based on a provided local path  
LocalSdkBuildProvider A IBuildProvider that constructs a ISdkBuildInfo based on a provided local path  
OtaZipfileBuildProvider Provides a IBuildInfo based on a local OTA zip file. 
StubBuildProvider No-op empty implementation of a IBuildProvider


Responsible for providing info regarding the build under test.

Summary

Public methods

abstract void buildNotTested(IBuildInfo info)

Mark the given build as untested.

abstract void cleanUp(IBuildInfo info)

Clean up any temporary build files.

abstract IBuildInfo getBuild()

Retrieve the data for build under test.

Public methods

buildNotTested

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

cleanUp

void cleanUp (IBuildInfo info)

Clean up any temporary build files.

Parameters
info IBuildInfo

getBuild

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 if build info failed to be retrieved due to an unexpected error