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

‫constructors ציבוריים

GoogleDeviceSetup()

‫methods ציבוריים

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

‫constructors ציבוריים

GoogleDeviceSetup

public GoogleDeviceSetup ()

‫methods ציבוריים

changeSettings

public void changeSettings (ITestDevice device)

משנים את ההגדרות במכשיר.

המאפיין הזה חשוף כדי שניתן יהיה לבטל אותו בכיתות צאצא.

פרמטרים
device ITestDevice: The ITestDevice

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException
TargetSetupError

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

המערכת מעבדת את האפשרויות שהוצאו משימוש וממירה אותן לאפשרויות שבהן נעשה שימוש כרגע.

צריך להפעיל את ה-method הזו לפני כל שיטת עיבוד אחרת. המערכת תציג שגיאה מסוג TargetSetupError אם האפשרות שהוצאה משימוש מבטלת אפשרות שצוינה ולא הוצאה משימוש.

פרמטרים
device ITestDevice

הקפצת הודעות שגיאה (throw)
TargetSetupError

processOptions

public void processOptions (ITestDevice device)

לעבד את כל ה-Option ולהפוך אותם למאפייני מערכת, להגדרות או לפקודות הפעלה. בשלב הזה, לא מופעלות פקודות במכשיר.

המאפיין הזה חשוף כדי שניתן יהיה לשנות אותו במחלקות צאצא.

פרמטרים
device ITestDevice: The ITestDevice

הקפצת הודעות שגיאה (throw)
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