IncrementalImageUtil

public class IncrementalImageUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.image.IncrementalImageUtil


כלי לשימוש בעדכון מצטבר של תמונה ומכשיר.

סיכום

שדות

public static final DYNAMIC_PARTITIONS_TO_DIFF

Constructors ציבוריים

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

‫methods ציבוריים

void allowSameBuildFlashing()
void cleanAfterSetup()

כשמפעילים חלק מהלוגיקה של ההחלה, אפשר לנקות את הקבצים מיד אחרי ההגדרה.

File getExtractedTargetDirectory()
static IncrementalImageUtil initialize(ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowTrackerlessUpdate, allowedTransition, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed()
static boolean isSnapshotInUse(ITestDevice device)

הפונקציה מחזירה את הערך True אם המכשיר משתמש כרגע בתמונות מצב, ואת הערך False אם לא.

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

הפונקציה מחזירה את הערך true אם אפשר להשתמש בלוגיקה של ה-snapshot כדי לעדכן את המכשיר, ואת הערך false אם אי אפשר.

void setSkipBootloaderVersionCheck(boolean skipBootloaderVersionCheck)
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

Constructors ציבוריים

IncrementalImageUtil

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

פרמטרים
device ITestDevice

targetImage File

createSnapshot File

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

deviceMerkleTree File

‫methods ציבוריים

allowSameBuildFlashing

public void allowSameBuildFlashing ()

cleanAfterSetup

public void cleanAfterSetup ()

כשמפעילים חלק מהלוגיקה של ההחלה, אפשר לנקות את הקבצים מיד אחרי ההגדרה.

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

החזרות
File

אתחול

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowTrackerlessUpdate, 
                 allowedTransition, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase)

פרמטרים
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

החזרות
IncrementalImageUtil

זריקות
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

החזרות
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

הפונקציה מחזירה את הערך True אם המכשיר משתמש כרגע בתמונות מצב, ואת הערך False אם לא.

פרמטרים
device ITestDevice

החזרות
boolean

זריקות
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean useMerkle)

הפונקציה מחזירה את הערך true אם אפשר להשתמש בלוגיקה של ה-snapshot כדי לעדכן את המכשיר, ואת הערך false אם אי אפשר.

פרמטרים
device ITestDevice

useMerkle boolean

החזרות
boolean

זריקות
DeviceNotAvailableException

setSkipBootloaderVersionCheck

public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)

פרמטרים
skipBootloaderVersionCheck boolean

teardownDevice

public void teardownDevice (TestInformation testInfo)

פרמטרים
testInfo TestInformation

זריקות
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

הפונקציה מחזירה תשובה אם העדכון הושלם או לא.

החזרות
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio)

המכשיר מתעדכן באמצעות הלוגיקה של התמונה.

פרמטרים
currentBootloader File

currentRadio File

זריקות
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

public void updateDeviceWithNewFlow (File currentBootloader, 
                File currentRadio)

פרמטרים
currentBootloader File

currentRadio File

זריקות
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

החזרות
boolean