DeviceUpdateTargetPreparer

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)

更新裝置前要執行的動作。

公用建構函式

DeviceUpdateTargetPreparer

public DeviceUpdateTargetPreparer ()

公用方法

設定

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

擲回
BuildError
DeviceNotAvailableException
TargetSetupError

保護方法

getDeviceUpdate 映像檔

protected abstract File getDeviceUpdateImage ()

提供 ERROR(/File) 例項,代表要用於更新的裝置映像檔

傳回
File

執行裝置更新

protected abstract void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

在裝置上執行裝置映像檔更新

擲回
TargetSetupError
DeviceNotAvailableException

postUpdateAction

protected abstract void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

裝置更新後至更新設定步驟前要執行的動作 執行任務系統會在刷新並行控制項之外呼叫這個方法。

擲回
TargetSetupError
DeviceNotAvailableException

更新動作

protected abstract void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

更新裝置前要執行的動作。此方法會在 不斷閃爍的並行控制

擲回
TargetSetupError
DeviceNotAvailableException