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 |