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

パブリック メソッド

setUp

public void setUp (TestInformation testInfo)

パラメータ
testInfo TestInformation

例外
BuildError
DeviceNotAvailableException
TargetSetupError

保護されたメソッド

getDeviceUpdateImage

protected abstract File getDeviceUpdateImage ()

更新に使用するデバイス イメージ ファイルを表す ERROR(/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