DeviceUpdateTargetPreparer

public abstract class DeviceUpdateTargetPreparer
extends DeviceBuildInfoBootStrapper

java.lang.객체
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper
com.android.tradefed.targetprep.DeviceUpdateTargetPreparer


외부 소스(빌드 서비스와 반대)의 장치 이미지 파일로 장치를 업데이트하는 일반적인 단계를 처리하는 추상적인 ITargetPreparer 입니다. 실제 업데이트 메커니즘은 하위 클래스의 구현자에게 위임됩니다.

요약

공개 생성자

DeviceUpdateTargetPreparer ()

공개 방법

void setUp ( TestInformation testInfo)

보호된 메서드

abstract File getDeviceUpdateImage ()

업데이트에 사용할 장치 이미지 파일을 나타내는 ERROR(/File) 인스턴스를 제공합니다.

abstract void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)

장치에서 장치 이미지 업데이트를 수행합니다.

abstract void postUpdateActions (File deviceUpdateImage, ITestDevice device)

장치가 업데이트된 후 업데이트 후 설정 단계가 수행되기 전에 수행할 작업입니다.

abstract void preUpdateActions (File deviceUpdateImage, ITestDevice device)

장치가 업데이트되기 전에 수행할 작업입니다.

공개 생성자

DeviceUpdateTargetPreparer

public DeviceUpdateTargetPreparer ()

공개 방법

설정

public void setUp (TestInformation testInfo)

매개변수
testInfo TestInformation

던지기
BuildError
DeviceNotAvailableException
TargetSetupError

보호된 메서드

getDeviceUpdateImage

protected abstract File getDeviceUpdateImage ()

업데이트에 사용할 장치 이미지 파일을 나타내는 ERROR(/File) 인스턴스를 제공합니다.

보고
File

수행장치 업데이트

protected abstract void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

장치에서 장치 이미지 업데이트를 수행합니다.

던지기
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

사후 업데이트 작업

protected abstract void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

장치가 업데이트된 후 업데이트 후 설정 단계가 수행되기 전에 수행할 작업입니다. 이 메서드는 플래싱 동시성 제어 외부에서 호출됩니다.

던지기
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

사전 업데이트 작업

protected abstract void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

장치가 업데이트되기 전에 수행할 작업입니다. 이 메서드는 플래싱 동시성 제어 외부에서 호출됩니다.

던지기
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError