AppBuildInfo

public class AppBuildInfo
extends BuildInfo implements IAppBuildInfo

java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.AppBuildInfo


A IBuildInfo that represents an Android application and its test package(s).

Summary

Public constructors

AppBuildInfo(String buildId, String buildName)

Creates a AppBuildInfo.

AppBuildInfo(BuildInfo buildToCopy)

Public methods

void addAppPackageFile(File appPackageFile, String version)

Adds the local apk file and its associated version.

void cleanUp()

Removes all temporary files

IBuildInfo clone()

List<VersionedFile> getAppPackageFiles()

Gets a copy of the set of local app apk file(s) and their versions.

Public constructors

AppBuildInfo

AppBuildInfo (String buildId, 
                String buildName)

Creates a AppBuildInfo.

Parameters
buildId String: the unique build id

buildName String: the build name

AppBuildInfo

AppBuildInfo (BuildInfo buildToCopy)

Parameters
buildToCopy BuildInfo

Public methods

addAppPackageFile

void addAppPackageFile (File appPackageFile, 
                String version)

Adds the local apk file and its associated version. Note that apks will be returned from getAppPackageFiles() in the order in which they were added by this method.

Parameters
appPackageFile File

version String

cleanUp

void cleanUp ()

Removes all temporary files

clone

IBuildInfo clone ()

Returns
IBuildInfo

getAppPackageFiles

List<VersionedFile> getAppPackageFiles ()

Gets a copy of the set of local app apk file(s) and their versions. The returned order matches the order in which the apks were added to the IAppBuildInfo.

Returns
List<VersionedFile>