GkiDeviceFlashPreparer

public class GkiDeviceFlashPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.GkiDeviceFlashPreparer


使用 android 通用內核通用映像刷新設備的目標準備器。有關詳細信息,請參閱 https://source.android.com/devices/architecture/kernel/android-common。

概括

公共構造函數

GkiDeviceFlashPreparer ()

公共方法

void setUp ( TestInformation testInfo)

void validateGkiBootImg ( ITestDevice device, IBuildInfo buildInfo)

需要驗證 GKI 啟動映像。

受保護的方法

void addHashFooter ( ITestDevice device, IBuildInfo buildInfo, File tmpDir)

需要驗證 GKI 啟動映像。

IHostOptions getHostOptions ()

獲取對IHostOptions的引用

IRunUtil getRunUtil ()

獲取要使用的IRunUtil實例。

void validateGkiBootImg ( ITestDevice device, IBuildInfo buildInfo, File tmpDir)

需要驗證 GKI 啟動映像。

公共構造函數

GkiDeviceFlashPreparer

public GkiDeviceFlashPreparer ()

公共方法

設置

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

投擲
BuildError
DeviceNotAvailableException
TargetSetupError

驗證GkiBootImg

public void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo)

需要驗證 GKI 啟動映像。 (已過時。請使用提供的 tmpDir 致電)

參數
device ITestDevice : ITestDevice

buildInfo IBuildInfo : IBuildInfo構建信息

投擲
TargetSetupError如果沒有有效的 gki boot.img

受保護的方法

addHashFooter

protected void addHashFooter (ITestDevice device, 
                IBuildInfo buildInfo, 
                File tmpDir)

需要驗證 GKI 啟動映像。如果沒有有效的 boot.img,則拋出異常。

參數
device ITestDevice : ITestDevice

buildInfo IBuildInfo : IBuildInfo構建信息

tmpDir File : 臨時目錄ERROR(/File)

投擲
TargetSetupError如果沒有有效的 gki boot.img
DeviceNotAvailableException

獲取主機選項

protected IHostOptions getHostOptions ()

獲取對IHostOptions的引用

退貨
IHostOptions要使用的IHostOptions

獲取運行工具

protected IRunUtil getRunUtil ()

獲取要使用的IRunUtil實例。

退貨
IRunUtil要使用的IRunUtil

驗證GkiBootImg

protected void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo, 
                File tmpDir)

需要驗證 GKI 啟動映像。如果沒有有效的 boot.img,則拋出異常。

參數
device ITestDevice : ITestDevice

buildInfo IBuildInfo : IBuildInfo構建信息

tmpDir File : 臨時目錄ERROR(/File)

投擲
TargetSetupError如果沒有有效的 gki boot.img