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