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 | ||
An extension of DeviceSetup that allows setup of additional Google specific properties.
Summary
Fields | |
|---|---|
protected
MultiMap<String, String> |
mGServiceSettings
|
Public constructors | |
|---|---|
GoogleDeviceSetup()
|
|
Public methods | |
|---|---|
void
|
changeSettings(ITestDevice device)
Change the settings on the device. |
void
|
processDeprecatedOptions(ITestDevice device)
Processes the deprecated options converting them into the currently used options. |
void
|
processOptions(ITestDevice device)
Process all the |
void
|
setDeprecatedAirplaneMode(boolean airplaneMode)
Exposed for unit testing |
void
|
setDeprecatedDefaultDataCallSubscription(int subscription)
Exposed for unit testing |
void
|
setDeprecatedDefaultSmsSubscription(int subscription)
Exposed for unit testing |
void
|
setDeprecatedDefaultVoiceCallSubscription(int subscription)
Exposed for unit testing |
void
|
setDeprecatedGServicesSetting(String key, String value)
Exposed for unit testing |
void
|
setDeprecatedGlobalSetting(String key, String value)
Exposed for unit testing |
void
|
setDeprecatedPartnerSetting(String key, String value)
Exposed for unit testing |
void
|
setDeprecatedSecureSetting(String key, String value)
Exposed for unit testing |
void
|
setDeprecatedSetting(String key, String value)
Exposed for unit testing |
Protected methods | |
|---|---|
void
|
setAirplaneMode(BinaryState airplaneMode)
Exposed for unit testing |
void
|
setDefaultSimData(Integer defaultSimData)
Exposed for unit testing |
void
|
setDefaultSimSms(Integer defaultSimSms)
Exposed for unit testing |
void
|
setDefaultSimVoice(Integer defaultSimVoice)
Exposed for unit testing |
void
|
setWakeGesture(BinaryState wakeGesture)
Exposed for unit testing |
Fields
Public constructors
GoogleDeviceSetup
public GoogleDeviceSetup ()
Public methods
changeSettings
public void changeSettings (ITestDevice device)
Change the settings on the device.
Exposed so children classes may override.
| Parameters | |
|---|---|
device |
ITestDevice: The ITestDevice |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
processDeprecatedOptions
public void processDeprecatedOptions (ITestDevice device)
Processes the deprecated options converting them into the currently used options.
This method should be run before any other processing methods. Will throw a
TargetSetupError if the deprecated option overrides a specified non-deprecated
option.
| Parameters | |
|---|---|
device |
ITestDevice |
| Throws | |
|---|---|
TargetSetupError |
|
processOptions
public void processOptions (ITestDevice device)
Process all the Options and turn them into system props, settings, or run commands.
Does not run any commands on the device at this time.
Exposed so that children classes may override this.
| Parameters | |
|---|---|
device |
ITestDevice: The ITestDevice |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
setDeprecatedAirplaneMode
public void setDeprecatedAirplaneMode (boolean airplaneMode)
Exposed for unit testing
| Parameters | |
|---|---|
airplaneMode |
boolean |
setDeprecatedDefaultDataCallSubscription
public void setDeprecatedDefaultDataCallSubscription (int subscription)
Exposed for unit testing
| Parameters | |
|---|---|
subscription |
int |
setDeprecatedDefaultSmsSubscription
public void setDeprecatedDefaultSmsSubscription (int subscription)
Exposed for unit testing
| Parameters | |
|---|---|
subscription |
int |
setDeprecatedDefaultVoiceCallSubscription
public void setDeprecatedDefaultVoiceCallSubscription (int subscription)
Exposed for unit testing
| Parameters | |
|---|---|
subscription |
int |
setDeprecatedGServicesSetting
public void setDeprecatedGServicesSetting (String key,
String value)Exposed for unit testing
| Parameters | |
|---|---|
key |
String |
value |
String |
setDeprecatedGlobalSetting
public void setDeprecatedGlobalSetting (String key,
String value)Exposed for unit testing
| Parameters | |
|---|---|
key |
String |
value |
String |
setDeprecatedPartnerSetting
public void setDeprecatedPartnerSetting (String key,
String value)Exposed for unit testing
| Parameters | |
|---|---|
key |
String |
value |
String |
setDeprecatedSecureSetting
public void setDeprecatedSecureSetting (String key,
String value)Exposed for unit testing
| Parameters | |
|---|---|
key |
String |
value |
String |
setDeprecatedSetting
public void setDeprecatedSetting (String key,
String value)Exposed for unit testing
| Parameters | |
|---|---|
key |
String |
value |
String |
Protected methods
setAirplaneMode
protected void setAirplaneMode (BinaryState airplaneMode)
Exposed for unit testing
| Parameters | |
|---|---|
airplaneMode |
BinaryState |
setDefaultSimData
protected void setDefaultSimData (Integer defaultSimData)
Exposed for unit testing
| Parameters | |
|---|---|
defaultSimData |
Integer |
setDefaultSimSms
protected void setDefaultSimSms (Integer defaultSimSms)
Exposed for unit testing
| Parameters | |
|---|---|
defaultSimSms |
Integer |
setDefaultSimVoice
protected void setDefaultSimVoice (Integer defaultSimVoice)
Exposed for unit testing
| Parameters | |
|---|---|
defaultSimVoice |
Integer |
setWakeGesture
protected void setWakeGesture (BinaryState wakeGesture)
Exposed for unit testing
| Parameters | |
|---|---|
wakeGesture |
BinaryState |