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


Specjalizacja DeviceFlashPreparer, która obsługuje niestandardowe kroki wymagane do flashowania urządzeń Google.

W tym celu tworzy odpowiedni IDeviceFlasher na podstawie typu produktu.

Podsumowanie

Konstruktory publiczne

GoogleDeviceFlashPreparer()

Metody publiczne

IBuildInfo getBuild(TestInformation testInfo)

Zawiń funkcję getBuildInfo, aby można było ją zastąpić w określonych scenariuszach.

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

void setUp(TestInformation testInfo)

Metody chronione

void checkDeviceProductType(ITestDevice device, IDeviceBuildInfo deviceBuild)

Możliwość sprawdzenia przed flashowaniem, czy urządzenie jest zgodne z informacjami o kompilacji.

IDeviceFlasher createFlasher(ITestDevice device)

Tworzenie IDeviceFlasher do użycia

FlashingResourcesRetrieverCacheWrapper createFlashingResources(String productType)

Konstruktory publiczne

GoogleDeviceFlashPreparer

public GoogleDeviceFlashPreparer ()

Metody publiczne

getBuild

public IBuildInfo getBuild (TestInformation testInfo)

Zawiń funkcję getBuildInfo, aby można było ją zastąpić w określonych scenariuszach.

Parametry
testInfo TestInformation

Zwraca
IBuildInfo

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

Parametry
altStaticDeviceInfoClass String

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Parametry
invocationContext IInvocationContext

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Zgłasza
BuildError
DeviceNotAvailableException
TargetSetupError

Metody chronione

checkDeviceProductType

protected void checkDeviceProductType (ITestDevice device, 
                IDeviceBuildInfo deviceBuild)

Możliwość sprawdzenia przed flashowaniem, czy urządzenie jest zgodne z informacjami o kompilacji.

Parametry
device ITestDevice: ITestDevice do flashowania.

deviceBuild IDeviceBuildInfo: IDeviceBuildInfo użyty do błysku.

Zgłasza
BuildError
DeviceNotAvailableException

createFlasher

protected IDeviceFlasher createFlasher (ITestDevice device)

Tworzenie IDeviceFlasher do użycia

Parametry
device ITestDevice

Zwraca
IDeviceFlasher

Zgłasza
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

createFlashingResources

protected FlashingResourcesRetrieverCacheWrapper createFlashingResources (String productType)

Parametry
productType String

Zwraca
FlashingResourcesRetrieverCacheWrapper