InkrementellesImageUtil
public class IncrementalImageUtil
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.image.IncrementalImageUtil |
Ein Dienstprogramm zur Nutzung der inkrementellen Image- und Geräteaktualisierung.
Zusammenfassung
Öffentliche Methoden |
---|
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) Gibt zurück, ob das Gerät derzeit Snapshots verwendet oder nicht. |
static boolean | isSnapshotSupported ( ITestDevice device, boolean applySnapshot) Gibt zurück, ob wir die Snapshot-Logik zum Aktualisieren des Geräts verwenden können oder nicht |
void | notifyBasebadNeedsRevert () |
void | notifyBootloaderNeedsRevert () |
void | teardownDevice () |
boolean | updateCompleted () Gibt zurück, ob die Aktualisierung abgeschlossen wurde oder nicht. |
void | updateDevice (File currentBootloader, File currentRadio) Aktualisiert das Gerät mithilfe der Snapshot-Logik. |
Felder
DYNAMIC_PARTITIONS_TO_DIFF
public static final DYNAMIC_PARTITIONS_TO_DIFF
Öffentliche Bauträger
InkrementellesImageUtil
public IncrementalImageUtil (ITestDevice device,
File deviceImage,
File bootloader,
File baseband,
File targetImage,
File createSnapshot,
boolean applySnapshot,
SnapuserdWaitPhase waitPhase)
Parameter |
---|
device | ITestDevice |
deviceImage | File |
bootloader | File |
baseband | File |
targetImage | File |
createSnapshot | File |
applySnapshot | boolean |
waitPhase | SnapuserdWaitPhase |
Öffentliche Methoden
AllowSameBuildFlashing
public void allowSameBuildFlashing ()
public File getExtractedTargetDirectory ()
initialisieren
public static IncrementalImageUtil initialize (ITestDevice device,
IDeviceBuildInfo build,
File createSnapshot,
boolean isIsolatedSetup,
boolean allowCrossRelease,
boolean applySnapshot,
SnapuserdWaitPhase waitPhase)
Parameter |
---|
device | ITestDevice |
build | IDeviceBuildInfo |
createSnapshot | File |
isIsolatedSetup | boolean |
allowCrossRelease | boolean |
applySnapshot | boolean |
waitPhase | SnapuserdWaitPhase |
isSameBuildFlashingAllowed
public boolean isSameBuildFlashingAllowed ()
isSnapshotInUse
public static boolean isSnapshotInUse (ITestDevice device)
Gibt zurück, ob das Gerät derzeit Snapshots verwendet oder nicht.
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 oder nicht
Parameter |
---|
device | ITestDevice |
applySnapshot | boolean |
notifyBasebadNeedsRevert
public void notifyBasebadNeedsRevert ()
notifyBootloaderNeedsRevert
public void notifyBootloaderNeedsRevert ()
TeardownDevice
public void teardownDevice ()
Update abgeschlossen
public boolean updateCompleted ()
Gibt zurück, 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 |