TfLaunchControlProvider

public class TfLaunchControlProvider
extends LaunchControlProvider

java.lang.Object
   ↳ com.google.android.tradefed.build.LaunchControlProvider
     ↳ com.google.android.tradefed.build.TfLaunchControlProvider


A LaunchControlProvider to retrieve a google-tradefed build as a IFolderBuildInfo.

Retrieves and extracts a google-tradefed.zip from the Android build server.

Summary

Public constructors

TfLaunchControlProvider()

Public methods

void addConsideredEntryForContent(String entryName)
void cleanUp(IBuildInfo info)

Clean up any temporary build files.

IBuildInfo downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)

Download the necessary file keys as configured in --download-build-key from the remoteBuild, and store them in a IBuildInfo.

RemoteBuildInfo queryForBuild()

Perform the launch control query, retrying multiple times in case of error.

Set<String> reportTestZipFileFilter()
void setAospFallback(boolean fallbackToAosp)

Whether or not to fallback to getting the aosp version of the tradefed package.

boolean wasFallbackUsed()

Protected methods

void downloadAdditionalFiles(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IBuildInfo localBuild)

Public constructors

TfLaunchControlProvider

public TfLaunchControlProvider ()

Public methods

addConsideredEntryForContent

public void addConsideredEntryForContent (String entryName)

Parameters
entryName String

cleanUp

public void cleanUp (IBuildInfo info)

Clean up any temporary build files.

Parameters
info IBuildInfo

downloadBuildFiles

public IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, 
                String testTargetName, 
                String buildName, 
                IFileDownloader downloader)

Download the necessary file keys as configured in --download-build-key from the remoteBuild, and store them in a IBuildInfo.

Parameters
remoteBuild RemoteBuildInfo: the launch control server response

testTargetName String: the test target name

buildName String: the name of the build, as defined by launch control

downloader IFileDownloader: the IFileDownloader to use to download build files

Returns
IBuildInfo the IBuildInfo populated with local versions of build files

Throws
BuildRetrievalError

queryForBuild

public RemoteBuildInfo queryForBuild ()

Perform the launch control query, retrying multiple times in case of error.

Returns
RemoteBuildInfo the RemoteBuildInfo retrieved from launch control

Throws
BuildRetrievalError

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

Returns
Set<String>

setAospFallback

public void setAospFallback (boolean fallbackToAosp)

Whether or not to fallback to getting the aosp version of the tradefed package.

Parameters
fallbackToAosp boolean

wasFallbackUsed

public boolean wasFallbackUsed ()

Returns
boolean

Protected methods

downloadAdditionalFiles

protected void downloadAdditionalFiles (RemoteBuildInfo remoteBuild, 
                IFileDownloader downloader, 
                IBuildInfo localBuild)

Parameters
remoteBuild RemoteBuildInfo

downloader IFileDownloader

localBuild IBuildInfo

Throws
BuildRetrievalError