使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

OtaDeviceBuildInfo

public class OtaDeviceBuildInfo
extends DeviceBuildInfo

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


用于无线更新测试的IDeviceBuildInfo 。它由ITestDevice的两个设备构建组成:

  • 基线构建映像(从构建到 OTA)。
  • 一个 OTA 构建(一个构建到 OTA 到)。应包含必要的构建属性和相关的 OTA 包。
this包含基线构建, getOtaBuild()返回 OTA 构建。

概括

字段

protected IDeviceBuildInfo mOtaBuild

protected boolean mReportTargetBuild

公共构造函数

OtaDeviceBuildInfo ()
OtaDeviceBuildInfo ( IDeviceBuildInfo buildInfo)

公共方法

void cleanUp ()

void cleanUp ( doNotDelete) cleanUp ( doNotDelete)

IBuildInfo clone ()

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

String getBuildFlavor ()

String getBuildId ()

String getBuildTargetName ()

getFiles ()

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)

字段

mOtaBuild

protected IDeviceBuildInfo mOtaBuild

mReportTargetBuild

protected boolean mReportTargetBuild

公共构造函数

OtaDeviceBuildInfo

public OtaDeviceBuildInfo ()

OtaDeviceBuildInfo

public OtaDeviceBuildInfo (IDeviceBuildInfo buildInfo)

参数
buildInfo IDeviceBuildInfo

公共方法

清理

public void cleanUp ()

清理

public void cleanUp ( doNotDelete)

参数
doNotDelete

克隆

public IBuildInfo clone ()

退货
IBuildInfo

getBaselineBuildId

public String getBaselineBuildId ()

退货
String

getBaselineOtatoolsZip

public File getBaselineOtatoolsZip ()

退货
File

getBaselineTargetFileZip

public File getBaselineTargetFileZip ()

退货
File

获取构建分支

public String getBuildBranch ()

退货
String

获取BuildFlavor

public String getBuildFlavor ()

退货
String

获取BuildId

public String getBuildId ()

退货
String

获取构建目标名称

public String getBuildTargetName ()

退货
String

获取文件

public  getFiles ()

退货

获取OtaBuild

public IDeviceBuildInfo getOtaBuild ()

退货
IDeviceBuildInfo

getOtaTools

public File getOtaTools ()

退货
File

getTargetOtatoolsZip

public File getTargetOtatoolsZip ()

退货
File

getTargetTargetFileZip

public File getTargetTargetFileZip ()

退货
File

setBaselineOtatoolsZip

public void setBaselineOtatoolsZip (File file, 
                String version)

参数
file File

version String

setBaselineTargetFileZip

public void setBaselineTargetFileZip (File file, 
                String version)

参数
file File

version String

setOtaBuild

public void setOtaBuild (IDeviceBuildInfo otaBuild)

参数
otaBuild IDeviceBuildInfo

setOtaTools

public void setOtaTools (File otaTools, 
                String version)

参数
otaTools File

version String

setReportTargetBuild

public void setReportTargetBuild (boolean downgrade)

参数
downgrade boolean

setTargetOtatoolsZip

public void setTargetOtatoolsZip (File file, 
                String version)

参数
file File

version String

setTargetTargetFileZip

public void setTargetTargetFileZip (File file, 
                String version)

参数
file File

version String