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