Google is committed to advancing racial equity for Black communities. See how.
本頁面由 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

public String getBuildBranch ()

退貨
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

549

參量
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

第65章

參量
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>