IncrementalImageUtil
public class IncrementalImageUtil
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.image.IncrementalImageUtil |
أداة للاستفادة من الصورة المتزايدة وتحديث الجهاز.
ملخص
مجالات
DYNAMIC_PARTITIONS_TO_DIFF
public static final DYNAMIC_PARTITIONS_TO_DIFF
المقاولين العامة
IncrementalImageUtil
public IncrementalImageUtil (ITestDevice device,
File deviceImage,
File bootloader,
File baseband,
File targetImage,
File createSnapshot,
boolean applySnapshot,
SnapuserdWaitPhase waitPhase)
حدود |
---|
device | ITestDevice |
deviceImage | File |
bootloader | File |
baseband | File |
targetImage | File |
createSnapshot | File |
applySnapshot | boolean |
waitPhase | SnapuserdWaitPhase |
الأساليب العامة
allowSameBuildFlashing
public void allowSameBuildFlashing ()
public File getExtractedTargetDirectory ()
تهيئة
public static IncrementalImageUtil initialize (ITestDevice device,
IDeviceBuildInfo build,
File createSnapshot,
boolean isIsolatedSetup,
boolean allowCrossRelease,
boolean applySnapshot,
SnapuserdWaitPhase waitPhase)
حدود |
---|
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)
إرجاع ما إذا كان الجهاز يستخدم اللقطات حاليًا أم لا.
isSnapshotSupported
public static boolean isSnapshotSupported (ITestDevice device,
boolean applySnapshot)
إرجاع ما إذا كان بإمكاننا استخدام منطق اللقطة لتحديث الجهاز أم لا
حدود |
---|
device | ITestDevice |
applySnapshot | boolean |
notifyBasebadNeedsRevert
public void notifyBasebadNeedsRevert ()
notifyBootloaderNeedsRevert
public void notifyBootloaderNeedsRevert ()
TeardownDevice
public void teardownDevice ()
تحديث الانتهاء
public boolean updateCompleted ()
إرجاع ما إذا كان التحديث قد اكتمل أم لا.
updateDevice
public void updateDevice (File currentBootloader,
File currentRadio)
يقوم بتحديث الجهاز باستخدام منطق اللقطة.
حدود |
---|
currentBootloader | File |
currentRadio | File |