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

Trường

public static final DYNAMIC_PARTITIONS_TO_DIFF

Hàm khởi tạo công khai

IncrementalImageUtil(ITestDevice device, File targetImage, File createSnapshot, boolean newFlow, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase, File deviceMerkleTree)

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.

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

Giá trị trả về
File

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

Giá trị trả về
IncrementalImageUtil

Gửi
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

Giá trị trả về
boolean

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

Giá trị trả về
boolean

Gửi
DeviceNotAvailableException

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

Giá trị trả về
boolean

Gửi
DeviceNotAvailableException

notifyBasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

notifyBootloaderNeedsRevert

public void notifyBootloaderNeedsRevert ()

teardownDevice

public void teardownDevice (TestInformation testInfo)

Tham số
testInfo TestInformation

Gửi
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

Trả về thông tin về việc cập nhật đã hoàn tất hay chưa.

Giá trị trả về
boolean

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

Gửi
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

public void updateDeviceWithNewFlow (File currentBootloader, 
                File currentRadio)

Tham số
currentBootloader File

currentRadio File

Gửi
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

Giá trị trả về
boolean