KernelDeviceBuildInfo
public
class
KernelDeviceBuildInfo
extends BuildInfo
implements
IDeviceBuildInfo,
IKernelBuildInfo
java.lang.Object | ||
↳ | com.android.tradefed.build.BuildInfo | |
↳ | com.android.tradefed.build.KernelDeviceBuildInfo |
A IBuildInfo
that represents a kernel build paired with a complete Android build.
Summary
Public constructors | |
---|---|
KernelDeviceBuildInfo()
Creates a |
|
KernelDeviceBuildInfo(String buildId, String buildName)
Creates a |
Public methods | |
---|---|
void
|
cleanUp()
Clean up any temporary build files |
IBuildInfo
|
clone()
|
File
|
getBasebandImageFile()
Get the local baseband image file. |
String
|
getBasebandVersion()
Get the baseband version. |
File
|
getBootloaderImageFile()
Get the local bootloader image file. |
String
|
getBootloaderVersion()
Get the bootloader version. |
long
|
getCommitTime()
Get the git commit time. |
String
|
getDeviceBuildFlavor()
Optional method to return the type of the platform build being tested. |
String
|
getDeviceBuildId()
Returns the unique identifier of platform build under test. |
File
|
getDeviceImageFile()
Get the local device image zip file. |
String
|
getDeviceImageVersion()
Get the local device image zip version. |
File
|
getKernelFile()
Get the kernel file. |
String
|
getKernelVersion()
Get the kernel file version. |
File
|
getMkbootimgFile()
Gets the mkbootimg file used to create the kernel image. |
String
|
getMkbootimgVersion()
Gets the mkbootimg version. |
File
|
getOtaPackageFile()
Get the device OTA package zip file. |
String
|
getOtaPackageVersion()
Get the device OTA package zip version. |
File
|
getRamdiskFile()
Gets the ramdisk file used to create the kernel image. |
String
|
getRamdiskVersion()
Gets the ramdisk version. |
String
|
getSha1()
Gets the git sha1. |
String
|
getShortSha1()
Gets the git short sha1. |
File
|
getTestsDir()
Get the local path to the extracted tests.zip file contents. |
String
|
getTestsDirVersion()
Get the extracted tests.zip version. |
File
|
getUserDataImageFile()
Get the local test userdata image file. |
String
|
getUserDataImageVersion()
Get the local test userdata image version. |
void
|
setBasebandImage(File basebandFile, String version)
Set the baseband image for the device build. |
void
|
setBootloaderImageFile(File bootloaderImgFile, String version)
Set the bootloader image for the device build. |
void
|
setCommitTime(long time)
Sets the git commit time for the change. |
void
|
setDeviceBuild(IDeviceBuildInfo deviceBuild)
Sets the device build. |
void
|
setDeviceImageFile(File deviceImageFile, String version)
Set the device system image file to use. |
void
|
setKernelBuild(IKernelBuildInfo kernelBuild)
Sets the kernel build. |
void
|
setKernelFile(File kernelFile, String version)
Set the kernel file |
void
|
setMkbootimgFile(File mkbootimg, String version)
Sets the mkbootimg file used to create the kernel image. |
void
|
setOtaPackageFile(File otaFile, String version)
Set the device OTA package zip file. |
void
|
setRamdiskFile(File ramdisk, String version)
Gets the ramdisk file used to create the kernel image. |
void
|
setSha1(String sha1)
Sets the git sha1. |
void
|
setShortSha1(String shortSha1)
Sets the git short sha1. |
void
|
setTestsDir(File testsDir, String version)
Set local path to the extracted tests.zip file contents. |
void
|
setUserDataImageFile(File userDataFile, String version)
Set the user data image file to use. |
Public constructors
KernelDeviceBuildInfo
public KernelDeviceBuildInfo (String buildId, String buildName)
Creates a KernelBuildInfo
.
Parameters | |
---|---|
buildId |
String : the build id as a combination of the kernel build id and the device build id |
buildName |
String : the build name
|
Public methods
cleanUp
public void cleanUp ()
Clean up any temporary build files
getBasebandImageFile
public File getBasebandImageFile ()
Get the local baseband image file.
Returns | |
---|---|
File |
getBasebandVersion
public String getBasebandVersion ()
Get the baseband version.
Returns | |
---|---|
String |
getBootloaderImageFile
public File getBootloaderImageFile ()
Get the local bootloader image file.
Returns | |
---|---|
File |
getBootloaderVersion
public String getBootloaderVersion ()
Get the bootloader version.
Returns | |
---|---|
String |
getCommitTime
public long getCommitTime ()
Get the git commit time.
Returns | |
---|---|
long |
the git commit time in seconds since the Unix epoch. |
getDeviceBuildFlavor
public String getDeviceBuildFlavor ()
Optional method to return the type of the platform build being tested.
Returns | |
---|---|
String |
getDeviceBuildId
public String getDeviceBuildId ()
Returns the unique identifier of platform build under test. Should never be null. Defaults to
IBuildInfo.UNKNOWN_BUILD_ID
.
Returns | |
---|---|
String |
getDeviceImageFile
public File getDeviceImageFile ()
Get the local device image zip file.
Returns | |
---|---|
File |
getDeviceImageVersion
public String getDeviceImageVersion ()
Get the local device image zip version.
Returns | |
---|---|
String |
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 |
getMkbootimgFile
public File getMkbootimgFile ()
Gets the mkbootimg file used to create the kernel image.
Returns | |
---|---|
File |
getMkbootimgVersion
public String getMkbootimgVersion ()
Gets the mkbootimg version.
Returns | |
---|---|
String |
getOtaPackageFile
public File getOtaPackageFile ()
Get the device OTA package zip file.
Returns | |
---|---|
File |
getOtaPackageVersion
public String getOtaPackageVersion ()
Get the device OTA package zip version.
Returns | |
---|---|
String |
getRamdiskFile
public File getRamdiskFile ()
Gets the ramdisk file used to create the kernel image.
Returns | |
---|---|
File |
getRamdiskVersion
public String getRamdiskVersion ()
Gets the ramdisk version.
Returns | |
---|---|
String |
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 |
getTestsDir
public File getTestsDir ()
Get the local path to the extracted tests.zip file contents.
Returns | |
---|---|
File |
getTestsDirVersion
public String getTestsDirVersion ()
Get the extracted tests.zip version.
Returns | |
---|---|
String |
getUserDataImageFile
public File getUserDataImageFile ()
Get the local test userdata image file.
Returns | |
---|---|
File |
getUserDataImageVersion
public String getUserDataImageVersion ()
Get the local test userdata image version.
Returns | |
---|---|
String |
setBasebandImage
public void setBasebandImage (File basebandFile, String version)
Set the baseband image for the device build.
Parameters | |
---|---|
basebandFile |
File : the baseband image File |
version |
String : the version of the baseband
|
setBootloaderImageFile
public void setBootloaderImageFile (File bootloaderImgFile, String version)
Set the bootloader image for the device build.
Parameters | |
---|---|
bootloaderImgFile |
File : the bootloader image File |
version |
String : the version of the bootloader
|
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.
|
setDeviceBuild
public void setDeviceBuild (IDeviceBuildInfo deviceBuild)
Sets the device build.
Parameters | |
---|---|
deviceBuild |
IDeviceBuildInfo |
setDeviceImageFile
public void setDeviceImageFile (File deviceImageFile, String version)
Set the device system image file to use.
Parameters | |
---|---|
version |
String |
setKernelBuild
public void setKernelBuild (IKernelBuildInfo kernelBuild)
Sets the kernel build.
Parameters | |
---|---|
kernelBuild |
IKernelBuildInfo |
setKernelFile
public void setKernelFile (File kernelFile, String version)
Set the kernel file
Parameters | |
---|---|
version |
String |
setMkbootimgFile
public void setMkbootimgFile (File mkbootimg, String version)
Sets the mkbootimg file used to create the kernel image.
Parameters | |
---|---|
mkbootimg |
File |
version |
String |
setOtaPackageFile
public void setOtaPackageFile (File otaFile, String version)
Set the device OTA package zip file.
Parameters | |
---|---|
otaFile |
File |
version |
String |
setRamdiskFile
public void setRamdiskFile (File ramdisk, String version)
Gets the ramdisk file used to create the kernel image.
Parameters | |
---|---|
ramdisk |
File |
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
|
setTestsDir
public void setTestsDir (File testsDir, String version)
Set local path to the extracted tests.zip file contents.
Parameters | |
---|---|
version |
String |
setUserDataImageFile
public void setUserDataImageFile (File userDataFile, String version)
Set the user data image file to use.
Parameters | |
---|---|
version |
String |
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