AppDeviceBuildInfo

public class AppDeviceBuildInfo
extends BuildInfo implements IDeviceBuildInfo, IAppBuildInfo

java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ 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.

void cleanUp()

Clean up any temporary build files

IBuildInfo clone()

IAppBuildInfo getAppBuildInfo()
List<VersionedFile> getAppPackageFiles()

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

File getBasebandImageFile()

Get the local baseband image file.

String getBasebandVersion()

Get the baseband version.

File getBootloaderImageFile()

Get the local bootloader image file.

String getBootloaderVersion()

Get the bootloader version.

String getDeviceBuildFlavor()

Optional method to return the type of the platform build being tested.

String getDeviceBuildId()

Returns the unique identifier of platform build under test.

IDeviceBuildInfo getDeviceBuildInfo()
File getDeviceImageFile()

Get the local device image zip file.

String getDeviceImageVersion()

Get the local device image zip version.

File getFile(String name)

Helper method to retrieve a file with given name.

File getMkbootimgFile()

Gets the mkbootimg file used to create the kernel image.

String getMkbootimgVersion()

Gets the mkbootimg version.

File getOtaPackageFile()

Get the device OTA package zip file.

String getOtaPackageVersion()

Get the device OTA package zip version.

File getRamdiskFile()

Gets the ramdisk file used to create the kernel image.

String getRamdiskVersion()

Gets the ramdisk version.

File getTestsDir()

Get the local path to the extracted tests.zip file contents.

String getTestsDirVersion()

Get the extracted tests.zip version.

File getUserDataImageFile()

Get the local test userdata image file.

String getUserDataImageVersion()

Get the local test userdata image version.

String getVersion(String name)

Helper method to retrieve a file version with given name.

void setAppBuild(IAppBuildInfo appBuild)
void setBasebandImage(File basebandFile, String version)

Set the baseband image for the device build.

void setBootloaderImageFile(File bootloaderImgFile, String version)

Set the bootloader image for the device build.

void setDeviceBuild(IDeviceBuildInfo deviceBuild)
void setDeviceImageFile(File deviceImageFile, String version)

Set the device system image file to use.

void setMkbootimgFile(File mkbootimg, String version)

Sets the mkbootimg file used to create the kernel image.

void setOtaPackageFile(File otaFile, String version)

Set the device OTA package zip file.

void setRamdiskFile(File ramdisk, String version)

Gets the ramdisk file used to create the kernel image.

void setTestsDir(File testsDir, String version)

Set local path to the extracted tests.zip file contents.

void setUserDataImageFile(File userDataFile, String version)

Set the user data image file to use.

Public constructors

AppDeviceBuildInfo

AppDeviceBuildInfo (String buildId, 
                String buildName)

Parameters
buildId String

buildName String

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 ()

Clean up any temporary build files

clone

IBuildInfo clone ()

Returns
IBuildInfo

getAppBuildInfo

IAppBuildInfo getAppBuildInfo ()

Returns
IAppBuildInfo the IAppBuildInfo for the application.

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>

getBasebandImageFile

File getBasebandImageFile ()

Get the local baseband image file.

Returns
File

getBasebandVersion

String getBasebandVersion ()

Get the baseband version.

Returns
String

getBootloaderImageFile

File getBootloaderImageFile ()

Get the local bootloader image file.

Returns
File

getBootloaderVersion

String getBootloaderVersion ()

Get the bootloader version.

Returns
String

getDeviceBuildFlavor

String getDeviceBuildFlavor ()

Optional method to return the type of the platform build being tested.

Returns
String

getDeviceBuildId

String getDeviceBuildId ()

Returns the unique identifier of platform build under test. Should never be null. Defaults to UNKNOWN_BUILD_ID.

Returns
String

getDeviceBuildInfo

IDeviceBuildInfo getDeviceBuildInfo ()

Returns
IDeviceBuildInfo the IDeviceBuildInfo for the device.

getDeviceImageFile

File getDeviceImageFile ()

Get the local device image zip file.

Returns
File

getDeviceImageVersion

String getDeviceImageVersion ()

Get the local device image zip version.

Returns
String

getFile

File getFile (String name)

Helper method to retrieve a file with given name.

Returns
File the image file or null if not found

getMkbootimgFile

File getMkbootimgFile ()

Gets the mkbootimg file used to create the kernel image.

Returns
File

getMkbootimgVersion

String getMkbootimgVersion ()

Gets the mkbootimg version.

Returns
String

getOtaPackageFile

File getOtaPackageFile ()

Get the device OTA package zip file.

Returns
File

getOtaPackageVersion

String getOtaPackageVersion ()

Get the device OTA package zip version.

Returns
String

getRamdiskFile

File getRamdiskFile ()

Gets the ramdisk file used to create the kernel image.

Returns
File

getRamdiskVersion

String getRamdiskVersion ()

Gets the ramdisk version.

Returns
String

getTestsDir

File getTestsDir ()

Get the local path to the extracted tests.zip file contents.

Returns
File

getTestsDirVersion

String getTestsDirVersion ()

Get the extracted tests.zip version.

Returns
String

getUserDataImageFile

File getUserDataImageFile ()

Get the local test userdata image file.

Returns
File

getUserDataImageVersion

String getUserDataImageVersion ()

Get the local test userdata image version.

Returns
String

getVersion

String getVersion (String name)

Helper method to retrieve a file version with given name.

Returns
String the image version or null if not found

setAppBuild

void setAppBuild (IAppBuildInfo appBuild)

setBasebandImage

void setBasebandImage (File basebandFile, 
                String version)

Set the baseband image for the device build.

Parameters
basebandFile File: the baseband image File

version String: the version of the baseband

setBootloaderImageFile

void setBootloaderImageFile (File bootloaderImgFile, 
                String version)

Set the bootloader image for the device build.

Parameters
bootloaderImgFile File: the bootloader image File

version String: the version of the bootloader

setDeviceBuild

void setDeviceBuild (IDeviceBuildInfo deviceBuild)

setDeviceImageFile

void setDeviceImageFile (File deviceImageFile, 
                String version)

Set the device system image file to use.

Parameters
version String

setMkbootimgFile

void setMkbootimgFile (File mkbootimg, 
                String version)

Sets the mkbootimg file used to create the kernel image.

Parameters
mkbootimg File

version String

setOtaPackageFile

void setOtaPackageFile (File otaFile, 
                String version)

Set the device OTA package zip file.

Parameters
otaFile File

version String

setRamdiskFile

void setRamdiskFile (File ramdisk, 
                String version)

Gets the ramdisk file used to create the kernel image.

Parameters
ramdisk File

version String

setTestsDir

void setTestsDir (File testsDir, 
                String version)

Set local path to the extracted tests.zip file contents.

Parameters
version String

setUserDataImageFile

void setUserDataImageFile (File userDataFile, 
                String version)

Set the user data image file to use.

Parameters
version String