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


Một tiện ích của DeviceSetup cho phép thiết lập các thuộc tính bổ sung dành riêng cho Google.

Tóm tắt

Trường

protected MultiMap<String, String> mGServiceSettings

Hàm khởi tạo công khai

GoogleDeviceSetup()

Phương thức công khai

void changeSettings(ITestDevice device)

Thay đổi chế độ cài đặt trên thiết bị.

void processDeprecatedOptions(ITestDevice device)

Xử lý các lựa chọn không dùng nữa bằng cách chuyển đổi chúng thành các lựa chọn hiện đang được dùng.

void processOptions(ITestDevice device)

Xử lý tất cả các Option và chuyển chúng thành các thuộc tính, chế độ cài đặt hệ thống hoặc lệnh chạy.

void setDeprecatedAirplaneMode(boolean airplaneMode)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedDefaultDataCallSubscription(int subscription)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedDefaultSmsSubscription(int subscription)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedDefaultVoiceCallSubscription(int subscription)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedGServicesSetting(String key, String value)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedGlobalSetting(String key, String value)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedPartnerSetting(String key, String value)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedSecureSetting(String key, String value)

Được hiển thị để kiểm thử đơn vị

void setDeprecatedSetting(String key, String value)

Được hiển thị để kiểm thử đơn vị

Phương thức được bảo vệ

void setAirplaneMode(BinaryState airplaneMode)

Được hiển thị để kiểm thử đơn vị

void setDefaultSimData(Integer defaultSimData)

Được hiển thị để kiểm thử đơn vị

void setDefaultSimSms(Integer defaultSimSms)

Được hiển thị để kiểm thử đơn vị

void setDefaultSimVoice(Integer defaultSimVoice)

Được hiển thị để kiểm thử đơn vị

void setWakeGesture(BinaryState wakeGesture)

Được hiển thị để kiểm thử đơn vị

Trường

mGServiceSettings

protected MultiMap<String, String> mGServiceSettings

Hàm khởi tạo công khai

GoogleDeviceSetup

public GoogleDeviceSetup ()

Phương thức công khai

changeSettings

public void changeSettings (ITestDevice device)

Thay đổi chế độ cài đặt trên thiết bị.

Được hiển thị để các lớp con có thể ghi đè.

Tham số
device ITestDevice: ITestDevice

Gửi
DeviceNotAvailableException
TargetSetupError

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

Xử lý các lựa chọn không dùng nữa bằng cách chuyển đổi chúng thành các lựa chọn hiện đang được dùng.

Phương thức này phải được chạy trước mọi phương thức xử lý khác. Sẽ gửi một TargetSetupError nếu lựa chọn không dùng nữa ghi đè một lựa chọn không dùng nữa đã chỉ định.

Tham số
device ITestDevice

Gửi
TargetSetupError

processOptions

public void processOptions (ITestDevice device)

Xử lý tất cả các Option và chuyển chúng thành các thuộc tính, chế độ cài đặt hệ thống hoặc lệnh chạy. Hiện không chạy lệnh nào trên thiết bị.

Được hiển thị để các lớp con có thể ghi đè lớp này.

Tham số
device ITestDevice: ITestDevice

Gửi
DeviceNotAvailableException
TargetSetupError

setDeprecatedAirplaneMode

public void setDeprecatedAirplaneMode (boolean airplaneMode)

Được hiển thị để kiểm thử đơn vị

Tham số
airplaneMode boolean

setDeprecatedDefaultDataCallSubscription

public void setDeprecatedDefaultDataCallSubscription (int subscription)

Được hiển thị để kiểm thử đơn vị

Tham số
subscription int

setDeprecatedDefaultSmsSubscription

public void setDeprecatedDefaultSmsSubscription (int subscription)

Được hiển thị để kiểm thử đơn vị

Tham số
subscription int

setDeprecatedDefaultVoiceCallSubscription

public void setDeprecatedDefaultVoiceCallSubscription (int subscription)

Được hiển thị để kiểm thử đơn vị

Tham số
subscription int

setDeprecatedGServicesSetting

public void setDeprecatedGServicesSetting (String key, 
                String value)

Được hiển thị để kiểm thử đơn vị

Tham số
key String

value String

setDeprecatedGlobalSetting

public void setDeprecatedGlobalSetting (String key, 
                String value)

Được hiển thị để kiểm thử đơn vị

Tham số
key String

value String

setDeprecatedPartnerSetting

public void setDeprecatedPartnerSetting (String key, 
                String value)

Được hiển thị để kiểm thử đơn vị

Tham số
key String

value String

setDeprecatedSecureSetting

public void setDeprecatedSecureSetting (String key, 
                String value)

Được hiển thị để kiểm thử đơn vị

Tham số
key String

value String

setDeprecatedSetting

public void setDeprecatedSetting (String key, 
                String value)

Được hiển thị để kiểm thử đơn vị

Tham số
key String

value String

Phương thức được bảo vệ

setAirplaneMode

protected void setAirplaneMode (BinaryState airplaneMode)

Được hiển thị để kiểm thử đơn vị

Tham số
airplaneMode BinaryState

setDefaultSimData

protected void setDefaultSimData (Integer defaultSimData)

Được hiển thị để kiểm thử đơn vị

Tham số
defaultSimData Integer

setDefaultSimSms

protected void setDefaultSimSms (Integer defaultSimSms)

Được hiển thị để kiểm thử đơn vị

Tham số
defaultSimSms Integer

setDefaultSimVoice

protected void setDefaultSimVoice (Integer defaultSimVoice)

Được hiển thị để kiểm thử đơn vị

Tham số
defaultSimVoice Integer

setWakeGesture

protected void setWakeGesture (BinaryState wakeGesture)

Được hiển thị để kiểm thử đơn vị

Tham số
wakeGesture BinaryState