GoogleDeviceFlashPreparer

public class GoogleDeviceFlashPreparer
extends DeviceFlashPreparer implements IInvocationContextReceiver, ILabPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
  com.android.tradefed.targetprep.DeviceFlashPreparer
    com.google.android.tradefed.targetprep.GoogleDeviceFlashPreparer


Google 기기를 플래시하는 데 필요한 맞춤 단계를 지원하는 DeviceFlashPreparer의 전문화입니다.

제품 유형에 따라 적절한 IDeviceFlasher를 만들어 이를 처리합니다.

요약

공개 생성자

GoogleDeviceFlashPreparer()

공개 메서드

IBuildInfo getBuild(TestInformation testInfo)

특정 시나리오에서 재정의할 수 있도록 getBuildInfo를 래핑합니다.

void setAltStaticDeviceInfoClass(String altStaticDeviceInfoClass)
void setInvocationContext(IInvocationContext invocationContext)

void setUp(TestInformation testInfo)

보호된 메서드

void checkDeviceProductType(ITestDevice device, IDeviceBuildInfo deviceBuild)

기기가 빌드 정보와 비교하여 예상대로인지 확인하기 위해 플래시하기 전에 확인합니다.

IDeviceFlasher createFlasher(ITestDevice device)

사용할 IDeviceFlasher를 만듭니다.

FlashingResourcesRetrieverCacheWrapper createFlashingResources(String productType)

공개 생성자

GoogleDeviceFlashPreparer

public GoogleDeviceFlashPreparer ()

공개 메서드

getBuild

public IBuildInfo getBuild (TestInformation testInfo)

특정 시나리오에서 재정의할 수 있도록 getBuildInfo를 래핑합니다.

매개변수
testInfo TestInformation

반환
IBuildInfo

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

매개변수
altStaticDeviceInfoClass String

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

매개변수
invocationContext IInvocationContext

setUp

public void setUp (TestInformation testInfo)

매개변수
testInfo TestInformation

생성 값
BuildError
DeviceNotAvailableException
TargetSetupError

보호된 메서드

checkDeviceProductType

protected void checkDeviceProductType (ITestDevice device, 
                IDeviceBuildInfo deviceBuild)

기기가 빌드 정보와 비교하여 예상대로인지 확인하기 위해 플래시하기 전에 확인합니다.

매개변수
device ITestDevice: 플래시할 ITestDevice입니다.

deviceBuild IDeviceBuildInfo: 플래시에 사용되는 IDeviceBuildInfo입니다.

생성 값
BuildError
DeviceNotAvailableException

createFlasher

protected IDeviceFlasher createFlasher (ITestDevice device)

사용할 IDeviceFlasher를 만듭니다.

매개변수
device ITestDevice

반환
IDeviceFlasher

생성 값
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

createFlashingResources

protected FlashingResourcesRetrieverCacheWrapper createFlashingResources (String productType)

매개변수
productType String

반환 값
FlashingResourcesRetrieverCacheWrapper