Artımlı GörüntüUtil

public class IncrementalImageUtil
extends Object

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


Artımlı görüntü ve cihaz güncellemesinden yararlanan bir yardımcı program.

Özet

Alanlar

public static final DYNAMIC_PARTITIONS_TO_DIFF

Kamu inşaatçıları

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

Genel yöntemler

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)

Cihazın o anda anlık görüntüleri kullanıp kullanmadığını döndürür.

static boolean isSnapshotSupported ( ITestDevice device, boolean applySnapshot)

Cihazı güncellemek için anlık görüntü mantığını kullanıp kullanamayacağımızı döndürür

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

Güncellemenin tamamlanıp tamamlanmadığını döndürür.

void updateDevice (File currentBootloader, File currentRadio)

Anlık görüntü mantığını kullanarak cihazı günceller.

Alanlar

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

Kamu inşaatçıları

Artımlı GörüntüUtil

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

Parametreler
device ITestDevice

deviceImage File

bootloader File

baseband File

targetImage File

createSnapshot File

applySnapshot boolean

waitPhase SnapuserdWaitPhase

Genel yöntemler

izinSameBuildFlashing

public void allowSameBuildFlashing ()

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

İadeler
File

başlatmak

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

Parametreler
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowCrossRelease boolean

applySnapshot boolean

waitPhase SnapuserdWaitPhase

İadeler
IncrementalImageUtil

Atar
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

İadeler
boolean

SnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

Cihazın o anda anlık görüntüleri kullanıp kullanmadığını döndürür.

Parametreler
device ITestDevice

İadeler
boolean

Atar
DeviceNotAvailableException

SnapshotDestekleniyor

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

Cihazı güncellemek için anlık görüntü mantığını kullanıp kullanamayacağımızı döndürür

Parametreler
device ITestDevice

applySnapshot boolean

İadeler
boolean

Atar
DeviceNotAvailableException

notifyBasebadNeedsGeri Döndür

public void notifyBasebadNeedsRevert ()

Önyükleyici İhtiyaçlarını BildirGeri Döndür

public void notifyBootloaderNeedsRevert ()

sökmeCihaz

public void teardownDevice ()

Atar
DeviceNotAvailableException

Güncelleme tamamlandı

public boolean updateCompleted ()

Güncellemenin tamamlanıp tamamlanmadığını döndürür.

İadeler
boolean

güncellemeCihaz

public void updateDevice (File currentBootloader, 
                File currentRadio)

Anlık görüntü mantığını kullanarak cihazı günceller.

Parametreler
currentBootloader File

currentRadio File

Atar
DeviceNotAvailableException
TargetSetupError