Stay organized with collections
Save and categorize content based on your preferences.
OtaDeviceBuildInfo
public
class
OtaDeviceBuildInfo
extends DeviceBuildInfo
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
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.
getBaselineBuildId
public String getBaselineBuildId ()
public File getBaselineOtatoolsZip ()
getBaselineTargetFileZip
public File getBaselineTargetFileZip ()
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
.
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)]
public File getOtaTools ()
public File getTargetOtatoolsZip ()
getTargetTargetFileZip
public File getTargetTargetFileZip ()
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 |
public void setOtaTools (File otaTools,
String version)
Parameters |
otaTools |
File |
version |
String |
setReportTargetBuild
public void setReportTargetBuild (boolean downgrade)
Parameters |
downgrade |
boolean |
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2023-03-08 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."]]