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 określono konta, a tworzenie konta GAIA jest włączone, zostanie utworzone konto GAIA i dodane do urządzenia.
Podsumowanie
Konstruktory publiczne | |
|---|---|
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 | |
|---|---|
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)
|
Konstruktory publiczne
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 Set<Integer> getAccountBlacklist ()
| Zwraca | |
|---|---|
Set<Integer> |
|
getAccountName
protected String getAccountName ()
| Zwraca | |
|---|---|
String |
|
getAccountPassword
protected String getAccountPassword ()
| Zwraca | |
|---|---|
String |
|
getAccountRangeEnd
protected int getAccountRangeEnd ()
| Zwraca | |
|---|---|
int |
|
getAccountRangeStart
protected int getAccountRangeStart ()
| Zwraca | |
|---|---|
int |
|
getCredentialFile
protected File getCredentialFile ()
| Zwraca | |
|---|---|
File |
|
getUseAccountRange
protected boolean getUseAccountRange ()
| Zwraca | |
|---|---|
boolean |
|
loadCredentialsFromFile
protected JSONObject loadCredentialsFromFile (File file)
| Parametry | |
|---|---|
file |
File |
| Zwraca | |
|---|---|
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 |
| Zwraca | |
|---|---|
File |
|
| Zgłasza | |
|---|---|
TargetSetupError |
|
setCredentialFile
protected void setCredentialFile (File file)
| Parametry | |
|---|---|
file |
File |