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 ITestDeviceITestDevice

擲回
DeviceNotAvailableException
TargetSetupError

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

處理已淘汰的選項,並轉換為目前使用的選項。

這個方法應在任何其他處理方法之前執行。如果已淘汰的選項覆寫了指定的非已淘汰選項,系統會擲回 TargetSetupError

參數
device ITestDevice

擲回
TargetSetupError

processOptions

public void processOptions (ITestDevice device)

處理所有 Option,並將其轉換為系統屬性、設定或執行指令。 目前不會在裝置上執行任何指令。

公開,以便子類別覆寫此項目。

參數
device ITestDeviceITestDevice

擲回
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