Thiết lập thiết bị

public class DeviceSetup
extends BaseTargetPreparer implements IExternalDependency

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceSetup


Một ITargetPreparer định cấu hình thiết bị để thử nghiệm dựa trên Option được cung cấp.

Yêu cầu thiết bị có thể sử dụng 'adb root', điển hình là loại bản dựng userdebug.

Nên được thực hiện sau khi một bản dựng mới được flash.

Lưu ý: trình chuẩn bị này dành cho các phòng thí nghiệm thử nghiệm liên tục và giả định rằng thiết bị được thử nghiệm sẽ được flash và xóa sạch trước lần chạy tiếp theo. Do đó, nó chỉ dọn dẹp tối thiểu trong quá trình phân tích và không nên được sử dụng trong mô-đun thử nghiệm.

Bản tóm tắt

Lĩnh vực

protected BinaryState mAirplaneMode

protected BinaryState mAutoRotate

protected BinaryState mAutoUpdateTime

protected BinaryState mAutoUpdateTimezone

protected BinaryState mBatterySaver

protected Integer mBatterySaverTrigger

protected BinaryState mBluetooth

protected BinaryState mCell

protected BinaryState mCellAutoSetting

protected BinaryState mData

protected Integer mDefaultSimData

protected Integer mDefaultSimSms

protected Integer mDefaultSimVoice

protected boolean mDisableAudio

protected BinaryState mDisableCwWifiMediator

protected boolean mDisableDalvikVerifier

protected boolean mDisableDialing

protected boolean mDisableDoze

protected boolean mEnableFullBatteryStatsHistory

protected BinaryState mEthernet

protected boolean mForceSkipRunCommands

protected boolean mForceSkipSettings

protected boolean mForceSkipSystemProps

protected MultiMap <String, String> mGlobalSettings

protected BinaryState mHideErrorDialogs

protected BinaryState mInstallNonMarketApps

protected File mLocalDataFile

protected BinaryState mLocationGps

protected BinaryState mLocationNetwork

protected long mMinExternalStorageKb

protected BinaryState mNfc

protected BinaryState mNotificationLed

protected boolean mOptimizedPropertySetting

protected File mPreviousProperties

protected String mRemoteDataPath

protected boolean mRestoreProperties

protected boolean mRestoreSettings

protected mRunCommandAfterSettings

protected mRunCommandBeforeSettings

protected BinaryState mScreenAdaptiveBrightness

protected BinaryState mScreenAlwaysOn

protected BinaryState mScreenAmbientMode

protected Integer mScreenBrightness

protected BinaryState mScreenSaver

protected Long mScreenTimeoutSecs

protected MultiMap <String, String> mSecureSettings

protected mSetProps

protected boolean mSetTestHarness

protected BinaryState mSyncTimezoneWithHost

protected MultiMap <String, String> mSystemSettings

protected String mTimezone

protected boolean mTriggerMediaMounted

protected BinaryState mWakeGesture

protected BinaryState mWifi

protected String mWifiPsk

protected BinaryState mWifiScanAlwaysEnabled

protected String mWifiSsid

protected mWifiSsidToPsk

protected BinaryState mWifiWatchdog

nhà thầu công cộng

DeviceSetup ()

Phương thức công khai

void changeSettings ( ITestDevice device)

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

getDependencies ()
ITestDevice getDevice ( TestInformation testInfo)
boolean isForceSkipSystemProps ()
void processDeprecatedOptions ( ITestDevice device)

Xử lý các tùy chọn không dùng nữa để chuyển đổi chúng thành các tùy chọn hiện được sử dụng.

void processOptions ( ITestDevice device)

Xử lý tất cả Option và biến chúng thành các đạo cụ hệ thống, cài đặt hoặc lệnh chạy.

static void setCommandForBinaryState ( BinaryState state, commands, String onCommand, String offCommand) setCommandForBinaryState ( BinaryState state, commands, String onCommand, String offCommand)

Phương thức trợ giúp để thêm lệnh chạy BẬT/TẮT sẽ được thực thi trên thiết bị.

void setGlobalSetting (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

void setSecureSetting (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

static void setSettingForBinaryState ( BinaryState state, MultiMap <String, String> settingsMap, String setting, String onValue, String offValue)

Phương pháp trợ giúp để thêm cài đặt BẬT/TẮT vào bản đồ cài đặt.

void setSystemSetting (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

phương pháp được bảo vệ

void setAirplaneMode ( BinaryState airplaneMode)

Tiếp xúc với thử nghiệm đơn vị

void setAutoRotate ( BinaryState autoRotate)

Tiếp xúc với thử nghiệm đơn vị

void setAutoUpdateTime ( BinaryState autoUpdateTime)

Tiếp xúc với thử nghiệm đơn vị

void setAutoUpdateTimezone ( BinaryState autoUpdateTimezone)

Tiếp xúc với thử nghiệm đơn vị

void setBatterySaver ( BinaryState batterySaver)

Tiếp xúc với thử nghiệm đơn vị

void setBatterySaverTrigger (Integer batterySaverTrigger)

Tiếp xúc với thử nghiệm đơn vị

void setBluetooth ( BinaryState bluetooth)

Tiếp xúc với thử nghiệm đơn vị

void setCell ( BinaryState cell)
void setCellAutoSetting ( BinaryState cellAutoSetting)
void setData ( BinaryState data)
void setDefaultSimData (Integer defaultSimData)

Tiếp xúc với thử nghiệm đơn vị

void setDefaultSimSms (Integer defaultSimSms)

Tiếp xúc với thử nghiệm đơn vị

void setDefaultSimVoice (Integer defaultSimVoice)

Tiếp xúc với thử nghiệm đơn vị

void setDeprecatedAudioSilent (boolean silent)

Phương pháp này không được chấp nhận. thay vào đó hãy sử dụng setDisableAudio(boolean) .

void setDeprecatedMinExternalStoreSpace (long storeSpace)

Phương pháp này không được chấp nhận. thay vào đó hãy sử dụng setMinExternalStorageKb(long) .

void setDeprecatedSetProp (String prop)

Phương pháp này không được chấp nhận. thay vào đó hãy sử dụng setProperty(String, String) .

void setDisableAudio (boolean disable)

Tiếp xúc với thử nghiệm đơn vị

void setDisableCwWifiMediator ( BinaryState disableCwWifiMediator)
void setDisableDalvikVerifier (boolean disableDalvikVerifier)

Tiếp xúc với thử nghiệm đơn vị

void setDisableDialing (boolean disableDialing)

Tiếp xúc với thử nghiệm đơn vị

void setDisableDoze (boolean disableDoze)

Tiếp xúc với thử nghiệm đơn vị

void setEnableFullBatteryStatsHistory (boolean enableFullBatteryStatsHistory)

Tiếp xúc với thử nghiệm đơn vị

void setEthernet ( BinaryState ethernet)

Tiếp xúc với thử nghiệm đơn vị

void setForceSkipSystemProps (boolean force)

Tiếp xúc với thử nghiệm đơn vị

void setInstallNonMarketApps ( BinaryState installNonMarketApps)

Tiếp xúc với thử nghiệm đơn vị

void setLocalDataPath (File path)

Tiếp xúc với thử nghiệm đơn vị

void setLocationGps ( BinaryState locationGps)

Tiếp xúc với thử nghiệm đơn vị

void setLocationNetwork ( BinaryState locationNetwork)

Tiếp xúc với thử nghiệm đơn vị

void setMinExternalStorageKb (long storageKb)

Tiếp xúc với thử nghiệm đơn vị

void setNfc ( BinaryState nfc)

Tiếp xúc với thử nghiệm đơn vị

void setNotificationLed ( BinaryState notificationLed)

Tiếp xúc với thử nghiệm đơn vị

void setProperty (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

void setRestoreProperties (boolean restoreProperties)

Tiếp xúc với thử nghiệm đơn vị

void setRestoreSettings (boolean restoreSettings)

Tiếp xúc với thử nghiệm đơn vị

void setScreenAdaptiveBrightness ( BinaryState screenAdaptiveBrightness)

Tiếp xúc với thử nghiệm đơn vị

void setScreenAlwaysOn ( BinaryState screenAlwaysOn)

Tiếp xúc với thử nghiệm đơn vị

void setScreenAmbientMode ( BinaryState screenAmbientMode)

Tiếp xúc với thử nghiệm đơn vị

void setScreenBrightness (Integer screenBrightness)

Tiếp xúc với thử nghiệm đơn vị

void setScreenSaver ( BinaryState screenSaver)

Tiếp xúc với thử nghiệm đơn vị

void setScreenTimeoutSecs (Long screenTimeoutSecs)

Tiếp xúc với thử nghiệm đơn vị

void setTestHarness (boolean setTestHarness)

Tiếp xúc với thử nghiệm đơn vị

void setTimezone (String timezone)

Tiếp xúc với thử nghiệm đơn vị

void setTriggerMediaMounted (boolean triggerMediaMounted)

Tiếp xúc với thử nghiệm đơn vị

void setWakeGesture ( BinaryState wakeGesture)

Tiếp xúc với thử nghiệm đơn vị

void setWifi ( BinaryState wifi)

Tiếp xúc với thử nghiệm đơn vị

void setWifiNetwork (String wifiNetwork)

Tiếp xúc với thử nghiệm đơn vị

void setWifiPsk (String wifiPsk)
void setWifiScanAlwaysEnabled ( BinaryState wifiScanAlwaysEnabled)

Tiếp xúc với thử nghiệm đơn vị

void setWifiSsidToPsk ( wifiSssidToPsk) setWifiSsidToPsk ( wifiSssidToPsk)
void setWifiWatchdog ( BinaryState wifiWatchdog)

Tiếp xúc với thử nghiệm đơn vị

Lĩnh vực

mChế độ máy bay

protected BinaryState mAirplaneMode

mAutoRotate

protected BinaryState mAutoRotate

mAutoUpdateTime

protected BinaryState mAutoUpdateTime

mAutoUpdateMúi giờ

protected BinaryState mAutoUpdateTimezone

mBatterySaver

protected BinaryState mBatterySaver

mBatterySaverKích hoạt

protected Integer mBatterySaverTrigger

mBluetooth

protected BinaryState mBluetooth

mCell

protected BinaryState mCell

mCellAutoSetting

protected BinaryState mCellAutoSetting

mData

protected BinaryState mData

mDefaultSimData

protected Integer mDefaultSimData

mDefaultSimSms

protected Integer mDefaultSimSms

mDefaultSimVoice

protected Integer mDefaultSimVoice

mDisableAudio

protected boolean mDisableAudio

mDisableCwWifiNgười hòa giải

protected BinaryState mDisableCwWifiMediator

mDisableDalvikTrình xác minh

protected boolean mDisableDalvikVerifier

mDisableQuay số

protected boolean mDisableDialing

mDisableNgủ gật

protected boolean mDisableDoze

mEnableFullBatteryStatsLịch sử

protected boolean mEnableFullBatteryStatsHistory

mEthernet

protected BinaryState mEthernet

mForceSkipRunLệnh

protected boolean mForceSkipRunCommands

mForceSkipSettings

protected boolean mForceSkipSettings

mForceSkipSystemProps

protected boolean mForceSkipSystemProps

mGlobalSettings

protected MultiMap<String, String> mGlobalSettings

mHideErrorDialogs

protected BinaryState mHideErrorDialogs

mInstallNonMarketApps

protected BinaryState mInstallNonMarketApps

mLocalDataFile

protected File mLocalDataFile

mLocationGps

protected BinaryState mLocationGps

mLocationMạng

protected BinaryState mLocationNetwork

mMinExternalStorageKb

protected long mMinExternalStorageKb

mNfc

protected BinaryState mNfc

mNotificationLed

protected BinaryState mNotificationLed

mOptimizedPropertySetting

protected boolean mOptimizedPropertySetting

mPreviousProperties

protected File mPreviousProperties

mRemoteDataPath

protected String mRemoteDataPath

mRestoreProperties

protected boolean mRestoreProperties

mRestoreSettings

protected boolean mRestoreSettings

mRunCommandAfterSettings

protected  mRunCommandAfterSettings

mRunCommand BeforeSettings

protected  mRunCommandBeforeSettings

mScreenAdaptiveĐộ sáng

protected BinaryState mScreenAdaptiveBrightness

mScreenAlwaysOn

protected BinaryState mScreenAlwaysOn

mScreenAmbientMode

protected BinaryState mScreenAmbientMode

mScreenĐộ sáng

protected Integer mScreenBrightness

mScreenSaver

protected BinaryState mScreenSaver

mScreenTimeoutSecs

protected Long mScreenTimeoutSecs

mSecureSettings

protected MultiMap<String, String> mSecureSettings

mSetProps

protected  mSetProps

mSetTestKhai thác

protected boolean mSetTestHarness

mSyncTimezoneWithHost

protected BinaryState mSyncTimezoneWithHost

mSystemSettings

protected MultiMap<String, String> mSystemSettings

mMúi giờ

protected String mTimezone

mTriggerMediaMounted

protected boolean mTriggerMediaMounted

mWakeGesture

protected BinaryState mWakeGesture

mWifi

protected BinaryState mWifi

mWifiPsk

protected String mWifiPsk

mWifiScanAlwaysEnabled

protected BinaryState mWifiScanAlwaysEnabled

mWifiSsid

protected String mWifiSsid

mWifiSsidToPsk

protected  mWifiSsidToPsk

mWifiCơ quan giám sát

protected BinaryState mWifiWatchdog

nhà thầu công cộng

Thiết lập thiết bị

public DeviceSetup ()

Phương thức công khai

thay đổi cài đặt

public void changeSettings (ITestDevice device)

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

Tiếp xúc để các lớp trẻ em có thể ghi đè.

Thông số
device ITestDevice : Thiết ITestDevice

ném
DeviceNotAvailableException nếu thiết bị không có sẵn
TargetSetupError nếu có lỗi cài đặt cài đặt

nhận phụ thuộc

public  getDependencies ()

trả lại

getDevice

public ITestDevice getDevice (TestInformation testInfo)

Thông số
testInfo TestInformation

trả lại
ITestDevice

isForceSkipSystemProps

public boolean isForceSkipSystemProps ()

trả lại
boolean

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

Xử lý các tùy chọn không dùng nữa để chuyển đổi chúng thành các tùy chọn hiện được sử dụng.

Phương pháp này nên được chạy trước bất kỳ phương pháp xử lý nào khác. Sẽ ném TargetSetupError nếu tùy chọn không dùng nữa sẽ ghi đè một tùy chọn không dùng nữa đã chỉ định.

Thông số
device ITestDevice

ném
TargetSetupError nếu có xung đột

quy trìnhTùy chọn

public void processOptions (ITestDevice device)

Xử lý tất cả Option và biến chúng thành các đạo cụ hệ thống, cài đặt hoặc lệnh chạy. Không chạy bất kỳ lệnh nào trên thiết bị vào lúc này.

Tiếp xúc để các lớp trẻ em có thể ghi đè lên điều này.

Thông số
device ITestDevice : Thiết ITestDevice

ném
DeviceNotAvailableException nếu thiết bị không có sẵn
TargetSetupError nếu Option s xung đột

setCommandForBinaryState

public static void setCommandForBinaryState (BinaryState state, 
                 commands, 
                String onCommand, 
                String offCommand)

Phương thức trợ giúp để thêm lệnh chạy BẬT/TẮT sẽ được thực thi trên thiết bị.

Thông số
state BinaryState : BinaryState

commands : Danh sách các lệnh để thêm lệnh bật hoặc tắt.

onCommand String : Lệnh chạy nếu BẬT. Bỏ qua nếu lệnh là null

offCommand String : Lệnh chạy nếu TẮT. Bỏ qua nếu lệnh là null

setGlobalSetting

public void setGlobalSetting (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

setSecureSetting

public void setSecureSetting (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

setSettingForBinaryState

public static void setSettingForBinaryState (BinaryState state, 
                MultiMap<String, String> settingsMap, 
                String setting, 
                String onValue, 
                String offValue)

Phương pháp trợ giúp để thêm cài đặt BẬT/TẮT vào bản đồ cài đặt.

Thông số
state BinaryState : BinaryState

settingsMap MultiMap : MultiMap được sử dụng để lưu trữ cài đặt.

setting String : Phím cài đặt

onValue String : Giá trị nếu BẬT

offValue String : Giá trị nếu TẮT

thiết lậpHệ thốngCài đặt

public void setSystemSetting (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

cài đặt

public void setUp (TestInformation testInfo)

Thông số
testInfo TestInformation

ném
BuildError
DeviceNotAvailableException
TargetSetupError

phá bỏ

public void tearDown (TestInformation testInfo, 
                Throwable e)

Thông số
testInfo TestInformation

e Throwable

ném
DeviceNotAvailableException

phương pháp được bảo vệ

đặtChế độ máy bay

protected void setAirplaneMode (BinaryState airplaneMode)

Tiếp xúc với thử nghiệm đơn vị

Thông số
airplaneMode BinaryState

đặtTự độngXoay

protected void setAutoRotate (BinaryState autoRotate)

Tiếp xúc với thử nghiệm đơn vị

Thông số
autoRotate BinaryState

setAutoUpdateTime

protected void setAutoUpdateTime (BinaryState autoUpdateTime)

Tiếp xúc với thử nghiệm đơn vị

Thông số
autoUpdateTime BinaryState

setAutoUpdateMúi giờ

protected void setAutoUpdateTimezone (BinaryState autoUpdateTimezone)

Tiếp xúc với thử nghiệm đơn vị

Thông số
autoUpdateTimezone BinaryState

đặtBatterySaver

protected void setBatterySaver (BinaryState batterySaver)

Tiếp xúc với thử nghiệm đơn vị

Thông số
batterySaver BinaryState

setBatterySaverKích hoạt

protected void setBatterySaverTrigger (Integer batterySaverTrigger)

Tiếp xúc với thử nghiệm đơn vị

Thông số
batterySaverTrigger Integer

thiết lậpBluetooth

protected void setBluetooth (BinaryState bluetooth)

Tiếp xúc với thử nghiệm đơn vị

Thông số
bluetooth BinaryState

thiết lậpCell

protected void setCell (BinaryState cell)

Thông số
cell BinaryState

setCellAutoSetting

protected void setCellAutoSetting (BinaryState cellAutoSetting)

Thông số
cellAutoSetting BinaryState

setData

protected void setData (BinaryState data)

Thông số
data BinaryState

setDefaultSimData

protected void setDefaultSimData (Integer defaultSimData)

Tiếp xúc với thử nghiệm đơn vị

Thông số
defaultSimData Integer

setDefaultSimSms

protected void setDefaultSimSms (Integer defaultSimSms)

Tiếp xúc với thử nghiệm đơn vị

Thông số
defaultSimSms Integer

setDefaultSimVoice

protected void setDefaultSimVoice (Integer defaultSimVoice)

Tiếp xúc với thử nghiệm đơn vị

Thông số
defaultSimVoice Integer

setDeprecatedAudioIm lặng

protected void setDeprecatedAudioSilent (boolean silent)

Phương pháp này không được chấp nhận.
thay vào đó hãy sử dụng setDisableAudio(boolean) .

Tiếp xúc với thử nghiệm đơn vị

Thông số
silent boolean

setDeprecatedMinExternalStoreSpace

protected void setDeprecatedMinExternalStoreSpace (long storeSpace)

Phương pháp này không được chấp nhận.
thay vào đó hãy sử dụng setMinExternalStorageKb(long) .

Tiếp xúc với thử nghiệm đơn vị

Thông số
storeSpace long

setDeprecatedSetProp

protected void setDeprecatedSetProp (String prop)

Phương pháp này không được chấp nhận.
thay vào đó hãy sử dụng setProperty(String, String) .

Tiếp xúc với thử nghiệm đơn vị

Thông số
prop String

setDisableAudio

protected void setDisableAudio (boolean disable)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disable boolean

setDisableCwWifiMediator

protected void setDisableCwWifiMediator (BinaryState disableCwWifiMediator)

Thông số
disableCwWifiMediator BinaryState

setDisableDalvikVerifier

protected void setDisableDalvikVerifier (boolean disableDalvikVerifier)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disableDalvikVerifier boolean

setDisableDialing

protected void setDisableDialing (boolean disableDialing)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disableDialing boolean

setDisableDoze

protected void setDisableDoze (boolean disableDoze)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disableDoze boolean

setEnableFullBatteryStatsHistory

protected void setEnableFullBatteryStatsHistory (boolean enableFullBatteryStatsHistory)

Tiếp xúc với thử nghiệm đơn vị

Thông số
enableFullBatteryStatsHistory boolean

thiết lậpEthernet

protected void setEthernet (BinaryState ethernet)

Tiếp xúc với thử nghiệm đơn vị

Thông số
ethernet BinaryState

setForceSkipSystemProps

protected void setForceSkipSystemProps (boolean force)

Tiếp xúc với thử nghiệm đơn vị

Thông số
force boolean

setInstallNonMarketApps

protected void setInstallNonMarketApps (BinaryState installNonMarketApps)

Tiếp xúc với thử nghiệm đơn vị

Thông số
installNonMarketApps BinaryState

setLocalDataPath

protected void setLocalDataPath (File path)

Tiếp xúc với thử nghiệm đơn vị

Thông số
path File

đặtVị tríGps

protected void setLocationGps (BinaryState locationGps)

Tiếp xúc với thử nghiệm đơn vị

Thông số
locationGps BinaryState

thiết lậpLocationMạng

protected void setLocationNetwork (BinaryState locationNetwork)

Tiếp xúc với thử nghiệm đơn vị

Thông số
locationNetwork BinaryState

setMinExternalStorageKb

protected void setMinExternalStorageKb (long storageKb)

Tiếp xúc với thử nghiệm đơn vị

Thông số
storageKb long

setNfc

protected void setNfc (BinaryState nfc)

Tiếp xúc với thử nghiệm đơn vị

Thông số
nfc BinaryState

setNotificationLed

protected void setNotificationLed (BinaryState notificationLed)

Tiếp xúc với thử nghiệm đơn vị

Thông số
notificationLed BinaryState

setProperty

protected void setProperty (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

setRestoreProperties

protected void setRestoreProperties (boolean restoreProperties)

Tiếp xúc với thử nghiệm đơn vị

Thông số
restoreProperties boolean

setRestoreSettings

protected void setRestoreSettings (boolean restoreSettings)

Tiếp xúc với thử nghiệm đơn vị

Thông số
restoreSettings boolean

setScreenAdaptiveBrightness

protected void setScreenAdaptiveBrightness (BinaryState screenAdaptiveBrightness)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenAdaptiveBrightness BinaryState

setScreenAlwaysOn

protected void setScreenAlwaysOn (BinaryState screenAlwaysOn)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenAlwaysOn BinaryState

setScreenAmbientMode

protected void setScreenAmbientMode (BinaryState screenAmbientMode)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenAmbientMode BinaryState

setScreenĐộ sáng

protected void setScreenBrightness (Integer screenBrightness)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenBrightness Integer

setScreenSaver

protected void setScreenSaver (BinaryState screenSaver)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenSaver BinaryState

setScreenTimeoutSecs

protected void setScreenTimeoutSecs (Long screenTimeoutSecs)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenTimeoutSecs Long

setTestKhai thác

protected void setTestHarness (boolean setTestHarness)

Tiếp xúc với thử nghiệm đơn vị

Thông số
setTestHarness boolean

đặt múi giờ

protected void setTimezone (String timezone)

Tiếp xúc với thử nghiệm đơn vị

Thông số
timezone String

setTriggerMediaMounted

protected void setTriggerMediaMounted (boolean triggerMediaMounted)

Tiếp xúc với thử nghiệm đơn vị

Thông số
triggerMediaMounted boolean

setWakeGesture

protected void setWakeGesture (BinaryState wakeGesture)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wakeGesture BinaryState

thiết lậpWifi

protected void setWifi (BinaryState wifi)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifi BinaryState

thiết lậpMạngWifi

protected void setWifiNetwork (String wifiNetwork)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifiNetwork String

thiết lậpWifiPsk

protected void setWifiPsk (String wifiPsk)

Thông số
wifiPsk String

đặtWifiScanAlwaysEnabled

protected void setWifiScanAlwaysEnabled (BinaryState wifiScanAlwaysEnabled)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifiScanAlwaysEnabled BinaryState

setWifiSsidToPsk

protected void setWifiSsidToPsk ( wifiSssidToPsk)

Thông số
wifiSssidToPsk

thiết lậpWifiWatchdog

protected void setWifiWatchdog (BinaryState wifiWatchdog)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifiWatchdog BinaryState

,

Thiết lập thiết bị

public class DeviceSetup
extends BaseTargetPreparer implements IExternalDependency

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceSetup


Một ITargetPreparer định cấu hình thiết bị để thử nghiệm dựa trên Option được cung cấp.

Yêu cầu thiết bị có thể sử dụng 'adb root', điển hình là loại bản dựng userdebug.

Nên được thực hiện sau khi một bản dựng mới được flash.

Lưu ý: trình chuẩn bị này dành cho các phòng thí nghiệm thử nghiệm liên tục và giả định rằng thiết bị được thử nghiệm sẽ được flash và xóa sạch trước lần chạy tiếp theo. Do đó, nó chỉ dọn dẹp tối thiểu trong quá trình phân tích và không nên được sử dụng trong mô-đun thử nghiệm.

Bản tóm tắt

Lĩnh vực

protected BinaryState mAirplaneMode

protected BinaryState mAutoRotate

protected BinaryState mAutoUpdateTime

protected BinaryState mAutoUpdateTimezone

protected BinaryState mBatterySaver

protected Integer mBatterySaverTrigger

protected BinaryState mBluetooth

protected BinaryState mCell

protected BinaryState mCellAutoSetting

protected BinaryState mData

protected Integer mDefaultSimData

protected Integer mDefaultSimSms

protected Integer mDefaultSimVoice

protected boolean mDisableAudio

protected BinaryState mDisableCwWifiMediator

protected boolean mDisableDalvikVerifier

protected boolean mDisableDialing

protected boolean mDisableDoze

protected boolean mEnableFullBatteryStatsHistory

protected BinaryState mEthernet

protected boolean mForceSkipRunCommands

protected boolean mForceSkipSettings

protected boolean mForceSkipSystemProps

protected MultiMap <String, String> mGlobalSettings

protected BinaryState mHideErrorDialogs

protected BinaryState mInstallNonMarketApps

protected File mLocalDataFile

protected BinaryState mLocationGps

protected BinaryState mLocationNetwork

protected long mMinExternalStorageKb

protected BinaryState mNfc

protected BinaryState mNotificationLed

protected boolean mOptimizedPropertySetting

protected File mPreviousProperties

protected String mRemoteDataPath

protected boolean mRestoreProperties

protected boolean mRestoreSettings

protected mRunCommandAfterSettings

protected mRunCommandBeforeSettings

protected BinaryState mScreenAdaptiveBrightness

protected BinaryState mScreenAlwaysOn

protected BinaryState mScreenAmbientMode

protected Integer mScreenBrightness

protected BinaryState mScreenSaver

protected Long mScreenTimeoutSecs

protected MultiMap <String, String> mSecureSettings

protected mSetProps

protected boolean mSetTestHarness

protected BinaryState mSyncTimezoneWithHost

protected MultiMap <String, String> mSystemSettings

protected String mTimezone

protected boolean mTriggerMediaMounted

protected BinaryState mWakeGesture

protected BinaryState mWifi

protected String mWifiPsk

protected BinaryState mWifiScanAlwaysEnabled

protected String mWifiSsid

protected mWifiSsidToPsk

protected BinaryState mWifiWatchdog

nhà thầu công cộng

DeviceSetup ()

Phương thức công khai

void changeSettings ( ITestDevice device)

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

getDependencies ()
ITestDevice getDevice ( TestInformation testInfo)
boolean isForceSkipSystemProps ()
void processDeprecatedOptions ( ITestDevice device)

Xử lý các tùy chọn không dùng nữa để chuyển đổi chúng thành các tùy chọn hiện được sử dụng.

void processOptions ( ITestDevice device)

Xử lý tất cả Option và biến chúng thành các đạo cụ hệ thống, cài đặt hoặc lệnh chạy.

static void setCommandForBinaryState ( BinaryState state, commands, String onCommand, String offCommand) setCommandForBinaryState ( BinaryState state, commands, String onCommand, String offCommand)

Phương thức trợ giúp để thêm lệnh chạy BẬT/TẮT sẽ được thực thi trên thiết bị.

void setGlobalSetting (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

void setSecureSetting (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

static void setSettingForBinaryState ( BinaryState state, MultiMap <String, String> settingsMap, String setting, String onValue, String offValue)

Phương pháp trợ giúp để thêm cài đặt BẬT/TẮT vào bản đồ cài đặt.

void setSystemSetting (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

phương pháp được bảo vệ

void setAirplaneMode ( BinaryState airplaneMode)

Tiếp xúc với thử nghiệm đơn vị

void setAutoRotate ( BinaryState autoRotate)

Tiếp xúc với thử nghiệm đơn vị

void setAutoUpdateTime ( BinaryState autoUpdateTime)

Tiếp xúc với thử nghiệm đơn vị

void setAutoUpdateTimezone ( BinaryState autoUpdateTimezone)

Tiếp xúc với thử nghiệm đơn vị

void setBatterySaver ( BinaryState batterySaver)

Tiếp xúc với thử nghiệm đơn vị

void setBatterySaverTrigger (Integer batterySaverTrigger)

Tiếp xúc với thử nghiệm đơn vị

void setBluetooth ( BinaryState bluetooth)

Tiếp xúc với thử nghiệm đơn vị

void setCell ( BinaryState cell)
void setCellAutoSetting ( BinaryState cellAutoSetting)
void setData ( BinaryState data)
void setDefaultSimData (Integer defaultSimData)

Tiếp xúc với thử nghiệm đơn vị

void setDefaultSimSms (Integer defaultSimSms)

Tiếp xúc với thử nghiệm đơn vị

void setDefaultSimVoice (Integer defaultSimVoice)

Tiếp xúc với thử nghiệm đơn vị

void setDeprecatedAudioSilent (boolean silent)

Phương pháp này không được chấp nhận. thay vào đó hãy sử dụng setDisableAudio(boolean) .

void setDeprecatedMinExternalStoreSpace (long storeSpace)

Phương pháp này không được chấp nhận. thay vào đó hãy sử dụng setMinExternalStorageKb(long) .

void setDeprecatedSetProp (String prop)

Phương pháp này không được chấp nhận. thay vào đó hãy sử dụng setProperty(String, String) .

void setDisableAudio (boolean disable)

Tiếp xúc với thử nghiệm đơn vị

void setDisableCwWifiMediator ( BinaryState disableCwWifiMediator)
void setDisableDalvikVerifier (boolean disableDalvikVerifier)

Tiếp xúc với thử nghiệm đơn vị

void setDisableDialing (boolean disableDialing)

Tiếp xúc với thử nghiệm đơn vị

void setDisableDoze (boolean disableDoze)

Tiếp xúc với thử nghiệm đơn vị

void setEnableFullBatteryStatsHistory (boolean enableFullBatteryStatsHistory)

Tiếp xúc với thử nghiệm đơn vị

void setEthernet ( BinaryState ethernet)

Tiếp xúc với thử nghiệm đơn vị

void setForceSkipSystemProps (boolean force)

Tiếp xúc với thử nghiệm đơn vị

void setInstallNonMarketApps ( BinaryState installNonMarketApps)

Tiếp xúc với thử nghiệm đơn vị

void setLocalDataPath (File path)

Tiếp xúc với thử nghiệm đơn vị

void setLocationGps ( BinaryState locationGps)

Tiếp xúc với thử nghiệm đơn vị

void setLocationNetwork ( BinaryState locationNetwork)

Tiếp xúc với thử nghiệm đơn vị

void setMinExternalStorageKb (long storageKb)

Tiếp xúc với thử nghiệm đơn vị

void setNfc ( BinaryState nfc)

Tiếp xúc với thử nghiệm đơn vị

void setNotificationLed ( BinaryState notificationLed)

Tiếp xúc với thử nghiệm đơn vị

void setProperty (String key, String value)

Tiếp xúc với thử nghiệm đơn vị

void setRestoreProperties (boolean restoreProperties)

Tiếp xúc với thử nghiệm đơn vị

void setRestoreSettings (boolean restoreSettings)

Tiếp xúc với thử nghiệm đơn vị

void setScreenAdaptiveBrightness ( BinaryState screenAdaptiveBrightness)

Tiếp xúc với thử nghiệm đơn vị

void setScreenAlwaysOn ( BinaryState screenAlwaysOn)

Tiếp xúc với thử nghiệm đơn vị

void setScreenAmbientMode ( BinaryState screenAmbientMode)

Tiếp xúc với thử nghiệm đơn vị

void setScreenBrightness (Integer screenBrightness)

Tiếp xúc với thử nghiệm đơn vị

void setScreenSaver ( BinaryState screenSaver)

Tiếp xúc với thử nghiệm đơn vị

void setScreenTimeoutSecs (Long screenTimeoutSecs)

Tiếp xúc với thử nghiệm đơn vị

void setTestHarness (boolean setTestHarness)

Tiếp xúc với thử nghiệm đơn vị

void setTimezone (String timezone)

Tiếp xúc với thử nghiệm đơn vị

void setTriggerMediaMounted (boolean triggerMediaMounted)

Tiếp xúc với thử nghiệm đơn vị

void setWakeGesture ( BinaryState wakeGesture)

Tiếp xúc với thử nghiệm đơn vị

void setWifi ( BinaryState wifi)

Tiếp xúc với thử nghiệm đơn vị

void setWifiNetwork (String wifiNetwork)

Tiếp xúc với thử nghiệm đơn vị

void setWifiPsk (String wifiPsk)
void setWifiScanAlwaysEnabled ( BinaryState wifiScanAlwaysEnabled)

Tiếp xúc với thử nghiệm đơn vị

void setWifiSsidToPsk ( wifiSssidToPsk) setWifiSsidToPsk ( wifiSssidToPsk)
void setWifiWatchdog ( BinaryState wifiWatchdog)

Tiếp xúc với thử nghiệm đơn vị

Lĩnh vực

mChế độ máy bay

protected BinaryState mAirplaneMode

mAutoRotate

protected BinaryState mAutoRotate

mAutoUpdateTime

protected BinaryState mAutoUpdateTime

mAutoUpdateMúi giờ

protected BinaryState mAutoUpdateTimezone

mBatterySaver

protected BinaryState mBatterySaver

mBatterySaverKích hoạt

protected Integer mBatterySaverTrigger

mBluetooth

protected BinaryState mBluetooth

mCell

protected BinaryState mCell

mCellAutoSetting

protected BinaryState mCellAutoSetting

mData

protected BinaryState mData

mDefaultSimData

protected Integer mDefaultSimData

mDefaultSimSms

protected Integer mDefaultSimSms

mDefaultSimVoice

protected Integer mDefaultSimVoice

mDisableAudio

protected boolean mDisableAudio

mDisableCwWifiNgười hòa giải

protected BinaryState mDisableCwWifiMediator

mDisableDalvikTrình xác minh

protected boolean mDisableDalvikVerifier

mDisableQuay số

protected boolean mDisableDialing

mDisableNgủ gật

protected boolean mDisableDoze

mEnableFullBatteryStatsLịch sử

protected boolean mEnableFullBatteryStatsHistory

mEthernet

protected BinaryState mEthernet

mForceSkipRunLệnh

protected boolean mForceSkipRunCommands

mForceSkipSettings

protected boolean mForceSkipSettings

mForceSkipSystemProps

protected boolean mForceSkipSystemProps

mGlobalSettings

protected MultiMap<String, String> mGlobalSettings

mHideErrorDialogs

protected BinaryState mHideErrorDialogs

mInstallNonMarketApps

protected BinaryState mInstallNonMarketApps

mLocalDataFile

protected File mLocalDataFile

mLocationGps

protected BinaryState mLocationGps

mLocationMạng

protected BinaryState mLocationNetwork

mMinExternalStorageKb

protected long mMinExternalStorageKb

mNfc

protected BinaryState mNfc

mNotificationLed

protected BinaryState mNotificationLed

mOptimizedPropertySetting

protected boolean mOptimizedPropertySetting

mPreviousProperties

protected File mPreviousProperties

mRemoteDataPath

protected String mRemoteDataPath

mRestoreProperties

protected boolean mRestoreProperties

mRestoreSettings

protected boolean mRestoreSettings

mRunCommandAfterSettings

protected  mRunCommandAfterSettings

mRunCommand BeforeSettings

protected  mRunCommandBeforeSettings

mScreenAdaptiveĐộ sáng

protected BinaryState mScreenAdaptiveBrightness

mScreenAlwaysOn

protected BinaryState mScreenAlwaysOn

mScreenAmbientMode

protected BinaryState mScreenAmbientMode

mScreenĐộ sáng

protected Integer mScreenBrightness

mScreenSaver

protected BinaryState mScreenSaver

mScreenTimeoutSecs

protected Long mScreenTimeoutSecs

mSecureSettings

protected MultiMap<String, String> mSecureSettings

mSetProps

protected  mSetProps

mSetTestKhai thác

protected boolean mSetTestHarness

mSyncTimezoneWithHost

protected BinaryState mSyncTimezoneWithHost

mSystemSettings

protected MultiMap<String, String> mSystemSettings

mMúi giờ

protected String mTimezone

mTriggerMediaMounted

protected boolean mTriggerMediaMounted

mWakeGesture

protected BinaryState mWakeGesture

mWifi

protected BinaryState mWifi

mWifiPsk

protected String mWifiPsk

mWifiScanAlwaysEnabled

protected BinaryState mWifiScanAlwaysEnabled

mWifiSsid

protected String mWifiSsid

mWifiSsidToPsk

protected  mWifiSsidToPsk

mWifiCơ quan giám sát

protected BinaryState mWifiWatchdog

nhà thầu công cộng

Thiết lập thiết bị

public DeviceSetup ()

Phương thức công khai

thay đổi cài đặt

public void changeSettings (ITestDevice device)

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

Tiếp xúc để các lớp trẻ em có thể ghi đè.

Thông số
device ITestDevice : Thiết ITestDevice

ném
DeviceNotAvailableException nếu thiết bị không có sẵn
TargetSetupError nếu có lỗi cài đặt cài đặt

nhận phụ thuộc

public  getDependencies ()

trả lại

getDevice

public ITestDevice getDevice (TestInformation testInfo)

Thông số
testInfo TestInformation

trả lại
ITestDevice

isForceSkipSystemProps

public boolean isForceSkipSystemProps ()

trả lại
boolean

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

Xử lý các tùy chọn không dùng nữa để chuyển đổi chúng thành các tùy chọn hiện được sử dụng.

Phương pháp này nên được chạy trước bất kỳ phương pháp xử lý nào khác. Sẽ ném TargetSetupError nếu tùy chọn không dùng nữa sẽ ghi đè một tùy chọn không dùng nữa đã chỉ định.

Thông số
device ITestDevice

ném
TargetSetupError nếu có xung đột

quy trìnhTùy chọn

public void processOptions (ITestDevice device)

Xử lý tất cả Option và biến chúng thành các đạo cụ hệ thống, cài đặt hoặc lệnh chạy. Không chạy bất kỳ lệnh nào trên thiết bị vào lúc này.

Tiếp xúc để các lớp trẻ em có thể ghi đè lên điều này.

Thông số
device ITestDevice : Thiết ITestDevice

ném
DeviceNotAvailableException nếu thiết bị không có sẵn
TargetSetupError nếu Option s xung đột

setCommandForBinaryState

public static void setCommandForBinaryState (BinaryState state, 
                 commands, 
                String onCommand, 
                String offCommand)

Phương thức trợ giúp để thêm lệnh chạy BẬT/TẮT sẽ được thực thi trên thiết bị.

Thông số
state BinaryState : BinaryState

commands : Danh sách các lệnh để thêm lệnh bật hoặc tắt.

onCommand String : Lệnh chạy nếu BẬT. Bỏ qua nếu lệnh là null

offCommand String : Lệnh chạy nếu TẮT. Bỏ qua nếu lệnh là null

setGlobalSetting

public void setGlobalSetting (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

setSecureSetting

public void setSecureSetting (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

setSettingForBinaryState

public static void setSettingForBinaryState (BinaryState state, 
                MultiMap<String, String> settingsMap, 
                String setting, 
                String onValue, 
                String offValue)

Phương pháp trợ giúp để thêm cài đặt BẬT/TẮT vào bản đồ cài đặt.

Thông số
state BinaryState : BinaryState

settingsMap MultiMap : MultiMap được sử dụng để lưu trữ cài đặt.

setting String : Phím cài đặt

onValue String : Giá trị nếu BẬT

offValue String : Giá trị nếu TẮT

thiết lậpHệ thốngCài đặt

public void setSystemSetting (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

cài đặt

public void setUp (TestInformation testInfo)

Thông số
testInfo TestInformation

ném
BuildError
DeviceNotAvailableException
TargetSetupError

phá bỏ

public void tearDown (TestInformation testInfo, 
                Throwable e)

Thông số
testInfo TestInformation

e Throwable

ném
DeviceNotAvailableException

phương pháp được bảo vệ

đặtChế độ máy bay

protected void setAirplaneMode (BinaryState airplaneMode)

Tiếp xúc với thử nghiệm đơn vị

Thông số
airplaneMode BinaryState

đặtTự độngXoay

protected void setAutoRotate (BinaryState autoRotate)

Tiếp xúc với thử nghiệm đơn vị

Thông số
autoRotate BinaryState

setAutoUpdateTime

protected void setAutoUpdateTime (BinaryState autoUpdateTime)

Tiếp xúc với thử nghiệm đơn vị

Thông số
autoUpdateTime BinaryState

setAutoUpdateMúi giờ

protected void setAutoUpdateTimezone (BinaryState autoUpdateTimezone)

Tiếp xúc với thử nghiệm đơn vị

Thông số
autoUpdateTimezone BinaryState

đặtBatterySaver

protected void setBatterySaver (BinaryState batterySaver)

Tiếp xúc với thử nghiệm đơn vị

Thông số
batterySaver BinaryState

setBatterySaverKích hoạt

protected void setBatterySaverTrigger (Integer batterySaverTrigger)

Tiếp xúc với thử nghiệm đơn vị

Thông số
batterySaverTrigger Integer

thiết lậpBluetooth

protected void setBluetooth (BinaryState bluetooth)

Tiếp xúc với thử nghiệm đơn vị

Thông số
bluetooth BinaryState

thiết lậpCell

protected void setCell (BinaryState cell)

Thông số
cell BinaryState

setCellAutoSetting

protected void setCellAutoSetting (BinaryState cellAutoSetting)

Thông số
cellAutoSetting BinaryState

setData

protected void setData (BinaryState data)

Thông số
data BinaryState

setDefaultSimData

protected void setDefaultSimData (Integer defaultSimData)

Tiếp xúc với thử nghiệm đơn vị

Thông số
defaultSimData Integer

setDefaultSimSms

protected void setDefaultSimSms (Integer defaultSimSms)

Tiếp xúc với thử nghiệm đơn vị

Thông số
defaultSimSms Integer

setDefaultSimVoice

protected void setDefaultSimVoice (Integer defaultSimVoice)

Tiếp xúc với thử nghiệm đơn vị

Thông số
defaultSimVoice Integer

setDeprecatedAudioIm lặng

protected void setDeprecatedAudioSilent (boolean silent)

Phương pháp này không được chấp nhận.
thay vào đó hãy sử dụng setDisableAudio(boolean) .

Tiếp xúc với thử nghiệm đơn vị

Thông số
silent boolean

setDeprecatedMinExternalStoreSpace

protected void setDeprecatedMinExternalStoreSpace (long storeSpace)

Phương pháp này không được chấp nhận.
thay vào đó hãy sử dụng setMinExternalStorageKb(long) .

Tiếp xúc với thử nghiệm đơn vị

Thông số
storeSpace long

setDeprecatedSetProp

protected void setDeprecatedSetProp (String prop)

Phương pháp này không được chấp nhận.
thay vào đó hãy sử dụng setProperty(String, String) .

Tiếp xúc với thử nghiệm đơn vị

Thông số
prop String

setDisableAudio

protected void setDisableAudio (boolean disable)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disable boolean

setDisableCwWifiMediator

protected void setDisableCwWifiMediator (BinaryState disableCwWifiMediator)

Thông số
disableCwWifiMediator BinaryState

setDisableDalvikVerifier

protected void setDisableDalvikVerifier (boolean disableDalvikVerifier)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disableDalvikVerifier boolean

setDisableDialing

protected void setDisableDialing (boolean disableDialing)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disableDialing boolean

setDisableDoze

protected void setDisableDoze (boolean disableDoze)

Tiếp xúc với thử nghiệm đơn vị

Thông số
disableDoze boolean

setEnableFullBatteryStatsHistory

protected void setEnableFullBatteryStatsHistory (boolean enableFullBatteryStatsHistory)

Tiếp xúc với thử nghiệm đơn vị

Thông số
enableFullBatteryStatsHistory boolean

thiết lậpEthernet

protected void setEthernet (BinaryState ethernet)

Tiếp xúc với thử nghiệm đơn vị

Thông số
ethernet BinaryState

setForceSkipSystemProps

protected void setForceSkipSystemProps (boolean force)

Tiếp xúc với thử nghiệm đơn vị

Thông số
force boolean

setInstallNonMarketApps

protected void setInstallNonMarketApps (BinaryState installNonMarketApps)

Tiếp xúc với thử nghiệm đơn vị

Thông số
installNonMarketApps BinaryState

setLocalDataPath

protected void setLocalDataPath (File path)

Tiếp xúc với thử nghiệm đơn vị

Thông số
path File

đặtVị tríGps

protected void setLocationGps (BinaryState locationGps)

Tiếp xúc với thử nghiệm đơn vị

Thông số
locationGps BinaryState

thiết lậpLocationMạng

protected void setLocationNetwork (BinaryState locationNetwork)

Tiếp xúc với thử nghiệm đơn vị

Thông số
locationNetwork BinaryState

setMinExternalStorageKb

protected void setMinExternalStorageKb (long storageKb)

Tiếp xúc với thử nghiệm đơn vị

Thông số
storageKb long

setNfc

protected void setNfc (BinaryState nfc)

Tiếp xúc với thử nghiệm đơn vị

Thông số
nfc BinaryState

setNotificationLed

protected void setNotificationLed (BinaryState notificationLed)

Tiếp xúc với thử nghiệm đơn vị

Thông số
notificationLed BinaryState

setProperty

protected void setProperty (String key, 
                String value)

Tiếp xúc với thử nghiệm đơn vị

Thông số
key String

value String

setRestoreProperties

protected void setRestoreProperties (boolean restoreProperties)

Tiếp xúc với thử nghiệm đơn vị

Thông số
restoreProperties boolean

setRestoreSettings

protected void setRestoreSettings (boolean restoreSettings)

Tiếp xúc với thử nghiệm đơn vị

Thông số
restoreSettings boolean

setScreenAdaptiveBrightness

protected void setScreenAdaptiveBrightness (BinaryState screenAdaptiveBrightness)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenAdaptiveBrightness BinaryState

setScreenAlwaysOn

protected void setScreenAlwaysOn (BinaryState screenAlwaysOn)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenAlwaysOn BinaryState

setScreenAmbientMode

protected void setScreenAmbientMode (BinaryState screenAmbientMode)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenAmbientMode BinaryState

setScreenĐộ sáng

protected void setScreenBrightness (Integer screenBrightness)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenBrightness Integer

setScreenSaver

protected void setScreenSaver (BinaryState screenSaver)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenSaver BinaryState

setScreenTimeoutSecs

protected void setScreenTimeoutSecs (Long screenTimeoutSecs)

Tiếp xúc với thử nghiệm đơn vị

Thông số
screenTimeoutSecs Long

setTestKhai thác

protected void setTestHarness (boolean setTestHarness)

Tiếp xúc với thử nghiệm đơn vị

Thông số
setTestHarness boolean

đặt múi giờ

protected void setTimezone (String timezone)

Tiếp xúc với thử nghiệm đơn vị

Thông số
timezone String

setTriggerMediaMounted

protected void setTriggerMediaMounted (boolean triggerMediaMounted)

Tiếp xúc với thử nghiệm đơn vị

Thông số
triggerMediaMounted boolean

setWakeGesture

protected void setWakeGesture (BinaryState wakeGesture)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wakeGesture BinaryState

thiết lậpWifi

protected void setWifi (BinaryState wifi)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifi BinaryState

thiết lậpMạngWifi

protected void setWifiNetwork (String wifiNetwork)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifiNetwork String

thiết lậpWifiPsk

protected void setWifiPsk (String wifiPsk)

Thông số
wifiPsk String

đặtWifiScanAlwaysEnabled

protected void setWifiScanAlwaysEnabled (BinaryState wifiScanAlwaysEnabled)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifiScanAlwaysEnabled BinaryState

setWifiSsidToPsk

protected void setWifiSsidToPsk ( wifiSssidToPsk)

Thông số
wifiSssidToPsk

thiết lậpWifiWatchdog

protected void setWifiWatchdog (BinaryState wifiWatchdog)

Tiếp xúc với thử nghiệm đơn vị

Thông số
wifiWatchdog BinaryState