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)

שיטות מוגנות

Set<Integer> 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

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

setWaitForCheckin

public void setWaitForCheckin (boolean value)

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

פרמטרים
value boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

פרמטרים
testInfo TestInformation

e Throwable

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

שיטות מוגנות

getAccountBlacklist

protected Set<Integer> getAccountBlacklist ()

החזרות
Set<Integer>

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

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

processCredentialFile

protected void processCredentialFile (IBuildInfo buildInfo)

פרמטרים
buildInfo IBuildInfo

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

resolveRelativeFilePath

protected File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

פרמטרים
buildInfo IBuildInfo

fileName String

החזרות
File

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

setCredentialFile

protected void setCredentialFile (File file)

פרמטרים
file File