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


DeviceFlashPreparer का एक खास वर्शन. इसका इस्तेमाल, Google डिवाइसों को फ़्लैश करने के लिए ज़रूरी कस्टम चरणों के लिए किया जाता है.

यह प्रॉडक्ट टाइप के आधार पर, सही 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