DeviceBuildInfo
  public
  
  
  
  class
  DeviceBuildInfo
  
  
  
  
    extends BuildInfo
  
  
  
  
  
      implements
      
        IDeviceBuildInfo
      
  
  
| java.lang.Object | ||
| ↳ | com.android.tradefed.build.BuildInfo | |
| ↳ | com.android.tradefed.build.DeviceBuildInfo | |
代表完整 Android 裝置版本和 (選用) 其測試的 IBuildInfo。
摘要
| 公用建構函式 | |
|---|---|
| 
      DeviceBuildInfo()
       | |
| 
      DeviceBuildInfo(BuildInfo buildInfo)
       | |
| 
      DeviceBuildInfo(String buildId, String buildTargetName)
       | |
| 公用方法 | |
|---|---|
| 
        
        
        
        
        
        File | 
      getBasebandImageFile()
      取得本機基頻映像檔。 | 
| 
        
        
        
        
        
        String | 
      getBasebandVersion()
      取得基頻版本。 | 
| 
        
        
        
        
        
        File | 
      getBootloaderImageFile()
      取得本機引導程式映像檔檔案。 | 
| 
        
        
        
        
        
        String | 
      getBootloaderVersion()
      取得系統啟動載入程式版本。 | 
| 
        
        
        
        
        
        String | 
      getDeviceBuildFlavor()
      用於傳回測試平台版本類型的選用方法。 | 
| 
        
        
        
        
        
        String | 
      getDeviceBuildId()
      傳回測試中平台版本的專屬 ID。 | 
| 
        
        
        
        
        
        File | 
      getDeviceImageFile()
      取得本機裝置映像檔 zip 檔案。 | 
| 
        
        
        
        
        
        String | 
      getDeviceImageVersion()
      取得本機裝置映像檔的 zip 版本。 | 
| 
        
        
        
        
        
        File | 
      getMkbootimgFile()
      取得用於建立核心映像檔的 mkbootimg 檔案。 | 
| 
        
        
        
        
        
        String | 
      getMkbootimgVersion()
      取得 mkbootimg 版本。 | 
| 
        
        
        
        
        
        File | 
      getOtaPackageFile()
      取得裝置 OTA 套件 ZIP 檔案。 | 
| 
        
        
        
        
        
        String | 
      getOtaPackageVersion()
      取得裝置 OTA 套件 ZIP 版本。 | 
| 
        
        
        
        
        
        File | 
      getRamdiskFile()
      取得用於建立核心映像檔的 RAM 磁碟檔案。 | 
| 
        
        
        
        
        
        String | 
      getRamdiskVersion()
      取得 ramdisk 版本。 | 
| 
        
        
        
        
        
        File | 
      getTestsDir()
      取得已解壓縮的 tests.zip 檔案內容的本機路徑。 | 
| 
        
        
        
        
        
        String | 
      getTestsDirVersion()
      取得已解壓縮的 tests.zip 版本。 | 
| 
        
        
        
        
        
        File | 
      getUserDataImageFile()
      取得本機測試 userdata 映像檔。 | 
| 
        
        
        
        
        
        String | 
      getUserDataImageVersion()
      取得本機測試使用者資料映像檔版本。 | 
| 
        
        
        
        
        
        void | 
      setBasebandImage(File basebandFile, String version)
      為裝置版本設定基頻映像檔。 | 
| 
        
        
        
        
        
        void | 
      setBootloaderImageFile(File bootloaderImgFile, String version)
      為裝置版本設定系統啟動載入程式映像檔。 | 
| 
        
        
        
        
        
        void | 
      setDeviceBuildFlavor(String deviceBuildFlavor)
      如果與  | 
| 
        
        
        
        
        
        void | 
      setDeviceImageFile(File deviceImageFile, String version)
      設定要使用的裝置系統映像檔。 | 
| 
        
        
        
        
        
        void | 
      setMkbootimgFile(File mkbootimg, String version)
      設定用於建立核心映像檔的 mkbootimg 檔案。 | 
| 
        
        
        
        
        
        void | 
      setOtaPackageFile(File otaFile, String version)
      設定裝置 OTA 套件 ZIP 檔案。 | 
| 
        
        
        
        
        
        void | 
      setRamdiskFile(File ramdisk, String version)
      取得用於建立核心映像檔的 RAM 磁碟檔案。 | 
| 
        
        
        
        
        
        void | 
      setTestsDir(File testsDir, String version)
      將本機路徑設為已解壓縮的 tests.zip 檔案內容。 | 
| 
        
        
        
        
        
        void | 
      setUserDataImageFile(File userDataFile, String version)
      設定要使用的使用者資料映像檔。 | 
公用建構函式
DeviceBuildInfo
public DeviceBuildInfo ()
DeviceBuildInfo
public DeviceBuildInfo (String buildId, 
                String buildTargetName)| 參數 | |
|---|---|
| buildId | String | 
| buildTargetName | String | 
公用方法
getBasebandImageFile
public File getBasebandImageFile ()
取得本機基頻映像檔。
| 傳回 | |
|---|---|
| File | |
getBasebandVersion
public String getBasebandVersion ()
取得基頻版本。
| 傳回 | |
|---|---|
| String | |
getBootloaderImageFile
public File getBootloaderImageFile ()
取得本機 Bootloader 映像檔。
| 傳回 | |
|---|---|
| File | |
getBootloaderVersion
public String getBootloaderVersion ()
取得系統啟動載入程式版本。
| 傳回 | |
|---|---|
| String | |
getDeviceBuildFlavor
public String getDeviceBuildFlavor ()
用於傳回測試平台版本類型的選用方法。
| 傳回 | |
|---|---|
| String | |
getDeviceBuildId
public String getDeviceBuildId ()
傳回測試中平台版本的專屬 ID。不得為空值。預設值為 IBuildInfo.UNKNOWN_BUILD_ID。
| 傳回 | |
|---|---|
| String | getDeviceImageVersion()if notnull, elseIBuildInfo.UNKNOWN_BUILD_ID | 
另請參閱:
getDeviceImageFile
public File getDeviceImageFile ()
取得本機裝置映像檔 zip 檔案。
| 傳回 | |
|---|---|
| File | |
getDeviceImageVersion
public String getDeviceImageVersion ()
取得本機裝置映像檔的 zip 版本。
| 傳回 | |
|---|---|
| String | |
getMkbootimgFile
public File getMkbootimgFile ()
取得用於建立核心映像檔的 mkbootimg 檔案。
| 傳回 | |
|---|---|
| File | |
getMkbootimgVersion
public String getMkbootimgVersion ()
取得 mkbootimg 版本。
| 傳回 | |
|---|---|
| String | |
getOtaPackageFile
public File getOtaPackageFile ()
取得裝置 OTA 套件 ZIP 檔案。
| 傳回 | |
|---|---|
| File | |
getOtaPackageVersion
public String getOtaPackageVersion ()
取得裝置 OTA 套件 ZIP 版本。
| 傳回 | |
|---|---|
| String | |
getRamdiskFile
public File getRamdiskFile ()
取得用於建立核心映像檔的 RAM 磁碟檔案。
| 傳回 | |
|---|---|
| File | |
getRamdiskVersion
public String getRamdiskVersion ()
取得 RAMDISK 版本。
| 傳回 | |
|---|---|
| String | |
getTestsDir
public File getTestsDir ()
取得已擷取的 tests.zip 檔案內容的本機路徑。
| 傳回 | |
|---|---|
| File | |
getTestsDirVersion
public String getTestsDirVersion ()
取得已解壓縮的 tests.zip 版本。
| 傳回 | |
|---|---|
| String | |
getUserDataImageFile
public File getUserDataImageFile ()
取得本機測試 userdata 映像檔。
| 傳回 | |
|---|---|
| File | |
getUserDataImageVersion
public String getUserDataImageVersion ()
取得本機測試使用者資料映像檔版本。
| 傳回 | |
|---|---|
| String | |
setBasebandImage
public void setBasebandImage (File basebandFile, 
                String version)為裝置版本設定基頻映像檔。
| 參數 | |
|---|---|
| basebandFile | File:基頻圖像ERROR(/File) | 
| version | String:基頻版本 | 
setBootloaderImageFile
public void setBootloaderImageFile (File bootloaderImgFile, 
                String version)為裝置版本設定系統啟動載入程式映像檔。
| 參數 | |
|---|---|
| bootloaderImgFile | File:bootloader 映像檔ERROR(/File) | 
| version | String:系統啟動載入程式版本 | 
setDeviceBuildFlavor
public void setDeviceBuildFlavor (String deviceBuildFlavor)
如果與 IBuildInfo.setBuildFlavor(String) 不同,請為建構資訊的裝置部分設定建構版本。
| 參數 | |
|---|---|
| deviceBuildFlavor | String:裝置版本的變種 | 
setDeviceImageFile
public void setDeviceImageFile (File deviceImageFile, 
                String version)設定要使用的裝置系統映像檔。
| 參數 | |
|---|---|
| version | String | 
setMkbootimgFile
public void setMkbootimgFile (File mkbootimg, 
                String version)設定用於建立核心映像檔的 mkbootimg 檔案。
| 參數 | |
|---|---|
| mkbootimg | File | 
| version | String | 
setOtaPackageFile
public void setOtaPackageFile (File otaFile, 
                String version)設定裝置 OTA 套件 ZIP 檔案。
| 參數 | |
|---|---|
| otaFile | File | 
| version | String | 
setRamdiskFile
public void setRamdiskFile (File ramdisk, 
                String version)取得用於建立核心映像檔的 RAM 磁碟檔案。
| 參數 | |
|---|---|
| ramdisk | File | 
| version | String | 
setTestsDir
public void setTestsDir (File testsDir, 
                String version)將本機路徑設為已解壓縮的 tests.zip 檔案內容。
| 參數 | |
|---|---|
| version | String | 
setUserDataImageFile
public void setUserDataImageFile (File userDataFile, 
                String version)設定要使用的使用者資料映像檔。
| 參數 | |
|---|---|
| version | String | 
