DeviceUpdateTargetPreparer

public abstract class DeviceUpdateTargetPreparer
extends DeviceBuildInfoBootStrapper

java.lang.オブジェクト
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

デバイス更新の実行

protected abstract void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

デバイス上でデバイスイメージの更新を実行します

投げる
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

postUpdateアクション

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