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

保護されたメソッド

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