KernelBuildInfo
public
class
KernelBuildInfo
extends BuildInfo
implements
IKernelBuildInfo
java.lang.Object | ||
↳ | com.android.tradefed.build.BuildInfo | |
↳ | com.android.tradefed.build.KernelBuildInfo |
A IBuildInfo
that represents a kernel build.
Summary
Public constructors | |
---|---|
KernelBuildInfo()
Creates a |
|
KernelBuildInfo(String sha1, String shortSha1, long commitTime, String buildName)
Creates a |
Public methods | |
---|---|
IBuildInfo
|
clone()
|
long
|
getCommitTime()
Get the git commit time. |
File
|
getKernelFile()
Get the kernel file. |
String
|
getKernelVersion()
Get the kernel file version. |
String
|
getSha1()
Gets the git sha1. |
String
|
getShortSha1()
Gets the git short sha1. |
void
|
setCommitTime(long time)
Sets the git commit time for the change. |
void
|
setKernelFile(File kernelFile, String version)
Set the kernel file |
void
|
setSha1(String sha1)
Sets the git sha1. |
void
|
setShortSha1(String shortSha1)
Sets the git short sha1. |
Public constructors
KernelBuildInfo
public KernelBuildInfo (String sha1, String shortSha1, long commitTime, String buildName)
Creates a KernelBuildInfo
.
Parameters | |
---|---|
sha1 |
String : the git sha1, used as the build id |
shortSha1 |
String : the git short sha1 |
commitTime |
long : the git commit time |
buildName |
String : the build name
|
Public methods
getCommitTime
public long getCommitTime ()
Get the git commit time.
Returns | |
---|---|
long |
the git commit time in seconds since the Unix epoch. |
getKernelFile
public File getKernelFile ()
Get the kernel file.
Returns | |
---|---|
File |
the kernel file |
getKernelVersion
public String getKernelVersion ()
Get the kernel file version.
Returns | |
---|---|
String |
the kernel file version |
getSha1
public String getSha1 ()
Gets the git sha1.
Returns | |
---|---|
String |
the git sha1 |
getShortSha1
public String getShortSha1 ()
Gets the git short sha1.
Returns | |
---|---|
String |
the git short sha1 |
setCommitTime
public void setCommitTime (long time)
Sets the git commit time for the change.
Parameters | |
---|---|
time |
long : the time in seconds since the Unix epoch.
|
setKernelFile
public void setKernelFile (File kernelFile, String version)
Set the kernel file
Parameters | |
---|---|
version |
String |
setSha1
public void setSha1 (String sha1)
Sets the git sha1.
Parameters | |
---|---|
sha1 |
String : the git sha1
|
setShortSha1
public void setShortSha1 (String shortSha1)
Sets the git short sha1.
Parameters | |
---|---|
shortSha1 |
String : the git short sha1
|
Interfaces
Classes
- AppBuildInfo
- AppDeviceBuildInfo
- BootstrapBuildProvider
- BuildInfo
- BuildInfoKey
- BuildSerializedVersion
- DeviceBuildDescriptor
- DeviceBuildInfo
- DeviceFolderBuildInfo
- ExistingBuildProvider
- FileDownloadCache
- FileDownloadCacheFactory
- FileDownloadCacheWrapper
- FolderBuildInfo
- KernelBuildInfo
- KernelDeviceBuildInfo
- LocalAppBuildProvider
- LocalDeviceBuildProvider
- LocalFolderBuildProvider
- LocalSdkBuildProvider
- OtaDeviceBuildInfo
- OtatoolsBuildInfo
- OtaToolsDeviceBuildInfo
- OtaZipfileBuildProvider
- SdkBuildInfo
- SdkFolderBuildInfo
- StubBuildProvider
- VersionedFile
Enums
Exceptions