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 שתומכת בשלבים מותאמים אישית שנדרשים לצריבת ROM‏ (flash) של מכשירי Google.

המערכת עושה זאת על ידי יצירת IDeviceFlasher מתאים על סמך סוג המוצר

סיכום

‫constructors ציבוריים

GoogleDeviceFlashPreparer()

‫methods ציבוריים

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)

‫constructors ציבוריים

GoogleDeviceFlashPreparer

public GoogleDeviceFlashPreparer ()

‫methods ציבוריים

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

הקפצת הודעות שגיאה (throw)
BuildError
DeviceNotAvailableException
TargetSetupError

שיטות מוגנות

checkDeviceProductType

protected void checkDeviceProductType (ITestDevice device, 
                IDeviceBuildInfo deviceBuild)

אפשר לבצע בדיקה לפני ההפעלה כדי לוודא שהמכשיר תואם למידע על הגרסה.

פרמטרים
device ITestDevice: המכשיר ITestDevice יהבהב.

deviceBuild IDeviceBuildInfo: IDeviceBuildInfo שמשמש לצריבת ROM‏ (flash).

הקפצת הודעות שגיאה (throw)
BuildError
DeviceNotAvailableException

createFlasher

protected IDeviceFlasher createFlasher (ITestDevice device)

יצירת IDeviceFlasher לשימוש

פרמטרים
device ITestDevice

החזרות
IDeviceFlasher

הקפצת הודעות שגיאה (throw)
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

createFlashingResources

protected FlashingResourcesRetrieverCacheWrapper createFlashingResources (String productType)

פרמטרים
productType String

חזרה לרצף השגרה
FlashingResourcesRetrieverCacheWrapper