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 the git sha1, used as the build id
shortSha1 the git short sha1
commitTime the git commit time
testTarget the test target
buildName the build name

Public Methods

public IBuildInfo clone ()

public long getCommitTime ()

Get the git commit time.

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

public File getKernelFile ()

Get the kernel file.

Returns
  • the kernel file

public String getKernelVersion ()

Get the kernel file version.

Returns
  • the kernel file version

public String getSha1 ()

Gets the git sha1.

Returns
  • the git sha1

public String getShortSha1 ()

Gets the git short sha1.

Returns
  • the git short sha1

public void setCommitTime (long time)

Sets the git commit time for the change.

Parameters
time the time in seconds since the Unix epoch.

public void setKernelFile (File kernelFile, String version)

Set the kernel file

public void setSha1 (String sha1)

Sets the git sha1.

Parameters
sha1 the git sha1

public void setShortSha1 (String shortSha1)

Sets the git short sha1.

Parameters
shortSha1 the git short sha1