IncrementalImageUtil

public class IncrementalImageUtil
extends Object

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


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

ملخّص

الحقول

public static final Set<String> 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, Set<String> allowedTransition, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed()
static boolean isSnapshotInUse(ITestDevice device)

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

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

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

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

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

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

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

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

الحقول

DYNAMIC_PARTITIONS_TO_DIFF

public static final Set<String> 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, 
                Set<String> allowedTransition, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase)

المعلَمات
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition Set

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

setSkipBasebandVersionCheck

public void setSkipBasebandVersionCheck (boolean skipBasebandVersionCheck)

المعلَمات
skipBasebandVersionCheck boolean

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, 
                File currentTrusty)

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

المعلَمات
currentBootloader File

currentRadio File

currentTrusty File

عمليات الطرح
DeviceNotAvailableException
TargetSetupError

updateDeviceWithNewFlow

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

المعلَمات
currentBootloader File

currentRadio File

currentTrusty File

عمليات الطرح
DeviceNotAvailableException
TargetSetupError

useUpdatedFlow

public boolean useUpdatedFlow ()

المرتجعات
boolean