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


Un ITargetPreparer che supporta la configurazione degli Account Google. Se non viene specificato alcun account e la creazione dell'account Gaia è abilitata, verrà creato un account Gaia e aggiunto al dispositivo.

Riepilogo

Costruttori pubblici

GoogleAccountPreparer()

Metodi pubblici

void setAccount(String accountName, String accountPassword)

Imposta l'Account Google da creare.

void setAccountSync(boolean value)

Determina se attivare la sincronizzazione sull'account

void setSyncThenOff(long syncThenOff)

Determina se attivare la sincronizzazione sull'account

void setUp(TestInformation testInfo)

void setWaitForCheckin(boolean value)

Imposta se attendere il completamento del check-in dopo l'aggiunta dell'account

void tearDown(TestInformation testInfo, Throwable e)

Metodi protetti

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)

Costruttori pubblici

GoogleAccountPreparer

public GoogleAccountPreparer ()

Metodi pubblici

setAccount

public void setAccount (String accountName, 
                String accountPassword)

Imposta l'Account Google da creare.

Parametri
accountName String

accountPassword String

setAccountSync

public void setAccountSync (boolean value)

Determina se attivare la sincronizzazione sull'account

Parametri
value boolean

setSyncThenOff

public void setSyncThenOff (long syncThenOff)

Determina se attivare la sincronizzazione sull'account

Parametri
syncThenOff long

setUp

public void setUp (TestInformation testInfo)

Parametri
testInfo TestInformation

Lanci
BuildError
DeviceNotAvailableException
TargetSetupError

setWaitForCheckin

public void setWaitForCheckin (boolean value)

Imposta se attendere il completamento del check-in dopo l'aggiunta dell'account

Parametri
value boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametri
testInfo TestInformation

e Throwable

Lanci
DeviceNotAvailableException

Metodi protetti

getAccountBlacklist

protected  getAccountBlacklist ()

Ritorni

getAccountName

protected String getAccountName ()

Ritorni
String

getAccountPassword

protected String getAccountPassword ()

Ritorni
String

getAccountRangeEnd

protected int getAccountRangeEnd ()

Ritorni
int

getAccountRangeStart

protected int getAccountRangeStart ()

Ritorni
int

getCredentialFile

protected File getCredentialFile ()

Ritorni
File

getUseAccountRange

protected boolean getUseAccountRange ()

Ritorni
boolean

loadCredentialsFromFile

protected JSONObject loadCredentialsFromFile (File file)

Parametri
file File

Ritorni
JSONObject

Lanci
TargetSetupError

processCredentialFile

protected void processCredentialFile (IBuildInfo buildInfo)

Parametri
buildInfo IBuildInfo

Lanci
TargetSetupError

resolveRelativeFilePath

protected File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

Parametri
buildInfo IBuildInfo

fileName String

Ritorni
File

Lanci
TargetSetupError

setCredentialFile

protected void setCredentialFile (File file)

Parametri
file File