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, który obsługuje konfigurowanie kont Google. Jeśli nie podano konta i utworzenie konta GAIA jest włączone, zostanie utworzone konto GAIA i dodane do urządzenia.

Podsumowanie

Publiczne konstruktory

GoogleAccountPreparer()

Metody publiczne

void setAccount(String accountName, String accountPassword)

Ustawia konto Google do utworzenia.

void setAccountSync(boolean value)

Określa, czy włączyć synchronizację na koncie.

void setSyncThenOff(long syncThenOff)

Określa, czy włączyć synchronizację na koncie.

void setUp(TestInformation testInfo)

void setWaitForCheckin(boolean value)

Określa, czy po dodaniu konta należy poczekać na zakończenie rejestracji.

void tearDown(TestInformation testInfo, Throwable e)

Metody chronione

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)

Publiczne konstruktory

GoogleAccountPreparer

public GoogleAccountPreparer ()

Metody publiczne

setAccount

public void setAccount (String accountName, 
                String accountPassword)

Ustawia konto Google do utworzenia.

Parametry
accountName String

accountPassword String

setAccountSync

public void setAccountSync (boolean value)

Określa, czy włączyć synchronizację na koncie.

Parametry
value boolean

setSyncThenOff

public void setSyncThenOff (long syncThenOff)

Określa, czy włączyć synchronizację na koncie.

Parametry
syncThenOff long

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Zgłasza
BuildError
DeviceNotAvailableException
TargetSetupError

setWaitForCheckin

public void setWaitForCheckin (boolean value)

Określa, czy po dodaniu konta należy poczekać na zakończenie rejestracji.

Parametry
value boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Zgłasza
DeviceNotAvailableException

Metody chronione

getAccountBlacklist

protected  getAccountBlacklist ()

Zwroty

getAccountName

protected String getAccountName ()

Zwroty
String

getAccountPassword

protected String getAccountPassword ()

Zwroty
String

getAccountRangeEnd

protected int getAccountRangeEnd ()

Zwroty
int

getAccountRangeStart

protected int getAccountRangeStart ()

Zwroty
int

getCredentialFile

protected File getCredentialFile ()

Zwroty
File

getUseAccountRange

protected boolean getUseAccountRange ()

Zwroty
boolean

loadCredentialsFromFile

protected JSONObject loadCredentialsFromFile (File file)

Parametry
file File

Zwroty
JSONObject

Zgłasza
TargetSetupError

processCredentialFile

protected void processCredentialFile (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo

Zgłasza
TargetSetupError

resolveRelativeFilePath

protected File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

Parametry
buildInfo IBuildInfo

fileName String

Zwroty
File

Zgłasza
TargetSetupError

setCredentialFile

protected void setCredentialFile (File file)

Parametry
file File