設備更新目標準備器

public abstract class DeviceUpdateTargetPreparer
extends DeviceBuildInfoBootStrapper

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper
com.android.tradefed.targetprep.DeviceUpdateTargetPreparer


一個抽象的ITargetPreparer ,它負責使用來自外部源(與構建服務相對)的設備映像文件更新設備的常見步驟。實際的更新機制委託給子類的實現者。

概括

公共構造函數

DeviceUpdateTargetPreparer ()

公共方法

void setUp ( TestInformation testInfo)

受保護的方法

abstract File getDeviceUpdateImage ()

提供表示要用於更新的設備映像文件的ERROR(/File)實例

abstract void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)

在設備上執行設備映像更新

abstract void postUpdateActions (File deviceUpdateImage, ITestDevice device)

在更新設備之後但在執行更新後設置步驟之前要執行的操作。

abstract void preUpdateActions (File deviceUpdateImage, ITestDevice device)

更新設備之前要執行的操作。

公共構造函數

設備更新目標準備器

public DeviceUpdateTargetPreparer ()

公共方法

設置

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

投擲
BuildError
DeviceNotAvailableException
TargetSetupError

受保護的方法

獲取設備更新圖像

protected abstract File getDeviceUpdateImage ()

提供表示要用於更新的設備映像文件的ERROR(/File)實例

退貨
File

執行設備更新

protected abstract void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

在設備上執行設備映像更新

投擲
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

postUpdateActions

protected abstract void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

在更新設備之後但在執行更新後設置步驟之前要執行的操作。此方法將在閃爍並發控制之外調用。

投擲
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

更新前動作

protected abstract void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

更新設備之前要執行的操作。此方法將在閃爍並發控制之外調用。

投擲
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError