1 /* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.tradefed.build; 17 18 import java.io.File; 19 20 /** 21 * A {@link IBuildInfo} that represents a kernel build. 22 */ 23 public interface IKernelBuildInfo extends IBuildInfo { 24 25 /** 26 * Get the kernel file. 27 * 28 * @return the kernel file 29 */ 30 public File getKernelFile(); 31 32 /** 33 * Get the kernel file version. 34 * 35 * @return the kernel file version 36 */ 37 public String getKernelVersion(); 38 39 /** 40 * Set the kernel file 41 * 42 * @param kernelFile 43 */ 44 public void setKernelFile(File kernelFile, String version); 45 46 /** 47 * Get the git commit time. 48 * 49 * @return the git commit time in seconds since the Unix epoch. 50 */ 51 public long getCommitTime(); 52 53 /** 54 * Sets the git commit time for the change. 55 * 56 * @param time the time in seconds since the Unix epoch. 57 */ 58 public void setCommitTime(long time); 59 60 /** 61 * Gets the git sha1. 62 * 63 * @return the git sha1 64 */ 65 public String getSha1(); 66 67 /** 68 * Sets the git sha1. 69 * 70 * @param sha1 the git sha1 71 */ 72 public void setSha1(String sha1); 73 74 /** 75 * Gets the git short sha1. 76 * 77 * @return the git short sha1 78 */ 79 public String getShortSha1(); 80 81 /** 82 * Sets the git short sha1. 83 * 84 * @param shortSha1 the git short sha1 85 */ 86 public void setShortSha1(String shortSha1); 87 } 88