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()

アップデートに使用されるデバイス イメージ ファイルを表す 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 ()

パブリック メソッド

setUp

public void setUp (TestInformation testInfo)

パラメータ
testInfo TestInformation

例外
BuildError
DeviceNotAvailableException
TargetSetupError

保護されたメソッド

getDeviceUpdateImage

protected abstract File getDeviceUpdateImage ()

更新に使用するデバイス イメージ ファイルを表す File インスタンスを提供します。

戻り値
File

performDeviceUpdate

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

preUpdateActions

protected abstract void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

デバイスの更新前に実行するアクション。このメソッドは、フラッシュの同時実行制御の外部で呼び出されます。

例外
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError