增量圖像實用程式

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