IncrementalImageUtil

public class IncrementalImageUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.image.IncrementalImageUtil


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

概要

フィールド

public static final DYNAMIC_PARTITIONS_TO_DIFF

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

IncrementalImageUtil(ITestDevice device, File targetImage, File createSnapshot, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase, File deviceMerkleTree)

パブリック メソッド

void allowSameBuildFlashing()
void cleanAfterSetup()

適用ロジックの一部を実行する際に、セットアップ直後にファイルをクリーンアップできます。

File getExtractedTargetDirectory()
static IncrementalImageUtil initialize(ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowTrackerlessUpdate, allowedTransition, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed()
static boolean isSnapshotInUse(ITestDevice device)

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

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

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

void setSkipBootloaderVersionCheck(boolean skipBootloaderVersionCheck)
void teardownDevice(TestInformation testInfo)
boolean updateCompleted()

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

void updateDevice(File currentBootloader, File currentRadio)

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

void updateDeviceWithNewFlow(File currentBootloader, File currentRadio)
boolean useUpdatedFlow()

フィールド

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

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

IncrementalImageUtil

public IncrementalImageUtil (ITestDevice device, 
                File targetImage, 
                File createSnapshot, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase, 
                File deviceMerkleTree)

パラメータ
device ITestDevice

targetImage File

createSnapshot File

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

deviceMerkleTree File

パブリック メソッド

allowSameBuildFlashing

public void allowSameBuildFlashing ()

cleanAfterSetup

public void cleanAfterSetup ()

適用ロジックの一部を実行する際に、セットアップ直後にファイルをクリーンアップできます。

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

戻り値
File

initialize

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowTrackerlessUpdate, 
                 allowedTransition, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase)

パラメータ
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

戻り値
IncrementalImageUtil

例外
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

戻り値
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

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

パラメータ
device ITestDevice

戻り値
boolean

例外
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean useMerkle)

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

パラメータ
device ITestDevice

useMerkle boolean

戻り値
boolean

例外
DeviceNotAvailableException

setSkipBootloaderVersionCheck

public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)

パラメータ
skipBootloaderVersionCheck boolean

teardownDevice

public void teardownDevice (TestInformation testInfo)

パラメータ
testInfo TestInformation

例外
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

アップデートが完了したかどうかを返します。

戻り値
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio)

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

パラメータ
currentBootloader File

currentRadio File

例外
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

public void updateDeviceWithNewFlow (File currentBootloader, 
                File currentRadio)

パラメータ
currentBootloader File

currentRadio File

例外
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

戻り値
boolean