IncrementalImageUtil

public class IncrementalImageUtil
extends Object

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


Narzędzie do korzystania z przyrostowej aktualizacji obrazu i urządzenia.

Podsumowanie

Pola

public static final Set<String> DYNAMIC_PARTITIONS_TO_DIFF

Konstruktory publiczne

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

Metody publiczne

void allowSameBuildFlashing()
void cleanAfterSetup()

Podczas stosowania niektórych reguł możemy zwalniać miejsce na pliki od razu po skonfigurowaniu.

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)

Zwraca informację, czy urządzenie korzysta obecnie z migawek.

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

Zwraca informację, czy do aktualizacji urządzenia można użyć logiki zrzutu.

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

Zwraca informację o tym, czy aktualizacja została zakończona.

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

Aktualizuje urządzenie za pomocą logiki zrzutu.

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

Pola

DYNAMIC_PARTITIONS_TO_DIFF

public static final Set<String> DYNAMIC_PARTITIONS_TO_DIFF

Konstruktory publiczne

IncrementalImageUtil

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

Parametry
device ITestDevice

targetImage File

createSnapshot File

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

deviceMerkleTree File

Metody publiczne

allowSameBuildFlashing

public void allowSameBuildFlashing ()

cleanAfterSetup

public void cleanAfterSetup ()

Podczas stosowania niektórych reguł możemy zwalniać miejsce na pliki od razu po skonfigurowaniu.

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

Zwraca
File

inicjować

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

Parametry
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition Set

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

Zwraca
IncrementalImageUtil

Zgłasza
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

Zwraca
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

Zwraca informację, czy urządzenie korzysta obecnie z migawek.

Parametry
device ITestDevice

Zwraca
boolean

Zgłasza
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean useMerkle)

Zwraca informację, czy do aktualizacji urządzenia można użyć logiki zrzutu.

Parametry
device ITestDevice

useMerkle boolean

Zwraca
boolean

Zgłasza
DeviceNotAvailableException

setSkipBasebandVersionCheck

public void setSkipBasebandVersionCheck (boolean skipBasebandVersionCheck)

Parametry
skipBasebandVersionCheck boolean

setSkipBootloaderVersionCheck

public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)

Parametry
skipBootloaderVersionCheck boolean

teardownDevice

public void teardownDevice (TestInformation testInfo)

Parametry
testInfo TestInformation

Zgłasza
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

Zwraca informację o tym, czy aktualizacja została zakończona.

Zwraca
boolean

updateDevice

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

Aktualizuje urządzenie za pomocą logiki zrzutu.

Parametry
currentBootloader File

currentRadio File

currentTrusty File

Zgłasza
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

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

Parametry
currentBootloader File

currentRadio File

currentTrusty File

Zgłasza
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

Zwraca
boolean