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)

Returns whether or not we can use the snapshot logic to update the device

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

初始化

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