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 アカウントの構成をサポートする ITargetPreparer。アカウントが指定されておらず、Gaia アカウントの作成が有効になっている場合、Gaia アカウントが作成され、デバイスに追加されます。
概要
パブリック コンストラクタ | |
|---|---|
GoogleAccountPreparer()
|
|
パブリック メソッド | |
|---|---|
void
|
setAccount(String accountName, String accountPassword)
作成する Google アカウントを設定します。 |
void
|
setAccountSync(boolean value)
アカウントで同期を有効にするかどうかを設定します。 |
void
|
setSyncThenOff(long syncThenOff)
アカウントで同期を有効にするかどうかを設定します。 |
void
|
setUp(TestInformation testInfo)
|
void
|
setWaitForCheckin(boolean value)
アカウントの追加後にチェックインの完了を待つかどうかを設定します。 |
void
|
tearDown(TestInformation testInfo, Throwable e)
|
保護されたメソッド | |
|---|---|
|
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)
|
パブリック コンストラクタ
GoogleAccountPreparer
public GoogleAccountPreparer ()
パブリック メソッド
setAccount
public void setAccount (String accountName,
String accountPassword)作成する Google アカウントを設定します。
| パラメータ | |
|---|---|
accountName |
String |
accountPassword |
String |
setAccountSync
public void setAccountSync (boolean value)
アカウントで同期を有効にするかどうかを設定します
| パラメータ | |
|---|---|
value |
boolean |
setSyncThenOff
public void setSyncThenOff (long syncThenOff)
アカウントで同期を有効にするかどうかを設定します
| パラメータ | |
|---|---|
syncThenOff |
long |
setUp
public void setUp (TestInformation testInfo)
| パラメータ | |
|---|---|
testInfo |
TestInformation |
| 例外 | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
setWaitForCheckin
public void setWaitForCheckin (boolean value)
アカウントを追加した後、チェックインの完了を待つかどうかを設定します
| パラメータ | |
|---|---|
value |
boolean |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| パラメータ | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
保護されたメソッド
getAccountBlacklist
protectedgetAccountBlacklist ()
| 戻り値 | |
|---|---|
|
|
getAccountName
protected String getAccountName ()
| 戻り値 | |
|---|---|
String |
|
getAccountPassword
protected String getAccountPassword ()
| 戻り値 | |
|---|---|
String |
|
getAccountRangeEnd
protected int getAccountRangeEnd ()
| 戻り値 | |
|---|---|
int |
|
getAccountRangeStart
protected int getAccountRangeStart ()
| 戻り値 | |
|---|---|
int |
|
getCredentialFile
protected File getCredentialFile ()
| 戻り値 | |
|---|---|
File |
|
getUseAccountRange
protected boolean getUseAccountRange ()
| 戻り値 | |
|---|---|
boolean |
|
loadCredentialsFromFile
protected JSONObject loadCredentialsFromFile (File file)
| パラメータ | |
|---|---|
file |
File |
| 戻り値 | |
|---|---|
JSONObject |
|
| 例外 | |
|---|---|
TargetSetupError |
|
processCredentialFile
protected void processCredentialFile (IBuildInfo buildInfo)
| パラメータ | |
|---|---|
buildInfo |
IBuildInfo |
| 例外 | |
|---|---|
TargetSetupError |
|
resolveRelativeFilePath
protected File resolveRelativeFilePath (IBuildInfo buildInfo, String fileName)
| パラメータ | |
|---|---|
buildInfo |
IBuildInfo |
fileName |
String |
| 戻り値 | |
|---|---|
File |
|
| 例外 | |
|---|---|
TargetSetupError |
|
setCredentialFile
protected void setCredentialFile (File file)
| パラメータ | |
|---|---|
file |
File |