CtsDeviceLaunchControlProvider
public
class
CtsDeviceLaunchControlProvider
extends DeviceLaunchControlProvider
implements
IDiscoverDependencies
| java.lang.Object | |||
| ↳ | com.google.android.tradefed.build.LaunchControlProvider | ||
| ↳ | com.google.android.tradefed.build.DeviceLaunchControlProvider | ||
| ↳ | com.google.android.tradefed.build.CtsDeviceLaunchControlProvider | ||
A LaunchControlProvider for DeviceFolderBuildInfo.
Retrieves both a CTS build and a device build from the Android build server.
The device build is retrieved first, and thus the build-flavor, etc arguments provided to this class should match the device build you want to retrieve.
By default, this class will attempt to download a CTS build with same build-id and same branch as device build. The cts* options may be used to retrieve a different CTS build.
Summary
Public constructors | |
|---|---|
CtsDeviceLaunchControlProvider()
|
|
Public methods | |
|---|---|
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 |
RemoteBuildInfo
|
queryForBuild()
Perform the launch control query, retrying multiple times in case of error. |
Set<String>
|
reportTestZipFileFilter()
|
Public constructors
CtsDeviceLaunchControlProvider
public CtsDeviceLaunchControlProvider ()
Public methods
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> |
|