GoogleDeviceSetup

public class GoogleDeviceSetup
extends DeviceSetup implements ILabPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.DeviceSetup
       ↳ com.google.android.tradefed.targetprep.GoogleDeviceSetup


هي امتداد لـ DeviceSetup يتيح إعداد مواقع إضافية خاصة بـ Google.

ملخّص

الحقول

protected MultiMap<String, String> mGServiceSettings

طُرق وضع التصميم العامة

GoogleDeviceSetup()

الإجراءات العامة

void changeSettings(ITestDevice device)

غيِّر الإعدادات على الجهاز.

void processDeprecatedOptions(ITestDevice device)

تتم معالجة الخيارات المتوقّفة نهائيًا وتحويلها إلى الخيارات المستخدَمة حاليًا.

void processOptions(ITestDevice device)

معالجة جميع Option وتحويلها إلى خصائص أو إعدادات النظام أو تنفيذ الأوامر

void setDeprecatedAirplaneMode(boolean airplaneMode)

متاحة لاختبار الوحدات

void setDeprecatedDefaultDataCallSubscription(int subscription)

متاحة لاختبار الوحدات

void setDeprecatedDefaultSmsSubscription(int subscription)

متاحة لاختبار الوحدات

void setDeprecatedDefaultVoiceCallSubscription(int subscription)

متاحة لاختبار الوحدات

void setDeprecatedGServicesSetting(String key, String value)

متاحة لاختبار الوحدات

void setDeprecatedGlobalSetting(String key, String value)

متاحة لاختبار الوحدات

void setDeprecatedPartnerSetting(String key, String value)

متاحة لاختبار الوحدات

void setDeprecatedSecureSetting(String key, String value)

متاحة لاختبار الوحدات

void setDeprecatedSetting(String key, String value)

متاحة لاختبار الوحدات

طُرق محمية

void setAirplaneMode(BinaryState airplaneMode)

متاحة لاختبار الوحدات

void setDefaultSimData(Integer defaultSimData)

متاحة لاختبار الوحدات

void setDefaultSimSms(Integer defaultSimSms)

متاحة لاختبار الوحدات

void setDefaultSimVoice(Integer defaultSimVoice)

متاحة لاختبار الوحدات

void setWakeGesture(BinaryState wakeGesture)

متاحة لاختبار الوحدات

الحقول

mGServiceSettings

protected MultiMap<String, String> mGServiceSettings

طُرق وضع التصميم العامة

GoogleDeviceSetup

public GoogleDeviceSetup ()

الإجراءات العامة

changeSettings

public void changeSettings (ITestDevice device)

غيِّر الإعدادات على الجهاز.

يتم عرضه حتى تتمكّن فئات الأطفال من إلغائه.

المعلَمات
device ITestDevice: ITestDevice

عمليات الطرح
DeviceNotAvailableException
TargetSetupError

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

تتم معالجة الخيارات المتوقّفة نهائيًا وتحويلها إلى الخيارات المستخدَمة حاليًا.

يجب تنفيذ هذه الطريقة قبل أي طرق معالجة أخرى. سيتم طرح TargetSetupError إذا كان الخيار المتوقّف نهائيًا يتجاوز خيارًا آخر غير متوقّف نهائيًا.

المعلَمات
device ITestDevice

عمليات الطرح
TargetSetupError

processOptions

public void processOptions (ITestDevice device)

معالجة جميع Option وتحويلها إلى خصائص أو إعدادات النظام أو تنفيذ الأوامر لا ينفّذ أي أوامر على الجهاز في الوقت الحالي.

يتم عرضها لكي تتمكّن الفئات الفرعية من إلغاء هذا الإعداد.

المعلَمات
device ITestDevice: ITestDevice

عمليات الطرح
DeviceNotAvailableException
TargetSetupError

setDeprecatedAirplaneMode

public void setDeprecatedAirplaneMode (boolean airplaneMode)

متاحة لاختبار الوحدات

المعلَمات
airplaneMode boolean

setDeprecatedDefaultDataCallSubscription

public void setDeprecatedDefaultDataCallSubscription (int subscription)

متاحة لاختبار الوحدات

المعلَمات
subscription int

setDeprecatedDefaultSmsSubscription

public void setDeprecatedDefaultSmsSubscription (int subscription)

متاحة لاختبار الوحدات

المعلَمات
subscription int

setDeprecatedDefaultVoiceCallSubscription

public void setDeprecatedDefaultVoiceCallSubscription (int subscription)

متاحة لاختبار الوحدات

المعلَمات
subscription int

setDeprecatedGServicesSetting

public void setDeprecatedGServicesSetting (String key, 
                String value)

متاحة لاختبار الوحدات

المعلَمات
key String

value String

setDeprecatedGlobalSetting

public void setDeprecatedGlobalSetting (String key, 
                String value)

متاحة لاختبار الوحدات

المعلَمات
key String

value String

setDeprecatedPartnerSetting

public void setDeprecatedPartnerSetting (String key, 
                String value)

متاحة لاختبار الوحدات

المعلَمات
key String

value String

setDeprecatedSecureSetting

public void setDeprecatedSecureSetting (String key, 
                String value)

متاحة لاختبار الوحدات

المعلَمات
key String

value String

setDeprecatedSetting

public void setDeprecatedSetting (String key, 
                String value)

متاحة لاختبار الوحدات

المعلَمات
key String

value String

طُرق محمية

setAirplaneMode

protected void setAirplaneMode (BinaryState airplaneMode)

متاحة لاختبار الوحدات

المعلَمات
airplaneMode BinaryState

setDefaultSimData

protected void setDefaultSimData (Integer defaultSimData)

متاحة لاختبار الوحدات

المعلَمات
defaultSimData Integer

setDefaultSimSms

protected void setDefaultSimSms (Integer defaultSimSms)

متاحة لاختبار الوحدات

المعلَمات
defaultSimSms Integer

setDefaultSimVoice

protected void setDefaultSimVoice (Integer defaultSimVoice)

متاحة لاختبار الوحدات

المعلَمات
defaultSimVoice Integer

setWakeGesture

protected void setWakeGesture (BinaryState wakeGesture)

متاحة لاختبار الوحدات

المعلَمات
wakeGesture BinaryState