IncrementalImageUtil

public class IncrementalImageUtil
extends Object

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


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

סיכום

שדות

public static final Set<String> 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, Set<String> allowedTransition, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed()
static boolean isSnapshotInUse(ITestDevice device)

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

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

מחזירה אם אפשר להשתמש בלוגיקה של ה-snapshot כדי לעדכן את המכשיר

void setSkipBasebandVersionCheck(boolean skipBasebandVersionCheck)
void setSkipBootloaderVersionCheck(boolean skipBootloaderVersionCheck)
void teardownDevice(TestInformation testInfo)
boolean updateCompleted()

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

void updateDevice(File currentBootloader, File currentRadio, File currentTrusty)

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

void updateDeviceWithNewFlow(File currentBootloader, File currentRadio, File currentTrusty)
boolean useUpdatedFlow()

שדות

DYNAMIC_PARTITIONS_TO_DIFF

public static final Set<String> 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, 
                Set<String> allowedTransition, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase)

פרמטרים
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition Set

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

החזרות
IncrementalImageUtil

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

החזרות
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

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

פרמטרים
device ITestDevice

החזרות
boolean

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean useMerkle)

מחזירה אם אפשר להשתמש בלוגיקה של ה-snapshot כדי לעדכן את המכשיר

פרמטרים
device ITestDevice

useMerkle boolean

החזרות
boolean

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

setSkipBasebandVersionCheck

public void setSkipBasebandVersionCheck (boolean skipBasebandVersionCheck)

פרמטרים
skipBasebandVersionCheck boolean

setSkipBootloaderVersionCheck

public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)

פרמטרים
skipBootloaderVersionCheck boolean

teardownDevice

public void teardownDevice (TestInformation testInfo)

פרמטרים
testInfo TestInformation

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

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

החזרות
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio, 
                File currentTrusty)

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

פרמטרים
currentBootloader File

currentRadio File

currentTrusty File

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

public void updateDeviceWithNewFlow (File currentBootloader, 
                File currentRadio, 
                File currentTrusty)

פרמטרים
currentBootloader File

currentRadio File

currentTrusty File

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

החזרות
boolean