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 ที่รองรับการกำหนดค่าบัญชี Google หากไม่ได้ระบุบัญชี และเปิดใช้การสร้างบัญชี 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)

วิธีการที่ได้รับการป้องกัน

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)

เครื่องมือสร้างสาธารณะ

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

protected Set<Integer> getAccountBlacklist ()

การคืนสินค้า
Set<Integer>

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