IncrementalImageUtil

public class IncrementalImageUtil
extends Object

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


أداة للاستفادة من التحديثات المتزايدة للصور والأجهزة

ملخّص

الحقول

public static final DYNAMIC_PARTITIONS_TO_DIFF

الإنشاءات العامة

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

الطُرق العامة

void allowSameBuildFlashing()
void cleanAfterSetup()

عند تنفيذ بعض منطق التطبيق، يمكننا تنظيف الملفات بعد الإعداد مباشرةً.

File getExtractedTargetDirectory()
static IncrementalImageUtil initialize(ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowTrackerlessUpdate, allowedTransition, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed()
static boolean isSnapshotInUse(ITestDevice device)

تعرِض هذه السمة ما إذا كان الجهاز يستخدم اللقطات حاليًا أم لا.

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

تعرِض هذه السمة ما إذا كان بإمكاننا استخدام منطق اللقطة لتحديث الجهاز

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

تعرض هذه السمة ما إذا اكتمل التحديث أم لا.

void updateDevice(File currentBootloader, File currentRadio)

تعديل الجهاز باستخدام منطق اللقطة

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

الحقول

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

الإنشاءات العامة

IncrementalImageUtil

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

المعلمات
device ITestDevice

targetImage File

createSnapshot File

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

deviceMerkleTree File

الطُرق العامة

allowSameBuildFlashing

public void allowSameBuildFlashing ()

cleanAfterSetup

public void cleanAfterSetup ()

عند تنفيذ بعض منطق التطبيق، يمكننا تنظيف الملفات بعد الإعداد مباشرةً.

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

المرتجعات
File

إعداد

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

المعلمات
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

المرتجعات
IncrementalImageUtil

الرميات
DeviceNotAvailableException

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

المرتجعات
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

تعرِض هذه السمة ما إذا كان الجهاز يستخدم اللقطات حاليًا أم لا.

المعلمات
device ITestDevice

المرتجعات
boolean

الرميات
DeviceNotAvailableException

isSnapshotSupported

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean useMerkle)

تعرِض هذه السمة ما إذا كان بإمكاننا استخدام منطق اللقطة لتحديث الجهاز

المعلمات
device ITestDevice

useMerkle boolean

المرتجعات
boolean

الرميات
DeviceNotAvailableException

setSkipBootloaderVersionCheck

public void setSkipBootloaderVersionCheck (boolean skipBootloaderVersionCheck)

المعلمات
skipBootloaderVersionCheck boolean

teardownDevice

public void teardownDevice (TestInformation testInfo)

المعلمات
testInfo TestInformation

الرميات
DeviceNotAvailableException

updateCompleted

public boolean updateCompleted ()

تعرض هذه السمة ما إذا اكتمل التحديث أم لا.

المرتجعات
boolean

updateDevice

public void updateDevice (File currentBootloader, 
                File currentRadio)

تعديل الجهاز باستخدام منطق اللقطة

المعلمات
currentBootloader File

currentRadio File

الرميات
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

public void updateDeviceWithNewFlow (File currentBootloader, 
                File currentRadio)

المعلمات
currentBootloader File

currentRadio File

الرميات
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

المرتجعات
boolean