IncrementalImageUtil

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

Fields'ın oynadığı filmler

public static final DYNAMIC_PARTITIONS_TO_DIFF

Herkese açık kurucular

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

Herkese açık yöntemler

void allowSameBuildFlashing()
void allowUnzipBaseline()
void cleanAfterSetup()

Mantık uygulama işleminin bir kısmını yaparken, kurulumdan hemen sonra dosyaları temizleyebiliriz.

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

Cihazın şu anda anlık görüntü 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(TestInformation testInfo)
boolean updateCompleted()

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

void updateDevice(File currentBootloader, File currentRadio)

Cihazın anlık görüntü mantığını kullanarak güncellenmesini sağlar.

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

Fields'ın oynadığı filmler

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

Herkese açık kurucular

IncrementalImageUtil

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

Parametreler
device ITestDevice

deviceImage File

bootloader File

baseband File

targetImage File

createSnapshot File

applySnapshot boolean

wipeAfterApply boolean

newFlow boolean

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

Herkese açık yöntemler

allowSameBuildFlashing

public void allowSameBuildFlashing ()

allowUnzipBaseline

public void allowUnzipBaseline ()

cleanAfterSetup

public void cleanAfterSetup ()

Uygulama mantığının bir kısmını yaparken, kurulumdan hemen sonra dosyaları temizleyebiliriz.

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

İlerlemeler
File

ilk kullanıma hazırlama

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

Parametreler
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowCrossRelease boolean

allowedTransition

applySnapshot boolean

wipeAfterApply boolean

newFlow boolean

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

İlerlemeler
IncrementalImageUtil

Atışlar
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

İlerlemeler
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

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

Parametreler
device ITestDevice

İlerlemeler
boolean

Atışlar
DeviceNotAvailableException

isSnapshotSupported

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

İlerlemeler
boolean

Atışlar
DeviceNotAvailableException

notifyBasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

notifyBootloaderNeedsRevert

public void notifyBootloaderNeedsRevert ()

teardownDevice

public void teardownDevice (TestInformation testInfo)

Parametreler
testInfo TestInformation

Atışlar
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

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

İlerlemeler
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio)

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

Parametreler
currentBootloader File

currentRadio File

Atışlar
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

public void updateDeviceWithNewFlow (File currentBootloader, 
                File currentRadio)

Parametreler
currentBootloader File

currentRadio File

Atışlar
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

İlerlemeler
boolean