to top
public class

AppDeviceBuildInfo

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

Class Overview

A IDeviceBuildInfo that also contains a IAppBuildInfo.

Summary

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

Public Constructors

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

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.

public void cleanUp ()

Clean up any temporary build files

public IBuildInfo clone ()

public IAppBuildInfo getAppBuildInfo ()

Returns

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.

public File getBasebandImageFile ()

Get the local baseband image file.

public String getBasebandVersion ()

Get the baseband version.

public File getBootloaderImageFile ()

Get the local bootloader image file.

public String getBootloaderVersion ()

Get the bootloader version.

public String getDeviceBuildId ()

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

public IDeviceBuildInfo getDeviceBuildInfo ()

Returns

public File getDeviceImageFile ()

Get the local device image zip file.

public String getDeviceImageVersion ()

Get the local device image zip version.

public File getFile (String name)

Helper method to retrieve a file with given name.

Returns
  • the image file or null if not found

public File getMkbootimgFile ()

Gets the mkbootimg file used to create the kernel image.

public String getMkbootimgVersion ()

Gets the mkbootimg version.

public File getOtaPackageFile ()

Get the device OTA package zip file.

public String getOtaPackageVersion ()

Get the device OTA package zip version.

public File getRamdiskFile ()

Gets the ramdisk file used to create the kernel image.

public String getRamdiskVersion ()

Gets the ramdisk version.

public File getTestsDir ()

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

public String getTestsDirVersion ()

Get the extracted tests.zip version.

public File getUserDataImageFile ()

Get the local test userdata image file.

public String getUserDataImageVersion ()

Get the local test userdata image version.

public String getVersion (String name)

Helper method to retrieve a file version with given name.

Returns
  • the image version or null if not found

public void setAppBuild (IAppBuildInfo appBuild)

public void setBasebandImage (File basebandFile, String version)

Set the baseband image for the device build.

Parameters
basebandFile the baseband image File
version the version of the baseband

public void setBootloaderImageFile (File bootloaderImgFile, String version)

Set the bootloader image for the device build.

Parameters
bootloaderImgFile the bootloader image File
version the version of the bootloader

public void setDeviceBuild (IDeviceBuildInfo deviceBuild)

public void setDeviceImageFile (File deviceImageFile, String version)

Set the device system image file to use.

public void setMkbootimgFile (File mkbootimg, String version)

Sets the mkbootimg file used to create the kernel image.

public void setOtaPackageFile (File otaFile, String version)

Set the device OTA package zip file.

public void setRamdiskFile (File ramdisk, String version)

Gets the ramdisk file used to create the kernel image.

public void setTestsDir (File testsDir, String version)

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

public void setUserDataImageFile (File userDataFile, String version)

Set the user data image file to use.