閃爍資源解析器

public class FlashingResourcesParser
extends Object implements IFlashingResourcesParser

java.lang.Object
com.android.tradefed.targetprep.FlashingResourcesParser


一個類,用於解析刷新設備所需的輔助圖像檔案的所需版本。 (例如引導程式、基頻等)

概括

嵌套類

class FlashingResourcesParser.AndroidInfo

Map<String, MultiMap<String, String>>的 typedef 。

interface FlashingResourcesParser.Constraint

過濾接口,旨在允許FlashingResourcesParser忽略它可能使用的某些資源

領域

public static final String BASEBAND_VERSION_KEY

public static final String BOARD_KEY

public static final String BOOTLOADER_VERSION_KEY

public static final String PRODUCT_KEY

公共構造函數

FlashingResourcesParser (File deviceImgZipFile, c) FlashingResourcesParser (File deviceImgZipFile, c)

建立FlashingResourcesParser並讓它解析指定的裝置映像以滿足閃爍要求。

FlashingResourcesParser (File deviceImgZipFile)

建立FlashingResourcesParser並讓它解析指定的裝置映像以滿足閃爍要求。

FlashingResourcesParser (BufferedReader infoReader, c) FlashingResourcesParser (BufferedReader infoReader, c)

使用提供的 AndroidInfo Reader 建構 FlashingResourcesParser

暴露用於單元測試

FlashingResourcesParser (BufferedReader infoReader)

使用提供的 AndroidInfo Reader 建構 FlashingResourcesParser

暴露用於單元測試

公共方法

String getRequiredBasebandVersion ()

取得裝置映像 zip 中指定的所需基頻版本。

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

getRequiredBoards ()

取得裝置映像 zip 中指定的所需板類型。

String getRequiredBootloaderVersion ()

取得裝置映像 zip 中指定的所需開機載入程式版本。

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

String getRequiredImageVersion (String imageVersionKey)

取得裝置映像 zip 中指定的所需自訂映像版本

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

String getRequiredImageVersion (String imageVersionKey, String productName)

取得裝置映像 zip 中指定的所需自訂映像版本。

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

領域

基頻版本金鑰

public static final String BASEBAND_VERSION_KEY

BOARD_KEY

public static final String BOARD_KEY

BOOTLOADER_VERSION_KEY

public static final String BOOTLOADER_VERSION_KEY

產品金鑰

public static final String PRODUCT_KEY

公共構造函數

閃爍資源解析器

public FlashingResourcesParser (File deviceImgZipFile, 
                 c)

建立FlashingResourcesParser並讓它解析指定的裝置映像以滿足閃爍要求。閃爍要求在添加之前必須通過適當的約束(如果存在)。被拒絕的要求將被默默地丟棄。

參數
deviceImgZipFile File :要刷新的updater.zip文件

c :從鍵名稱到Constraint對應。將根據適當的約束(如果有)檢查影像名稱,作為新增的先決條件。可以為 null 以停用過濾。

投擲
TargetSetupError

閃爍資源解析器

public FlashingResourcesParser (File deviceImgZipFile)

建立FlashingResourcesParser並讓它解析指定的裝置映像以滿足閃爍要求。

參數
deviceImgZipFile File :要刷新的updater.zip文件

投擲
TargetSetupError

閃爍資源解析器

public FlashingResourcesParser (BufferedReader infoReader, 
                 c)

使用提供的 AndroidInfo Reader 建構 FlashingResourcesParser

暴露用於單元測試

參數
infoReader BufferedReader :一個ERROR(/BufferedReader)包含要解析的 android-info.txt 的等效內容

c :從鍵名稱到Constraint對應。將根據適當的約束(如果有)檢查影像名稱,作為新增的先決條件。可以為 null 以停用過濾。

閃爍資源解析器

public FlashingResourcesParser (BufferedReader infoReader)

使用提供的 AndroidInfo Reader 建構 FlashingResourcesParser

暴露用於單元測試

參數
infoReader BufferedReader :一個ERROR(/BufferedReader)包含要解析的 android-info.txt 的等效內容

公共方法

取得所需基頻版本

public String getRequiredBasebandVersion ()

取得裝置映像 zip 中指定的所需基頻版本。

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

退貨
String基頻版本,如果未指定則為null

取得所需板

public  getRequiredBoards ()

取得裝置映像 zip 中指定的所需板類型。

退貨
板類型或null (如果未指定)

取得所需的Bootloader版本

public String getRequiredBootloaderVersion ()

取得裝置映像 zip 中指定的所需開機載入程式版本。

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

退貨
String引導程式版本,如果未指定則為null

取得所需影像版本

public String getRequiredImageVersion (String imageVersionKey)

取得裝置映像 zip 中指定的所需自訂映像版本

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

參數
imageVersionKey String : 鏡像版本資訊的預期標識符

退貨
String給定圖像所需的版本,如果未指定則為null

取得所需影像版本

public String getRequiredImageVersion (String imageVersionKey, 
                String productName)

取得裝置映像 zip 中指定的所需自訂映像版本。如果productName不為null ,則此方法將檢查(如果存在,則傳回)為該特定產品指定的映像要求。如果不存在特定於產品的要求,則它將回退到傳回全域要求,或者如果該特定versionKey不存在任何類型的要求,則null

如果列出了多個版本,則取得最新版本並假設版本按字母順序從最舊到最新排序。

參數
imageVersionKey String : 鏡像版本資訊的預期標識符

productName String : 要檢查的特定產品名稱

退貨
String給定圖像所需的版本,如果未指定則為null