OtaDeviceBuildInfo

public class OtaDeviceBuildInfo
extends DeviceBuildInfo

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


A IDeviceBuildInfo used for over-the-air update testing. It is composed of two device builds for ITestDevice:

  • a baseline build image (the build to OTA from).
  • a OTA build (a build to OTA to). Should contain necessary build attributes and associated OTA package.
this contains the baseline build, and getOtaBuild() returns the OTA build.

Summary

Fields

protected IDeviceBuildInfo mOtaBuild

protected boolean mReportTargetBuild

Public constructors

OtaDeviceBuildInfo()
OtaDeviceBuildInfo(IDeviceBuildInfo buildInfo)

Public methods

void cleanUp()

Clean up any temporary build files

void cleanUp( doNotDelete)

Version of cleanUp() where some files are not deleted.

IBuildInfo clone()

String getBaselineBuildId()
File getBaselineOtatoolsZip()
File getBaselineTargetFileZip()
String getBuildBranch()

Optional method to return the source control branch that the build being tested was produced from.

String getBuildFlavor()

Optional method to return the type of build being tested.

String getBuildId()

Returns the unique identifier of build under test.

String getBuildTargetName()

Return complete name for the build being tested.

getFiles()

Returns all VersionedFiles stored in this BuildInfo.

IDeviceBuildInfo getOtaBuild()
File getOtaTools()
File getTargetOtatoolsZip()
File getTargetTargetFileZip()
void setBaselineOtatoolsZip(File file, String version)
void setBaselineTargetFileZip(File file, String version)
void setOtaBuild(IDeviceBuildInfo otaBuild)
void setOtaTools(File otaTools, String version)
void setReportTargetBuild(boolean downgrade)
void setTargetOtatoolsZip(File file, String version)
void setTargetTargetFileZip(File file, String version)

Fields

mOtaBuild

protected IDeviceBuildInfo mOtaBuild

mReportTargetBuild

protected boolean mReportTargetBuild

Public constructors

OtaDeviceBuildInfo

public OtaDeviceBuildInfo ()

OtaDeviceBuildInfo

public OtaDeviceBuildInfo (IDeviceBuildInfo buildInfo)

Parameters
buildInfo IDeviceBuildInfo

Public methods

cleanUp

public void cleanUp ()

Clean up any temporary build files

cleanUp

public void cleanUp ( doNotDelete)

Version of cleanUp() where some files are not deleted.

Parameters
doNotDelete

clone

public IBuildInfo clone ()

Returns
IBuildInfo

getBaselineBuildId

public String getBaselineBuildId ()

Returns
String

getBaselineOtatoolsZip

public File getBaselineOtatoolsZip ()

Returns
File

getBaselineTargetFileZip

public File getBaselineTargetFileZip ()

Returns
File

getBuildBranch

public String getBuildBranch ()

Optional method to return the source control branch that the build being tested was produced from.

Returns
String the build branch or null if unset/not applicable

getBuildFlavor

public String getBuildFlavor ()

Optional method to return the type of build being tested.

A common implementation for Android platform builds is to return (build product)-(build os)-(build variant). ie generic-linux-userdebug

Returns
String the build flavor or null if unset/not applicable

getBuildId

public String getBuildId ()

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

Returns
String

getBuildTargetName

public String getBuildTargetName ()

Return complete name for the build being tested.

A common implementation is to construct the build target name from a combination of the build flavor and branch name. [ie (branch name)-(build flavor)]

Returns
String

getFiles

public  getFiles ()

Returns all VersionedFiles stored in this BuildInfo.

Returns

getOtaBuild

public IDeviceBuildInfo getOtaBuild ()

Returns
IDeviceBuildInfo

getOtaTools

public File getOtaTools ()

Returns
File

getTargetOtatoolsZip

public File getTargetOtatoolsZip ()

Returns
File

getTargetTargetFileZip

public File getTargetTargetFileZip ()

Returns
File

setBaselineOtatoolsZip

public void setBaselineOtatoolsZip (File file, 
                String version)

Parameters
file File

version String

setBaselineTargetFileZip

public void setBaselineTargetFileZip (File file, 
                String version)

Parameters
file File

version String

setOtaBuild

public void setOtaBuild (IDeviceBuildInfo otaBuild)

Parameters
otaBuild IDeviceBuildInfo

setOtaTools

public void setOtaTools (File otaTools, 
                String version)

Parameters
otaTools File

version String

setReportTargetBuild

public void setReportTargetBuild (boolean downgrade)

Parameters
downgrade boolean

setTargetOtatoolsZip

public void setTargetOtatoolsZip (File file, 
                String version)

Parameters
file File

version String

setTargetTargetFileZip

public void setTargetTargetFileZip (File file, 
                String version)

Parameters
file File

version String