ยูทิลิตี้รูปภาพส่วนเพิ่ม

public class IncrementalImageUtil
extends Object

java.lang.Object
com.android.tradefed.util.image.IncreasealImageUtil


ยูทิลิตี้เพื่อใช้ประโยชน์จากรูปภาพที่เพิ่มขึ้นและการอัพเดตอุปกรณ์

สรุป

เขตข้อมูล

public static final DYNAMIC_PARTITIONS_TO_DIFF

ผู้รับเหมาก่อสร้างสาธารณะ

IncrementalImageUtil ( ITestDevice device, File deviceImage, File bootloader, File baseband, File targetImage, File createSnapshot, boolean applySnapshot, SnapuserdWaitPhase waitPhase)

วิธีการสาธารณะ

void allowSameBuildFlashing ()
File getExtractedTargetDirectory ()
static IncrementalImageUtil initialize ( ITestDevice device, IDeviceBuildInfo build, File createSnapshot, boolean isIsolatedSetup, boolean allowCrossRelease, boolean applySnapshot, SnapuserdWaitPhase waitPhase)
boolean isSameBuildFlashingAllowed ()
static boolean isSnapshotInUse ( ITestDevice device)

ส่งคืนว่าอุปกรณ์กำลังใช้สแนปชอตอยู่หรือไม่

static boolean isSnapshotSupported ( ITestDevice device, boolean applySnapshot)

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

void notifyBasebadNeedsRevert ()
void notifyBootloaderNeedsRevert ()
void teardownDevice ()
boolean updateCompleted ()

ส่งคืนว่าการอัปเดตเสร็จสมบูรณ์หรือไม่

void updateDevice (File currentBootloader, File currentRadio)

อัปเดตอุปกรณ์โดยใช้ลอจิกสแนปช็อต

เขตข้อมูล

DYNAMIC_PARTITIONS_TO_DIFF

public static final  DYNAMIC_PARTITIONS_TO_DIFF

ผู้รับเหมาก่อสร้างสาธารณะ

ยูทิลิตี้รูปภาพส่วนเพิ่ม

public IncrementalImageUtil (ITestDevice device, 
                File deviceImage, 
                File bootloader, 
                File baseband, 
                File targetImage, 
                File createSnapshot, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

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

deviceImage File

bootloader File

baseband File

targetImage File

createSnapshot File

applySnapshot boolean

waitPhase SnapuserdWaitPhase

วิธีการสาธารณะ

อนุญาต SameBuildFlashing

public void allowSameBuildFlashing ()

getExtractedTargetDirectory

public File getExtractedTargetDirectory ()

การส่งคืน
File

เริ่มต้น

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowCrossRelease, 
                boolean applySnapshot, 
                SnapuserdWaitPhase waitPhase)

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

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowCrossRelease boolean

applySnapshot boolean

waitPhase SnapuserdWaitPhase

การส่งคืน
IncrementalImageUtil

ขว้าง
DeviceNotAvailableException

อนุญาตให้ใช้ isSameBuildFlashing ได้

public boolean isSameBuildFlashingAllowed ()

การส่งคืน
boolean

เป็น SnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

ส่งคืนว่าอุปกรณ์กำลังใช้สแนปชอตอยู่หรือไม่

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

การส่งคืน
boolean

ขว้าง
DeviceNotAvailableException

รองรับ Snapshot แล้ว

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

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

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

applySnapshot boolean

การส่งคืน
boolean

ขว้าง
DeviceNotAvailableException

แจ้ง BasebadNeedsRevert

public void notifyBasebadNeedsRevert ()

แจ้ง BootloaderNeedsRevert

public void notifyBootloaderNeedsRevert ()

อุปกรณ์ฉีกขาด

public void teardownDevice ()

ขว้าง
DeviceNotAvailableException

อัปเดตเสร็จสมบูรณ์

public boolean updateCompleted ()

ส่งคืนว่าการอัปเดตเสร็จสมบูรณ์หรือไม่

การส่งคืน
boolean

อัพเดตอุปกรณ์

public void updateDevice (File currentBootloader, 
                File currentRadio)

อัปเดตอุปกรณ์โดยใช้ลอจิกสแนปช็อต

พารามิเตอร์
currentBootloader File

currentRadio File

ขว้าง
DeviceNotAvailableException
TargetSetupError