Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

BuildInfo

public class BuildInfo
extends Object implements IBuildInfo

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


通用实施的IBuildInfo应与相关ITestDevice

摘要

公共建设者

BuildInfo ()

使用默认属性值创建BuildInfo

BuildInfo (String buildId, String buildTargetName)

创建一个BuildInfo

公开方法

void addAppPackageFile (File appPackageFile, String version)

void addBuildAttribute (String attributeName, String attributeValue)

void addBuildAttributes ( buildAttributes) addBuildAttributes ( buildAttributes)

void cleanUp ()

void cleanUp ( doNotClean) cleanUp ( doNotClean)

IBuildInfo clone ()

final void copyAllFileFrom ( BuildInfo build)

将所有VersionedFile从给定的VersionedFile复制到此VersionedFile

boolean equals (Object obj)

static IBuildInfo fromProto (BuildInformation.BuildInfo protoBuild)

toProto()逆操作以获取实例。

getAppPackageFiles ()

getBuildAttributes ()

String getBuildBranch ()

String getBuildFlavor ()

String getBuildId ()

String getBuildTargetName ()

String getDeviceSerial ()

File getFile (String name)

File getFile (BuildInfoKey.BuildInfoFileKey key)

getFiles ()

getProperties ()

getRemoteFiles ()

String getTestTag ()

String getVersion (BuildInfoKey.BuildInfoFileKey key)

String getVersion (String name)

VersionedFile getVersionedFile (BuildInfoKey.BuildInfoFileKey key)

final VersionedFile getVersionedFile (String name)

getVersionedFileKeys ()

final getVersionedFiles (BuildInfoKey.BuildInfoFileKey key)

int hashCode ()

void setBuildBranch (String branch)

void setBuildFlavor (String buildFlavor)

void setBuildId (String buildId)

void setDeviceSerial (String serial)

void setFile (String name, File file, String version)

void setFile (BuildInfoKey.BuildInfoFileKey key, File file, String version)

void setProperties (BuildInfoProperties... properties)

void setTestTag (String testTag)

File stageRemoteFile (String fileName, File workingDir)

BuildInformation.BuildInfo toProto ()

String toString ()

受保护的方法

void addAllBuildAttributes ( BuildInfo build)

用于从其他构建复制构建属性,分支和样式的Helper方法。

void addAllFiles ( BuildInfo build)

从另一个版本复制所有文件的Helper方法。

boolean applyBuildProperties (VersionedFile origFileConsidered, IBuildInfo build, IBuildInfo receiver)

允许应用一些IBuildInfo.BuildInfoProperties并可能进行其他处理。

MultiMap<String, String> getAttributesMultiMap ()
getVersionedFileMap ()
MultiMap<String, VersionedFile> getVersionedFileMapFull ()

公共建设者

BuildInfo

public BuildInfo ()

使用默认属性值创建BuildInfo

BuildInfo

public BuildInfo (String buildId, 
                String buildTargetName)

创建一个BuildInfo

参量
buildId String :构建ID

buildTargetName String :构建目标名称

公开方法

addAppPackageFile

public void addAppPackageFile (File appPackageFile, 
                String version)

参量
appPackageFile File

version String

addBuildAttribute

public void addBuildAttribute (String attributeName, 
                String attributeValue)

参量
attributeName String

attributeValue String

addBuildAttributes

public void addBuildAttributes ( buildAttributes)

参量
buildAttributes

清理

public void cleanUp ()

清理

public void cleanUp ( doNotClean)

参量
doNotClean

克隆

public IBuildInfo clone ()

退货
IBuildInfo

copyAllFileFrom

public final void copyAllFileFrom (BuildInfo build)

将所有VersionedFile从给定的VersionedFile复制到此VersionedFile

参量
build BuildInfo

等于

public boolean equals (Object obj)

参量
obj Object

退货
boolean

来自Proto

public static IBuildInfo fromProto (BuildInformation.BuildInfo protoBuild)

toProto()逆操作以获取实例。

参量
protoBuild BuildInformation.BuildInfo

退货
IBuildInfo

getAppPackageFiles

public  getAppPackageFiles ()

退货

getBuildAttributes

public  getBuildAttributes ()

退货

getBuildBranch

003

退货
String

getBuildFlavor

public String getBuildFlavor ()

退货
String

getBuildId

public String getBuildId ()

退货
String

getBuildTargetName

public String getBuildTargetName ()

退货
String

getDeviceSerial

public String getDeviceSerial ()

退货
String

getFile

public File getFile (String name)

参量
name String

退货
File

getFile

public File getFile (BuildInfoKey.BuildInfoFileKey key)

参量
key BuildInfoKey.BuildInfoFileKey

退货
File

getFiles

public  getFiles ()

退货

getProperties

public  getProperties ()

退货

getRemoteFiles

public  getRemoteFiles ()

退货

getTestTag

public String getTestTag ()

退货
String

getVersion

public String getVersion (BuildInfoKey.BuildInfoFileKey key)

参量
key BuildInfoKey.BuildInfoFileKey

退货
String

getVersion

public String getVersion (String name)

参量
name String

退货
String

getVersionedFile

public VersionedFile getVersionedFile (BuildInfoKey.BuildInfoFileKey key)

参量
key BuildInfoKey.BuildInfoFileKey

退货
VersionedFile

getVersionedFile

public final VersionedFile getVersionedFile (String name)

参量
name String

退货
VersionedFile

getVersionedFileKeys

public  getVersionedFileKeys ()

退货

getVersionedFiles

public final  getVersionedFiles (BuildInfoKey.BuildInfoFileKey key)

参量
key BuildInfoKey.BuildInfoFileKey

退货

hashCode

public int hashCode ()

退货
int

setBuildBranch

public void setBuildBranch (String branch)

参量
branch String

setBuildFlavor

public void setBuildFlavor (String buildFlavor)

参量
buildFlavor String

setBuildId

public void setBuildId (String buildId)

参量
buildId String

setDeviceSerial

public void setDeviceSerial (String serial)

参量
serial String

setFile

public void setFile (String name, 
                File file, 
                String version)

参量
name String

file File

version String

setFile

public void setFile (BuildInfoKey.BuildInfoFileKey key, 
                File file, 
                String version)

参量
key BuildInfoKey.BuildInfoFileKey

file File

version String

setProperties

public void setProperties (BuildInfoProperties... properties)

参量
properties BuildInfoProperties

setTestTag

public void setTestTag (String testTag)

参量
testTag String

stageRemoteFile

public File stageRemoteFile (String fileName, 
                File workingDir)

参量
fileName String

workingDir File

退货
File

toProto

public BuildInformation.BuildInfo toProto ()

退货
BuildInformation.BuildInfo

toString

public String toString ()

退货
String

受保护的方法

addAllBuildAttributes

protected void addAllBuildAttributes (BuildInfo build)

用于从其他构建复制构建属性,分支和样式的Helper方法。

参量
build BuildInfo

addAllFiles

protected void addAllFiles (BuildInfo build)

用于从另一个版本复制所有文件的Helper方法。

创建到文件的新硬链接,以便每个构建都将具有该文件的唯一文件路径。

参量
build BuildInfo

投掷
创建硬链接时引发异常。

applyBuildProperties

protected boolean applyBuildProperties (VersionedFile origFileConsidered, 
                IBuildInfo build, 
                IBuildInfo receiver)

允许应用一些IBuildInfo.BuildInfoProperties并可能进行其他处理。

参量
origFileConsidered VersionedFile :当前查看的VersionedFile

build IBuildInfo :原始克隆的版本

receiver IBuildInfo :接收信息的版本。

退货
boolean 如果应用了属性,则为true,并且应跳过进一步的处理。否则为假。

getAttributesMultiMap

protected MultiMap<String, String> getAttributesMultiMap ()

退货
MultiMap<String, String>

getVersionedFileMap

protected  getVersionedFileMap ()

退货

getVersionedFileMapFull

protected MultiMap<String, VersionedFile> getVersionedFileMapFull ()

退货
MultiMap<String, VersionedFile>