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)

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

void tearDown(TestInformation testInfo, Throwable e)

Metodi protetti

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)

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

Genera
BuildError
DeviceNotAvailableException
TargetSetupError

setWaitForCheckin

public void setWaitForCheckin (boolean value)

Specifica 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

Genera
DeviceNotAvailableException

Metodi protetti

getAccountBlacklist

protected Set<Integer> getAccountBlacklist ()

Resi
Set<Integer>

getAccountName

protected String getAccountName ()

Resi
String

getAccountPassword

protected String getAccountPassword ()

Resi
String

getAccountRangeEnd

protected int getAccountRangeEnd ()

Resi
int

getAccountRangeStart

protected int getAccountRangeStart ()

Resi
int

getCredentialFile

protected File getCredentialFile ()

Resi
File

getUseAccountRange

protected boolean getUseAccountRange ()

Resi
boolean

loadCredentialsFromFile

protected JSONObject loadCredentialsFromFile (File file)

Parametri
file File

Resi
JSONObject

Genera
TargetSetupError

processCredentialFile

protected void processCredentialFile (IBuildInfo buildInfo)

Parametri
buildInfo IBuildInfo

Genera
TargetSetupError

resolveRelativeFilePath

protected File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

Parametri
buildInfo IBuildInfo

fileName String

Resi
File

Genera
TargetSetupError

setCredentialFile

protected void setCredentialFile (File file)

Parametri
file File