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 وإضافته إلى الجهاز.

ملخّص

الإنشاءات العامة

GoogleAccountPreparer()

الطُرق العامة

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)

الإنشاءات العامة

GoogleAccountPreparer

public GoogleAccountPreparer ()

الطُرق العامة

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