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 newFlow, boolean updateBootloaderFromUserspace, SnapuserdWaitPhase waitPhase, File deviceMerkleTree)

เมธอดสาธารณะ

void allowSameBuildFlashing()
void allowUnzipBaseline()
void cleanAfterSetup()

เมื่อใช้ตรรกะบางอย่าง เราจะล้างไฟล์ได้ทันทีหลังจากการตั้งค่า

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

แสดงผลว่าอุปกรณ์กำลังใช้ภาพรวมหรือไม่

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

แสดงผลว่าสามารถใช้ตรรกะสแนปชอตเพื่ออัปเดตอุปกรณ์ได้หรือไม่

void notifyBasebadNeedsRevert()
void notifyBootloaderNeedsRevert()
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 newFlow, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase, 
                File deviceMerkleTree)

พารามิเตอร์
device ITestDevice

targetImage File

createSnapshot File

newFlow boolean

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

deviceMerkleTree File

เมธอดสาธารณะ

allowSameBuildFlashing

public void allowSameBuildFlashing ()

allowUnzipBaseline

public void allowUnzipBaseline ()

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 newFlow, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase, 
                boolean useMerkleTree)

พารามิเตอร์
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition

newFlow boolean

updateBootloaderFromUserspace boolean

waitPhase SnapuserdWaitPhase

useMerkleTree boolean

คิกรีเทิร์น
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

notifyBasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

notifyBootloaderNeedsRevert

public void notifyBootloaderNeedsRevert ()

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