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