IncrementalImageUtil

public class IncrementalImageUtil
extends Object

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


Artımlı görüntü ve cihaz güncellemesinden yararlanmak için kullanılan bir yardımcı program.

Özet

Alanlar

public static final Set<String> DYNAMIC_PARTITIONS_TO_DIFF

Herkese açık oluşturucular

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

Herkese açık yöntemler

void allowSameBuildFlashing()
void cleanAfterSetup()

Bazı uygulama mantıklarını uygularken dosyaları kurulumdan hemen sonra temizleyebiliriz.

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)

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

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

Anlık görüntü mantığını kullanarak cihazı güncelleyip güncelleyemeyeceğimizi döndürür.

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

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

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

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

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

Alanlar

DYNAMIC_PARTITIONS_TO_DIFF

public static final Set<String> DYNAMIC_PARTITIONS_TO_DIFF

Herkese açık oluşturucular

IncrementalImageUtil

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

Parametreler
device ITestDevice

targetImage File

createSnapshot File

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

deviceMerkleTree File

Herkese açık yöntemler

allowSameBuildFlashing

public void allowSameBuildFlashing ()

cleanAfterSetup

public void cleanAfterSetup ()

Bazı uygulama mantıklarını uygularken dosyaları kurulumdan hemen sonra temizleyebiliriz.

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

İadeler
File

ilk kullanıma hazırlamak

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

Parametreler
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition Set

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

Döndürülenler
IncrementalImageUtil

Verdiği hatalar
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

İadeler
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

Döndürülenler
boolean

Verdiği hatalar
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean useMerkle)

Anlık görüntü mantığını kullanarak cihazı güncelleyip güncelleyemeyeceğimizi döndürür.

Parametreler
device ITestDevice

useMerkle boolean

Döndürülenler
boolean

Verdiği hatalar
DeviceNotAvailableException

setSkipBasebandVersionCheck

public void setSkipBasebandVersionCheck (boolean skipBasebandVersionCheck)

Parametreler
skipBasebandVersionCheck boolean

setSkipBootloaderVersionCheck

public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)

Parametreler
skipBootloaderVersionCheck boolean

teardownDevice

public void teardownDevice (TestInformation testInfo)

Parametreler
testInfo TestInformation

Verdiği hatalar
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

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

İadeler
boolean

updateDevice

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

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

Parametreler
currentBootloader File

currentRadio File

currentTrusty File

Verdiği hatalar
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

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

Parametreler
currentBootloader File

currentRadio File

currentTrusty File

Verdiği hatalar
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

İadeler
boolean