IncrementalImageUtil

public class IncrementalImageUtil
extends Object

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


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

סיכום

שדות

public static final DYNAMIC_PARTITIONS_TO_DIFF

בנאים ציבוריים

IncrementalImageUtil ( ITestDevice device, File deviceImage, File bootloader, File baseband, File targetImage, File createSnapshot, boolean applySnapshot, SnapuserdWaitPhase waitPhase)

שיטות ציבוריות

void allowSameBuildFlashing ()
File getExtractedTargetDirectory ()
static IncrementalImageUtil initialize ( ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowCrossRelease, boolean applySnapshot, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed ()
static boolean isSnapshotInUse ( ITestDevice device)

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

static boolean isSnapshotSupported ( ITestDevice device, boolean applySnapshot)

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

void notifyBasebadNeedsRevert ()
void notifyBootloaderNeedsRevert ()
void teardownDevice ()
boolean updateCompleted ()

מחזירה אם העדכון הושלם או לא.

void updateDevice (File currentBootloader, File currentRadio)

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

שדות

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

בנאים ציבוריים

IncrementalImageUtil

public IncrementalImageUtil (ITestDevice device, 
                File deviceImage, 
                File bootloader, 
                File baseband, 
                File targetImage, 
                File createSnapshot, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

פרמטרים
device ITestDevice

deviceImage File

bootloader File

baseband File

targetImage File

createSnapshot File

applySnapshot boolean

waitPhase SnapuserdWaitPhase

שיטות ציבוריות

allowSameBuildFlashing

public void allowSameBuildFlashing ()

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

החזרות
File

לְאַתחֵל

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowCrossRelease, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

פרמטרים
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowCrossRelease boolean

applySnapshot boolean

waitPhase SnapuserdWaitPhase

החזרות
IncrementalImageUtil

זורק
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

החזרות
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

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

פרמטרים
device ITestDevice

החזרות
boolean

זורק
DeviceNotAvailableException

isSnapshot נתמך

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

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

פרמטרים
device ITestDevice

applySnapshot boolean

החזרות
boolean

זורק
DeviceNotAvailableException

notifyBasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

notifyBootloaderNeedsRevert

public void notifyBootloaderNeedsRevert ()

teardownDevice

public void teardownDevice ()

זורק
DeviceNotAvailableException

העדכון הושלם

public boolean updateCompleted ()

מחזירה אם העדכון הושלם או לא.

החזרות
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio)

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

פרמטרים
currentBootloader File

currentRadio File

זורק
DeviceNotAvailableException
TargetSetupError