Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
IncrementalImageUtil
public
class
IncrementalImageUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.image.IncrementalImageUtil
|
Một tiện ích để tận dụng bản cập nhật hình ảnh và thiết bị gia tăng.
Tóm tắt
Phương thức công khai |
void
|
allowSameBuildFlashing()
|
void
|
allowUnzipBaseline()
|
void
|
cleanAfterSetup()
Khi thực hiện một số logic áp dụng, chúng ta có thể dọn dẹp các tệp ngay sau khi thiết lập.
|
File
|
getExtractedTargetDirectory()
|
static
IncrementalImageUtil
|
initialize(ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowTrackerlessUpdate, allowedTransition, boolean newFlow, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase, boolean useMerkleTree)
|
boolean
|
isSameBuildFlashingAllowed()
|
static
boolean
|
isSnapshotInUse(ITestDevice device)
Trả về thông tin về việc thiết bị có đang sử dụng ảnh chụp nhanh hay không.
|
static
boolean
|
isSnapshotSupported(ITestDevice device, boolean useMerkle)
Trả về kết quả về việc chúng ta có thể sử dụng logic ảnh chụp nhanh để cập nhật thiết bị hay không
|
void
|
notifyBasebadNeedsRevert()
|
void
|
notifyBootloaderNeedsRevert()
|
void
|
teardownDevice(TestInformation testInfo)
|
boolean
|
updateCompleted()
Trả về thông tin về việc cập nhật đã hoàn tất hay chưa.
|
void
|
updateDevice(File currentBootloader, File currentRadio)
Cập nhật thiết bị bằng logic ảnh chụp nhanh.
|
void
|
updateDeviceWithNewFlow(File currentBootloader, File currentRadio)
|
boolean
|
useUpdatedFlow()
|
Trường
DYNAMIC_PARTITIONS_TO_DIFF
public static final DYNAMIC_PARTITIONS_TO_DIFF
Hàm khởi tạo công khai
IncrementalImageUtil
public IncrementalImageUtil (ITestDevice device,
File targetImage,
File createSnapshot,
boolean newFlow,
boolean updateBootloaderFromUserspace,
SnapuserdWaitPhase waitPhase,
File deviceMerkleTree)
Tham số |
device |
ITestDevice |
targetImage |
File |
createSnapshot |
File |
newFlow |
boolean |
updateBootloaderFromUserspace |
boolean |
waitPhase |
SnapuserdWaitPhase |
deviceMerkleTree |
File |
Phương thức công khai
allowSameBuildFlashing
public void allowSameBuildFlashing ()
allowUnzipBaseline
public void allowUnzipBaseline ()
cleanAfterSetup
public void cleanAfterSetup ()
Khi thực hiện một số logic áp dụng, chúng ta có thể dọn dẹp các tệp ngay sau khi thiết lập.
public File getExtractedTargetDirectory ()
khởi chạy
public static IncrementalImageUtil initialize (ITestDevice device,
IDeviceBuildInfo build,
File createSnapshot,
boolean isIsolatedSetup,
boolean allowTrackerlessUpdate,
allowedTransition,
boolean newFlow,
boolean updateBootloaderFromUserspace,
SnapuserdWaitPhase waitPhase,
boolean useMerkleTree)
Tham số |
device |
ITestDevice |
build |
IDeviceBuildInfo |
createSnapshot |
File |
isIsolatedSetup |
boolean |
allowTrackerlessUpdate |
boolean |
allowedTransition |
|
newFlow |
boolean |
updateBootloaderFromUserspace |
boolean |
waitPhase |
SnapuserdWaitPhase |
useMerkleTree |
boolean |
isSameBuildFlashingAllowed
public boolean isSameBuildFlashingAllowed ()
isSnapshotInUse
public static boolean isSnapshotInUse (ITestDevice device)
Trả về thông tin về việc thiết bị có đang sử dụng ảnh chụp nhanh hay không.
Tham số |
device |
ITestDevice |
isSnapshotSupported
public static boolean isSnapshotSupported (ITestDevice device,
boolean useMerkle)
Trả về kết quả về việc chúng ta có thể sử dụng logic ảnh chụp nhanh để cập nhật thiết bị hay không
Tham số |
device |
ITestDevice |
useMerkle |
boolean |
notifyBasebadNeedsRevert
public void notifyBasebadNeedsRevert ()
notifyBootloaderNeedsRevert
public void notifyBootloaderNeedsRevert ()
public void teardownDevice (TestInformation testInfo)
Tham số |
testInfo |
TestInformation |
updateCompleted
public boolean updateCompleted ()
Trả về thông tin về việc cập nhật đã hoàn tất hay chưa.
updateDevice
public void updateDevice (File currentBootloader,
File currentRadio)
Cập nhật thiết bị bằng logic ảnh chụp nhanh.
Tham số |
currentBootloader |
File |
currentRadio |
File |
updateDeviceWithNewFlow
public void updateDeviceWithNewFlow (File currentBootloader,
File currentRadio)
Tham số |
currentBootloader |
File |
currentRadio |
File |
useUpdatedFlow
public boolean useUpdatedFlow ()
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-03-19 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-03-19 UTC."],[],[]]