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


追加の Google 固有のプロパティを設定できる DeviceSetup の拡張機能。

概要

フィールド

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