IncrementalImageUtil
public
class
IncrementalImageUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.image.IncrementalImageUtil
|
Ein Dienstprogramm zum Nutzen des inkrementellen Image- und Geräteupdates.
Zusammenfassung
Öffentliche Konstruktoren |
IncrementalImageUtil(ITestDevice device, File deviceImage, File bootloader, File baseband, File targetImage, File createSnapshot, boolean applySnapshot, boolean wipeAfterApply, boolean newFlow, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
|
Öffentliche Methoden |
void
|
allowSameBuildFlashing()
|
void
|
allowUnzipBaseline()
|
void
|
cleanAfterSetup()
Bei der Anwendung der Logik können wir Dateien direkt nach der Einrichtung bereinigen.
|
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)
Gibt an, ob auf dem Gerät derzeit Snapshots verwendet werden.
|
static
boolean
|
isSnapshotSupported(ITestDevice device, boolean applySnapshot)
Gibt zurück, ob wir die Snapshot-Logik verwenden können, um das Gerät zu aktualisieren
|
void
|
notifyBasebadNeedsRevert()
|
void
|
notifyBootloaderNeedsRevert()
|
void
|
teardownDevice(TestInformation testInfo)
|
boolean
|
updateCompleted()
Gibt an, ob die Aktualisierung abgeschlossen wurde oder nicht.
|
void
|
updateDevice(File currentBootloader, File currentRadio)
Aktualisiert das Gerät mithilfe der Snapshot-Logik.
|
void
|
updateDeviceWithNewFlow(File currentBootloader, File currentRadio)
|
boolean
|
useUpdatedFlow()
|
Felder
DYNAMIC_PARTITIONS_TO_DIFF
public static final DYNAMIC_PARTITIONS_TO_DIFF
Öffentliche Konstruktoren
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)
Parameter |
device |
ITestDevice |
deviceImage |
File |
bootloader |
File |
baseband |
File |
targetImage |
File |
createSnapshot |
File |
applySnapshot |
boolean |
wipeAfterApply |
boolean |
newFlow |
boolean |
updateBootloaderFromUserspace |
boolean |
waitPhase |
SnapuserdWaitPhase |
Öffentliche Methoden
allowSameBuildFlashing
public void allowSameBuildFlashing ()
allowUnzipBaseline
public void allowUnzipBaseline ()
cleanAfterSetup
public void cleanAfterSetup ()
Bei der Anwendung der Logik können wir Dateien direkt nach der Einrichtung bereinigen.
public File getExtractedTargetDirectory ()
initialize
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)
Parameter |
device |
ITestDevice |
build |
IDeviceBuildInfo |
createSnapshot |
File |
isIsolatedSetup |
boolean |
allowCrossRelease |
boolean |
allowedTransition |
|
applySnapshot |
boolean |
wipeAfterApply |
boolean |
newFlow |
boolean |
updateBootloaderFromUserspace |
boolean |
waitPhase |
SnapuserdWaitPhase |
isSameBuildFlashingAllowed
public boolean isSameBuildFlashingAllowed ()
isSnapshotInUse
public static boolean isSnapshotInUse (ITestDevice device)
Gibt an, ob auf dem Gerät derzeit Snapshots verwendet werden.
Parameter |
device |
ITestDevice |
isSnapshotSupported
public static boolean isSnapshotSupported (ITestDevice device,
boolean applySnapshot)
Gibt zurück, ob wir die Snapshot-Logik zum Aktualisieren des Geräts verwenden können
Parameter |
device |
ITestDevice |
applySnapshot |
boolean |
notifyBasebadNeedsRevert
public void notifyBasebadNeedsRevert ()
notifyBootloaderNeedsRevert
public void notifyBootloaderNeedsRevert ()
public void teardownDevice (TestInformation testInfo)
Parameter |
testInfo |
TestInformation |
updateCompleted
public boolean updateCompleted ()
Gibt an, ob die Aktualisierung abgeschlossen wurde oder nicht.
updateDevice
public void updateDevice (File currentBootloader,
File currentRadio)
Aktualisiert das Gerät mithilfe der Snapshot-Logik.
Parameter |
currentBootloader |
File |
currentRadio |
File |
updateDeviceWithNewFlow
public void updateDeviceWithNewFlow (File currentBootloader,
File currentRadio)
Parameter |
currentBootloader |
File |
currentRadio |
File |
useUpdatedFlow
public boolean useUpdatedFlow ()