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 cihazlarına yazılım yüklemek için gereken özel adımları destekleyen bir DeviceFlashPreparer uzmanlığı.

Bu işlem, ürün türüne göre uygun IDeviceFlasher oluşturularak gerçekleştirilir.

Özet

Herkese açık oluşturucular

GoogleDeviceFlashPreparer()

Herkese açık yöntemler

IBuildInfo getBuild(TestInformation testInfo)

getBuildInfo işlevini sarmalayarak belirli senaryolarda geçersiz kılma olanağı sunar.

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

void setUp(TestInformation testInfo)

Korunan yöntemler

void checkDeviceProductType(ITestDevice device, IDeviceBuildInfo deviceBuild)

Cihazın derleme bilgileriyle karşılaştırıldığında beklendiği gibi olduğundan emin olmak için yüklemeden önce olası kontrol.

IDeviceFlasher createFlasher(ITestDevice device)

Kullanmak için IDeviceFlasher oluşturur.

FlashingResourcesRetrieverCacheWrapper createFlashingResources(String productType)

Herkese açık oluşturucular

GoogleDeviceFlashPreparer

public GoogleDeviceFlashPreparer ()

Herkese açık yöntemler

getBuild

public IBuildInfo getBuild (TestInformation testInfo)

getBuildInfo işlevini sarmalayarak belirli senaryolarda geçersiz kılma olanağı sunar.

Parametreler
testInfo TestInformation

İadeler
IBuildInfo

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

Parametreler
altStaticDeviceInfoClass String

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Parametreler
invocationContext IInvocationContext

setUp

public void setUp (TestInformation testInfo)

Parametreler
testInfo TestInformation

Verdiği hatalar
BuildError
DeviceNotAvailableException
TargetSetupError

Korunan yöntemler

checkDeviceProductType

protected void checkDeviceProductType (ITestDevice device, 
                IDeviceBuildInfo deviceBuild)

Cihazın derleme bilgileriyle karşılaştırıldığında beklendiği gibi olduğundan emin olmak için yüklemeden önce olası kontrol.

Parametreler
device ITestDevice: yüklenecek ITestDevice.

deviceBuild IDeviceBuildInfo: yüklemek için kullanılan IDeviceBuildInfo.

Verdiği hatalar
BuildError
DeviceNotAvailableException

createFlasher

protected IDeviceFlasher createFlasher (ITestDevice device)

Kullanmak için IDeviceFlasher oluşturur.

Parametreler
device ITestDevice

Döndürülenler
IDeviceFlasher

Verdiği hatalar
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

createFlashingResources

protected FlashingResourcesRetrieverCacheWrapper createFlashingResources (String productType)

Parametreler
productType String

Return'ler
FlashingResourcesRetrieverCacheWrapper