to top
public class

AppBuildInfo

extends BuildInfo
implements IAppBuildInfo
java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.AppBuildInfo

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface com.android.tradefed.build.IBuildInfo
Public Constructors
AppBuildInfo(String buildId, String testTarget, 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.
[Expand]
Inherited Methods
From class com.android.tradefed.build.BuildInfo
From class java.lang.Object
From interface com.android.tradefed.build.IBuildInfo
From interface com.android.tradefed.build.IAppBuildInfo

Public Constructors

public AppBuildInfo (String buildId, String testTarget, String buildName)

Creates a AppBuildInfo.

Parameters
buildId String: the unique build id
testTarget String: the test target name
buildName String: the build name

public AppBuildInfo (BuildInfo buildToCopy)

Public Methods

public 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

public void cleanUp ()

Removes all temporary files

public IBuildInfo clone ()

Returns
IBuildInfo

public 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>