to top
public class

DeviceFolderBuildInfo

extends BuildInfo
implements IDeviceBuildInfo IFolderBuildInfo
java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.DeviceFolderBuildInfo

Class Overview

A IDeviceBuildInfo that also contains other build artifacts contained in a directory on the local filesystem.

Summary

[Expand]
Inherited Constants
From interface com.android.tradefed.build.IBuildInfo
Public Constructors
DeviceFolderBuildInfo(String buildId, String testTarget, String buildName)
DeviceFolderBuildInfo()
Public Methods
void cleanUp()
Clean up any temporary build files
IBuildInfo clone()
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.
File getDeviceImageFile()
Get the local device image zip file.
String getDeviceImageVersion()
Get the local device image zip version.
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 getRootDir()
Get the root folder that contains the build artifacts.
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.
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 setFolderBuild(IFolderBuildInfo folderBuild)
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 setRootDir(File rootDir)
Set the root directory that contains the build artifacts.
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.IBuildInfo
From interface com.android.tradefed.build.IDeviceBuildInfo
From interface com.android.tradefed.build.IFolderBuildInfo

Public Constructors

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

Parameters
buildId String
testTarget String
buildName String

public DeviceFolderBuildInfo ()

See also:

Public Methods

public void cleanUp ()

Clean up any temporary build files

public IBuildInfo clone ()

Returns
IBuildInfo

public File getBasebandImageFile ()

Get the local baseband image file.

Returns
File

public String getBasebandVersion ()

Get the baseband version.

Returns
String

public File getBootloaderImageFile ()

Get the local bootloader image file.

Returns
File

public String getBootloaderVersion ()

Get the bootloader version.

Returns
String

public String getDeviceBuildId ()

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

Returns
String

public File getDeviceImageFile ()

Get the local device image zip file.

Returns
File

public String getDeviceImageVersion ()

Get the local device image zip version.

Returns
String

public File getMkbootimgFile ()

Gets the mkbootimg file used to create the kernel image.

Returns
File

public String getMkbootimgVersion ()

Gets the mkbootimg version.

Returns
String

public File getOtaPackageFile ()

Get the device OTA package zip file.

Returns
File

public String getOtaPackageVersion ()

Get the device OTA package zip version.

Returns
String

public File getRamdiskFile ()

Gets the ramdisk file used to create the kernel image.

Returns
File

public String getRamdiskVersion ()

Gets the ramdisk version.

Returns
String

public File getRootDir ()

Get the root folder that contains the build artifacts.

Returns
File the File directory.

public File getTestsDir ()

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

Returns
File

public String getTestsDirVersion ()

Get the extracted tests.zip version.

Returns
String

public File getUserDataImageFile ()

Get the local test userdata image file.

Returns
File

public String getUserDataImageVersion ()

Get the local test userdata image version.

Returns
String

public 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

public 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

public void setDeviceBuild (IDeviceBuildInfo deviceBuild)

public void setDeviceImageFile (File deviceImageFile, String version)

Set the device system image file to use.

Parameters
version String

public void setFolderBuild (IFolderBuildInfo folderBuild)

public void setMkbootimgFile (File mkbootimg, String version)

Sets the mkbootimg file used to create the kernel image.

Parameters
mkbootimg File
version String

public void setOtaPackageFile (File otaFile, String version)

Set the device OTA package zip file.

Parameters
otaFile File
version String

public void setRamdiskFile (File ramdisk, String version)

Gets the ramdisk file used to create the kernel image.

Parameters
ramdisk File
version String

public void setRootDir (File rootDir)

Set the root directory that contains the build artifacts.

Parameters
rootDir File

public void setTestsDir (File testsDir, String version)

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

Parameters
version String

public void setUserDataImageFile (File userDataFile, String version)

Set the user data image file to use.

Parameters
version String