to top
public class

KernelBuildInfo

extends BuildInfo
implements IKernelBuildInfo
java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.KernelBuildInfo

Class Overview

A IBuildInfo that represents a kernel build.

Summary

[Expand]
Inherited Constants
From interface com.android.tradefed.build.IBuildInfo
Public Constructors
KernelBuildInfo()
Creates a KernelBuildInfo.
KernelBuildInfo(String sha1, String shortSha1, long commitTime, String testTarget, String buildName)
Creates a KernelBuildInfo.
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.
[Expand]
Inherited Methods
From class com.android.tradefed.build.BuildInfo
From class java.lang.Object
From interface com.android.tradefed.build.IBuildInfo
From interface com.android.tradefed.build.IKernelBuildInfo

Public Constructors

public KernelBuildInfo ()

Creates a KernelBuildInfo.

public KernelBuildInfo (String sha1, String shortSha1, long commitTime, String testTarget, 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
testTarget String: the test target
buildName String: the build name

Public Methods

public IBuildInfo clone ()

Returns
IBuildInfo

public long getCommitTime ()

Get the git commit time.

Returns
long the git commit time in seconds since the Unix epoch.

public File getKernelFile ()

Get the kernel file.

Returns
File the kernel file

public String getKernelVersion ()

Get the kernel file version.

Returns
String the kernel file version

public String getSha1 ()

Gets the git sha1.

Returns
String the git sha1

public String getShortSha1 ()

Gets the git short sha1.

Returns
String the git short sha1

public void setCommitTime (long time)

Sets the git commit time for the change.

Parameters
time long: the time in seconds since the Unix epoch.

public void setKernelFile (File kernelFile, String version)

Set the kernel file

Parameters
version String

public void setSha1 (String sha1)

Sets the git sha1.

Parameters
sha1 String: the git sha1

public void setShortSha1 (String shortSha1)

Sets the git short sha1.

Parameters
shortSha1 String: the git short sha1