اعتبارًا من عام 2026، ولضمان اتّساق نموذج التطوير الثابت الأساسي واستقرار المنصة في النظام المتكامل، سننشر رمز المصدر في مشروع Android مفتوح المصدر (AOSP) في الربعَين الثاني والرابع. لبناء مشروع Android مفتوح المصدر والمساهمة فيه، استخدِم android-latest-release. سيشير فرع بيان android-latest-release دائمًا إلى أحدث إصدار تم نشره في مشروع Android مفتوح المصدر. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في مشروع Android مفتوح المصدر.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
GoogleAccountPreparer
public
class
GoogleAccountPreparer
extends WaitForDeviceDatetimePreparer
ITargetPreparer يتيح إعداد حسابات Google في حال عدم تحديد أي حساب وتم تفعيل إنشاء حساب Gaia، سيتم إنشاء حساب Gaia وإضافته إلى الجهاز.
ملخّص
الإجراءات العامة |
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)
|
طُرق وضع التصميم العامة
GoogleAccountPreparer
public GoogleAccountPreparer ()
الإجراءات العامة
setAccount
public void setAccount (String accountName,
String accountPassword)
تضبط هذه السمة حساب Google المطلوب إنشاؤه.
| المعلَمات |
accountName |
String |
accountPassword |
String |
setAccountSync
public void setAccountSync (boolean value)
تحديد ما إذا كان سيتم تفعيل المزامنة في الحساب
setSyncThenOff
public void setSyncThenOff (long syncThenOff)
يحدّد هذا الإعداد ما إذا كان سيتم تفعيل المزامنة في الحساب
| المعلَمات |
syncThenOff |
long |
public void setUp (TestInformation testInfo)
| المعلَمات |
testInfo |
TestInformation |
setWaitForCheckin
public void setWaitForCheckin (boolean value)
تحديد ما إذا كان سيتم انتظار اكتمال عملية تسجيل الدخول بعد إضافة الحساب
public void tearDown (TestInformation testInfo,
Throwable e)
| المعلَمات |
testInfo |
TestInformation |
e |
Throwable |
طُرق محمية
getAccountBlacklist
protected Set<Integer> getAccountBlacklist ()
getAccountName
protected String getAccountName ()
getAccountPassword
protected String getAccountPassword ()
getAccountRangeEnd
protected int getAccountRangeEnd ()
getAccountRangeStart
protected int getAccountRangeStart ()
getCredentialFile
protected File getCredentialFile ()
getUseAccountRange
protected boolean getUseAccountRange ()
loadCredentialsFromFile
protected JSONObject loadCredentialsFromFile (File file)
| القيم المُعادة |
JSONObject |
|
processCredentialFile
protected void processCredentialFile (IBuildInfo buildInfo)
| المعلَمات |
buildInfo |
IBuildInfo |
resolveRelativeFilePath
protected File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
| المعلَمات |
buildInfo |
IBuildInfo |
fileName |
String |
setCredentialFile
protected void setCredentialFile (File file)
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2026-06-22 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2026-06-22 (حسب التوقيت العالمي المتفَّق عليه)"],[],[]]