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)
处理所有 |
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)
公开以进行单元测试 |
字段
公共构造函数
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 |