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

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 deviceImage, File bootloader, File baseband, File targetImage, File createSnapshot, boolean applySnapshot, SnapuserdWaitPhase waitPhase)

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

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

เมื่อดำเนินการนำตรรกะดังกล่าวไปใช้ เราสามารถล้างไฟล์ทันทีหลังจากการตั้งค่า

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(TestInformation testInfo)
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

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

AllowSameBuildFlashing

public void allowSameBuildFlashing ()

อนุญาตUnzipBaseline

public void allowUnzipBaseline ()

ทำความสะอาดหลังตั้งค่า

public void cleanAfterSetup ()

เมื่อดำเนินการนำตรรกะดังกล่าวไปใช้ เราสามารถล้างไฟล์ทันทีหลังจากการตั้งค่า

getExtractedTargetDirectory Directory

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

isSameBuildFlashingAllowed

public boolean isSameBuildFlashingAllowed ()

คิกรีเทิร์น
boolean

การใช้งานเป็นสแนปชอต

public static boolean isSnapshotInUse (ITestDevice device)

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

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

คิกรีเทิร์น
boolean

การขว้าง
DeviceNotAvailableException

สนับสนุนสแนปชอต

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

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

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

applySnapshot boolean

คิกรีเทิร์น
boolean

การขว้าง
DeviceNotAvailableException

AlertBasebadต้องการเปลี่ยนกลับ

public void notifyBasebadNeedsRevert ()

AlertBootloaderต้องการเปลี่ยนกลับ

public void notifyBootloaderNeedsRevert ()

ดึงข้อมูลอุปกรณ์

public void teardownDevice (TestInformation testInfo)

พารามิเตอร์
testInfo TestInformation

การขว้าง
DeviceNotAvailableException

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

public boolean updateCompleted ()

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

คิกรีเทิร์น
boolean

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

public void updateDevice (File currentBootloader, 
                File currentRadio)

อัปเดตอุปกรณ์โดยใช้ตรรกะสแนปชอต

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

currentRadio File

การขว้าง
DeviceNotAvailableException
TargetSetupError