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 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

공개 생성자

IncrementalImageUtil

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

공개 메소드

허용동일빌드깜박임

public void allowSameBuildFlashing ()

getExtractedTarget디렉토리

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

isSameBuild깜빡임허용됨

public boolean isSameBuildFlashingAllowed ()

보고
boolean

isSnapshotInUse

public static boolean isSnapshotInUse (ITestDevice device)

장치가 현재 스냅샷을 사용하고 있는지 여부를 반환합니다.

매개변수
device ITestDevice

보고
boolean

던지기
DeviceNotAvailableException

isSnapshot지원됨

public static boolean isSnapshotSupported (ITestDevice device, 
                boolean applySnapshot)

스냅샷 논리를 사용하여 장치를 업데이트할 수 있는지 여부를 반환합니다.

매개변수
device ITestDevice

applySnapshot boolean

보고
boolean

던지기
DeviceNotAvailableException

informBasebadNeeds되돌리기

public void notifyBasebadNeedsRevert ()

알림부트로더가 필요합니다. 되돌리기

public void notifyBootloaderNeedsRevert ()

분해장치

public void teardownDevice ()

던지기
DeviceNotAvailableException

업데이트완료

public boolean updateCompleted ()

업데이트 완료 여부를 반환합니다.

보고
boolean

업데이트장치

public void updateDevice (File currentBootloader, 
                File currentRadio)

스냅샷 논리를 사용하여 장치를 업데이트합니다.

매개변수
currentBootloader File

currentRadio File

던지기
DeviceNotAvailableException
TargetSetupError