IncrementalImageUtil

public class IncrementalImageUtil
extends Object

java.lang.オブジェクト
com.android.tradefed.util.image.IncrementalImageUtil


増分イメージとデバイスの更新を利用するユーティリティ。

まとめ

田畑

public static final DYNAMIC_PARTITIONS_TO_DIFF

パブリックコンストラクター

IncrementalImageUtil ( ITestDevice device, File deviceImage, File bootloader, File baseband, File targetImage, File createSnapshot, boolean applySnapshot, SnapuserdWaitPhase waitPhase)

パブリックメソッド

void allowSameBuildFlashing ()
File getExtractedTargetDirectory ()
static IncrementalImageUtil initialize ( ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowCrossRelease, boolean applySnapshot, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed ()
static boolean isSnapshotInUse ( ITestDevice device)

デバイスが現在スナップショットを使用しているかどうかを返します。

static boolean isSnapshotSupported ( ITestDevice device, boolean applySnapshot)

スナップショット ロジックを使用してデバイスを更新できるかどうかを返します。

void notifyBasebadNeedsRevert ()
void notifyBootloaderNeedsRevert ()
void teardownDevice ()
boolean updateCompleted ()

更新が完了したかどうかを返します。

void updateDevice (File currentBootloader, File currentRadio)

スナップショット ロジックを使用してデバイスを更新します。

田畑

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

パブリックコンストラクター

IncrementalImageUtil

public IncrementalImageUtil (ITestDevice device, 
                File deviceImage, 
                File bootloader, 
                File baseband, 
                File targetImage, 
                File createSnapshot, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

パラメーター
device ITestDevice

deviceImage File

bootloader File

baseband File

targetImage File

createSnapshot File

applySnapshot boolean

waitPhase SnapuserdWaitPhase

パブリックメソッド

allowSameBuildFlashing

public void allowSameBuildFlashing ()

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

戻り値
File

初期化する

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowCrossRelease, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

パラメーター
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowCrossRelease boolean

applySnapshot boolean

waitPhase SnapuserdWaitPhase

戻り値
IncrementalImageUtil

投げる
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

戻り値
boolean

スナップショットは使用中です

public static boolean isSnapshotInUse (ITestDevice device)

デバイスが現在スナップショットを使用しているかどうかを返します。

パラメーター
device ITestDevice

戻り値
boolean

投げる
DeviceNotAvailableException

スナップショットはサポートされています

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

スナップショット ロジックを使用してデバイスを更新できるかどうかを返します。

パラメーター
device ITestDevice

applySnapshot boolean

戻り値
boolean

投げる
DeviceNotAvailableException

通知BasebadNeeds元に戻す

public void notifyBasebadNeedsRevert ()

通知ブートローダーが必要です元に戻す

public void notifyBootloaderNeedsRevert ()

分解デバイス

public void teardownDevice ()

投げる
DeviceNotAvailableException

更新完了

public boolean updateCompleted ()

更新が完了したかどうかを返します。

戻り値
boolean

デバイスの更新

public void updateDevice (File currentBootloader, 
                File currentRadio)

スナップショット ロジックを使用してデバイスを更新します。

パラメーター
currentBootloader File

currentRadio File

投げる
DeviceNotAvailableException
TargetSetupError