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


Google Hesaplarının yapılandırılmasını destekleyen bir ITargetPreparer. Hesap belirtilmemişse ve Gaia hesabı oluşturma etkinse Gaia hesabı oluşturulup cihaza eklenir.

Özet

Herkese açık oluşturucular

GoogleAccountPreparer()

Herkese açık yöntemler

void setAccount(String accountName, String accountPassword)

Oluşturulacak Google Hesabı'nı ayarlar.

void setAccountSync(boolean value)

Hesapta senkronizasyonun etkinleştirilip etkinleştirilmeyeceğini belirler.

void setSyncThenOff(long syncThenOff)

Hesapta senkronizasyonun etkinleştirilip etkinleştirilmeyeceğini belirler.

void setUp(TestInformation testInfo)

void setWaitForCheckin(boolean value)

Hesap eklendikten sonra check-in işleminin tamamlanması için beklenip beklenmeyeceğini ayarlar.

void tearDown(TestInformation testInfo, Throwable e)

Korunan yöntemler

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)

Herkese açık oluşturucular

GoogleAccountPreparer

public GoogleAccountPreparer ()

Herkese açık yöntemler

setAccount

public void setAccount (String accountName, 
                String accountPassword)

Oluşturulacak Google Hesabı'nı ayarlar.

Parametreler
accountName String

accountPassword String

setAccountSync

public void setAccountSync (boolean value)

Hesapta senkronizasyonun etkinleştirilip etkinleştirilmeyeceğini belirler.

Parametreler
value boolean

setSyncThenOff

public void setSyncThenOff (long syncThenOff)

Hesapta senkronizasyonun etkinleştirilip etkinleştirilmeyeceğini belirler.

Parametreler
syncThenOff long

setUp

public void setUp (TestInformation testInfo)

Parametreler
testInfo TestInformation

Dekoratif yastıklar
BuildError
DeviceNotAvailableException
TargetSetupError

setWaitForCheckin

public void setWaitForCheckin (boolean value)

Hesap eklendikten sonra check-in işleminin tamamlanması için beklenip beklenmeyeceğini ayarlar.

Parametreler
value boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametreler
testInfo TestInformation

e Throwable

Dekoratif yastıklar
DeviceNotAvailableException

Korunan yöntemler

getAccountBlacklist

protected  getAccountBlacklist ()

İlerlemeler

getAccountName

protected String getAccountName ()

İlerlemeler
String

getAccountPassword

protected String getAccountPassword ()

İlerlemeler
String

getAccountRangeEnd

protected int getAccountRangeEnd ()

İlerlemeler
int

getAccountRangeStart

protected int getAccountRangeStart ()

İlerlemeler
int

getCredentialFile

protected File getCredentialFile ()

İlerlemeler
File

getUseAccountRange

protected boolean getUseAccountRange ()

İlerlemeler
boolean

loadCredentialsFromFile

protected JSONObject loadCredentialsFromFile (File file)

Parametreler
file File

İlerlemeler
JSONObject

Dekoratif yastıklar
TargetSetupError

processCredentialFile

protected void processCredentialFile (IBuildInfo buildInfo)

Parametreler
buildInfo IBuildInfo

Dekoratif yastıklar
TargetSetupError

resolveRelativeFilePath

protected File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

Parametreler
buildInfo IBuildInfo

fileName String

İlerlemeler
File

Dekoratif yastıklar
TargetSetupError

setCredentialFile

protected void setCredentialFile (File file)

Parametreler
file File