AppDeviceBuildInfo

public class AppDeviceBuildInfo
extends DeviceBuildInfo implements IAppBuildInfo

java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.DeviceBuildInfo
       ↳ com.android.tradefed.build.AppDeviceBuildInfo


A IDeviceBuildInfo that also contains a IAppBuildInfo.

Summary

Public constructors

AppDeviceBuildInfo(String buildId, String buildName)

Public methods

void addAppPackageFile(File appPackageFile, String version)

Adds the local apk file and its associated version.

getAppPackageFiles()

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

void setAppBuild(IAppBuildInfo appBuild)

Copy all the files from the IAppBuildInfo.

void setDeviceBuild(IDeviceBuildInfo deviceBuild)

Copy all the files from the IDeviceBuildInfo.

Public constructors

AppDeviceBuildInfo

public AppDeviceBuildInfo (String buildId, 
                String buildName)

Parameters
buildId String

buildName String

Public methods

addAppPackageFile

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

getAppPackageFiles

public  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

setAppBuild

public void setAppBuild (IAppBuildInfo appBuild)

Copy all the files from the IAppBuildInfo.

Parameters
appBuild IAppBuildInfo

setDeviceBuild

public void setDeviceBuild (IDeviceBuildInfo deviceBuild)

Copy all the files from the IDeviceBuildInfo.

Parameters
deviceBuild IDeviceBuildInfo