透過集合功能整理內容
你可以依據偏好儲存及分類內容。
增量映像檔公用程式
public
class
IncrementalImageUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.image.IncrementalImageUtil
|
可用來利用增量映像檔和裝置更新的工具。
摘要
公用方法 |
void
|
allowSameBuildFlashing()
|
void
|
allowUnzipBaseline()
|
void
|
cleanAfterSetup()
執行部分套用邏輯時,可在設定完成後立即清除檔案。
|
File
|
getExtractedTargetDirectory()
|
static
IncrementalImageUtil
|
initialize(ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowCrossRelease, MultiMap<String, String> allowedbranchTransition, boolean applySnapshot, boolean wipeAfterApply, boolean newFlow, SnapuserdWaitPhase waitPhase)
|
boolean
|
isSameBuildFlashingAllowed()
|
static
boolean
|
isSnapshotInUse(ITestDevice device)
傳回裝置目前是否使用快照。
|
static
boolean
|
isSnapshotSupported(ITestDevice device, boolean applySnapshot)
會傳回是否可以使用快照邏輯更新裝置
|
void
|
notifyBasebadNeedsRevert()
|
void
|
notifyBootloaderNeedsRevert()
|
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
公用建構函式
增量映像檔公用程式
public IncrementalImageUtil (ITestDevice device,
File deviceImage,
File bootloader,
File baseband,
File targetImage,
File createSnapshot,
boolean applySnapshot,
boolean wipeAfterApply,
boolean newFlow,
SnapuserdWaitPhase waitPhase)
參數 |
device |
ITestDevice |
deviceImage |
File |
bootloader |
File |
baseband |
File |
targetImage |
File |
createSnapshot |
File |
applySnapshot |
boolean |
wipeAfterApply |
boolean |
newFlow |
boolean |
waitPhase |
SnapuserdWaitPhase |
公用方法
allowSameBuildFlashing
public void allowSameBuildFlashing ()
allowUnzipBaseline
public void allowUnzipBaseline ()
cleanAfterSetup
public void cleanAfterSetup ()
執行部分套用邏輯時,可在設定完成後立即清除檔案。
public File getExtractedTargetDirectory ()
初始化
public static IncrementalImageUtil initialize (ITestDevice device,
IDeviceBuildInfo build,
File createSnapshot,
boolean isIsolatedSetup,
boolean allowCrossRelease,
MultiMap<String, String> allowedbranchTransition,
boolean applySnapshot,
boolean wipeAfterApply,
boolean newFlow,
SnapuserdWaitPhase waitPhase)
參數 |
device |
ITestDevice |
build |
IDeviceBuildInfo |
createSnapshot |
File |
isIsolatedSetup |
boolean |
allowCrossRelease |
boolean |
allowedbranchTransition |
MultiMap |
applySnapshot |
boolean |
wipeAfterApply |
boolean |
newFlow |
boolean |
waitPhase |
SnapuserdWaitPhase |
isSameBuildFlashingAllowed
public boolean isSameBuildFlashingAllowed ()
isSnapshotInUse
public static boolean isSnapshotInUse (ITestDevice device)
傳回裝置目前是否使用快照。
支援快照
public static boolean isSnapshotSupported (ITestDevice device,
boolean applySnapshot)
傳回是否可使用快照邏輯更新裝置
參數 |
device |
ITestDevice |
applySnapshot |
boolean |
notifyBasebadNeedsRevert
public void notifyBasebadNeedsRevert ()
notifyBootloaderNeedsRevert
public void notifyBootloaderNeedsRevert ()
public void teardownDevice (TestInformation testInfo)
參數 |
testInfo |
TestInformation |
更新完成
public boolean updateCompleted ()
傳回更新是否完成的結果。
updateDevice
public void updateDevice (File currentBootloader,
File currentRadio)
使用快照邏輯更新裝置。
參數 |
currentBootloader |
File |
currentRadio |
File |
updateDeviceWithNewFlow (更新裝置與新流程)
public void updateDeviceWithNewFlow (File currentBootloader,
File currentRadio)
參數 |
currentBootloader |
File |
currentRadio |
File |
useUpdatedFlow
public boolean useUpdatedFlow ()
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2024-11-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-11-04 (世界標準時間)。"],[],[]]