GoogleAccountPreparer

public class GoogleAccountPreparer
extends WaitForDeviceDatetimePreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.WaitForDeviceDatetimePreparer
       ↳ com.google.android.tradefed.targetprep.GoogleAccountPreparer


ITargetPreparer שתומכת בהגדרת חשבונות Google. אם לא מצוין חשבון ויצירת חשבון GAIA מופעלת, חשבון GAIA ייווצר ויתווסף למכשיר.

סיכום

‫constructors ציבוריים

GoogleAccountPreparer()

‫methods ציבוריים

void setAccount(String accountName, String accountPassword)

הגדרת חשבון Google ליצירה.

void setAccountSync(boolean value)

הגדרת ההפעלה של הסנכרון בחשבון

void setSyncThenOff(long syncThenOff)

הגדרת ההפעלה של הסנכרון בחשבון

void setUp(TestInformation testInfo)

void setWaitForCheckin(boolean value)

הגדרה שקובעת אם להמתין לסיום הצ'ק-אין אחרי הוספת החשבון

void tearDown(TestInformation testInfo, Throwable e)

שיטות מוגנות

getAccountBlacklist()
String getAccountName()
String getAccountPassword()
int getAccountRangeEnd()
int getAccountRangeStart()
File getCredentialFile()
boolean getUseAccountRange()
JSONObject loadCredentialsFromFile(File file)
void processCredentialFile(IBuildInfo buildInfo)
File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName)
void setCredentialFile(File file)

Constructors ציבוריים

GoogleAccountPreparer

public GoogleAccountPreparer ()

‫methods ציבוריים

setAccount

public void setAccount (String accountName, 
                String accountPassword)

הגדרת חשבון Google ליצירה.

פרמטרים
accountName String

accountPassword String

setAccountSync

public void setAccountSync (boolean value)

הגדרת ההפעלה של הסנכרון בחשבון

פרמטרים
value boolean

setSyncThenOff

public void setSyncThenOff (long syncThenOff)

הגדרת ההפעלה של הסנכרון בחשבון

פרמטרים
syncThenOff long

setUp

public void setUp (TestInformation testInfo)

פרמטרים
testInfo TestInformation

זריקות
BuildError
DeviceNotAvailableException
TargetSetupError

setWaitForCheckin

public void setWaitForCheckin (boolean value)

הגדרה שקובעת אם להמתין לסיום הצ'ק-אין אחרי הוספת החשבון

פרמטרים
value boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

פרמטרים
testInfo TestInformation

e Throwable

זריקות
DeviceNotAvailableException

שיטות מוגנות

getAccountBlacklist

protected  getAccountBlacklist ()

החזרות

getAccountName

protected String getAccountName ()

החזרות
String

getAccountPassword

protected String getAccountPassword ()

החזרות
String

getAccountRangeEnd

protected int getAccountRangeEnd ()

החזרות
int

getAccountRangeStart

protected int getAccountRangeStart ()

החזרות
int

getCredentialFile

protected File getCredentialFile ()

החזרות
File

getUseAccountRange

protected boolean getUseAccountRange ()

החזרות
boolean

loadCredentialsFromFile

protected JSONObject loadCredentialsFromFile (File file)

פרמטרים
file File

החזרות
JSONObject

זריקות
TargetSetupError

processCredentialFile

protected void processCredentialFile (IBuildInfo buildInfo)

פרמטרים
buildInfo IBuildInfo

זריקות
TargetSetupError

resolveRelativeFilePath

protected File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

פרמטרים
buildInfo IBuildInfo

fileName String

החזרות
File

זריקות
TargetSetupError

setCredentialFile

protected void setCredentialFile (File file)

פרמטרים
file File