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

공개 메서드

void allowSameBuildFlashing()
void cleanAfterSetup()

일부 적용 로직을 실행할 때 설정 직후 파일을 정리할 수 있습니다.

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

기기가 현재 스냅샷을 사용 중인지 여부를 반환합니다.

static boolean isSnapshotSupported(ITestDevice device, boolean useMerkle)

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

void setSkipBootloaderVersionCheck(boolean skipBootloaderVersionCheck)
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 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

initialize

public static IncrementalImageUtil initialize (ITestDevice device, 
                IDeviceBuildInfo build, 
                File createSnapshot, 
                boolean isIsolatedSetup, 
                boolean allowTrackerlessUpdate, 
                 allowedTransition, 
                boolean updateBootloaderFromUserspace, 
                SnapuserdWaitPhase waitPhase)

매개변수
device ITestDevice

build IDeviceBuildInfo

createSnapshot File

isIsolatedSetup boolean

allowTrackerlessUpdate boolean

allowedTransition

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

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)

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

매개변수
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