增量图像实用程序

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 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

公共构造函数

增量图像实用程序

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

公共方法

允许SameBuildFlashing

public void allowSameBuildFlashing ()

获取提取的目标目录

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

isSameBuildFlashing允许

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

通知BasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

通知Bootloader需要恢复

public void notifyBootloaderNeedsRevert ()

拆解设备

public void teardownDevice ()

投掷
DeviceNotAvailableException

更新完成

public boolean updateCompleted ()

返回更新是否完成。

退货
boolean

更新设备

public void updateDevice (File currentBootloader, 
                File currentRadio)

使用快照逻辑更新设备。

参数
currentBootloader File

currentRadio File

投掷
DeviceNotAvailableException
TargetSetupError