DeviceSetup

public class DeviceSetup
extends BaseTargetPreparer implements IExternalDependency

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


ITargetPreparer ที่กำหนดค่าอุปกรณ์สำหรับการทดสอบตาม Option ที่ระบุ

ต้องใช้อุปกรณ์ที่สามารถใช้ "adb root" ได้ ซึ่งโดยปกติจะเป็นประเภทบิลด์ userdebug

ควรดำเนินการหลังจากแฟลชบิลด์ใหม่

หมายเหตุ: เครื่องมือเตรียมความพร้อมนี้มีไว้สำหรับห้องทดสอบแบบต่อเนื่องและจะถือว่าอุปกรณ์ที่ทดสอบจะได้รับการแฟลชและล้างข้อมูลก่อนการเรียกใช้ครั้งถัดไป ดังนั้นจึงมีการล้างข้อมูลเพียงเล็กน้อยในระหว่างการเลิกใช้งาน และไม่ควรใช้ในโมดูลทดสอบ

สรุป

ช่อง

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

ตัวสร้างแบบสาธารณะ

DeviceSetup()

เมธอดสาธารณะ

void changeSettings(ITestDevice device)

เปลี่ยนการตั้งค่าในอุปกรณ์

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

ประมวลผลตัวเลือกที่เลิกใช้งานโดยแปลงเป็นตัวเลือกที่ใช้อยู่ในปัจจุบัน

void processOptions(ITestDevice device)

ประมวลผล Option ทั้งหมดและเปลี่ยนเป็นพร็อพเพอร์ตี้ของระบบ การตั้งค่า หรือคำสั่งเรียกใช้

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

วิธีการช่วยเพิ่มคําสั่งเปิด/ปิดเพื่อเรียกใช้บนอุปกรณ์

void setGlobalSetting(String key, String value)

แสดงสำหรับการทดสอบ 1 หน่วย

void setSecureSetting(String key, String value)

แสดงสำหรับการทดสอบ 1 หน่วย

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

เมธอดตัวช่วยเพื่อเพิ่มการตั้งค่าเปิด/ปิดลงในแผนที่การตั้งค่า

void setSystemSetting(String key, String value)

แสดงสำหรับการทดสอบ 1 หน่วย

void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

วิธีการที่มีการป้องกัน

void setAirplaneMode(BinaryState airplaneMode)

แสดงสำหรับการทดสอบ 1 หน่วย

void setAutoRotate(BinaryState autoRotate)

แสดงสำหรับการทดสอบ 1 หน่วย

void setAutoUpdateTime(BinaryState autoUpdateTime)

แสดงสำหรับการทดสอบ 1 หน่วย

void setAutoUpdateTimezone(BinaryState autoUpdateTimezone)

แสดงสำหรับการทดสอบ 1 หน่วย

void setBatterySaver(BinaryState batterySaver)

แสดงสำหรับการทดสอบ 1 หน่วย

void setBatterySaverTrigger(Integer batterySaverTrigger)

แสดงสำหรับการทดสอบ 1 หน่วย

void setBluetooth(BinaryState bluetooth)

แสดงสำหรับการทดสอบ 1 หน่วย

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

แสดงสำหรับการทดสอบ 1 หน่วย

void setDefaultSimSms(Integer defaultSimSms)

แสดงสำหรับการทดสอบ 1 หน่วย

void setDefaultSimVoice(Integer defaultSimVoice)

แสดงสำหรับการทดสอบ 1 หน่วย

void setDeprecatedAudioSilent(boolean silent)

เราเลิกใช้งานเมธอดนี้แล้ว ให้ใช้ setDisableAudio(boolean) แทน

void setDeprecatedMinExternalStoreSpace(long storeSpace)

เราเลิกใช้งานเมธอดนี้แล้ว ให้ใช้ setMinExternalStorageKb(long) แทน

void setDeprecatedSetProp(String prop)

เราเลิกใช้งานเมธอดนี้แล้ว ให้ใช้ setProperty(String, String) แทน

void setDisableAudio(boolean disable)

แสดงสำหรับการทดสอบ 1 หน่วย

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

แสดงสำหรับการทดสอบ 1 หน่วย

void setDisableDialing(boolean disableDialing)

แสดงสำหรับการทดสอบ 1 หน่วย

void setDisableDoze(boolean disableDoze)

แสดงสำหรับการทดสอบ 1 หน่วย

void setEnableFullBatteryStatsHistory(boolean enableFullBatteryStatsHistory)

แสดงสำหรับการทดสอบ 1 หน่วย

void setEthernet(BinaryState ethernet)

แสดงสำหรับการทดสอบ 1 หน่วย

void setForceRootSetup(boolean force)
void setForceSkipSystemProps(boolean force)

แสดงสำหรับการทดสอบ 1 หน่วย

void setInstallNonMarketApps(BinaryState installNonMarketApps)

แสดงสำหรับการทดสอบ 1 หน่วย

void setLocalDataPath(File path)

แสดงสำหรับการทดสอบ 1 หน่วย

void setLocationGps(BinaryState locationGps)

แสดงสำหรับการทดสอบ 1 หน่วย

void setLocationNetwork(BinaryState locationNetwork)

แสดงสำหรับการทดสอบ 1 หน่วย

void setMinExternalStorageKb(long storageKb)

แสดงสำหรับการทดสอบ 1 หน่วย

void setNfc(BinaryState nfc)

แสดงสำหรับการทดสอบ 1 หน่วย

void setNotificationLed(BinaryState notificationLed)

แสดงสำหรับการทดสอบ 1 หน่วย

void setProperty(String key, String value)

แสดงสำหรับการทดสอบ 1 หน่วย

void setRestoreProperties(boolean restoreProperties)

แสดงสำหรับการทดสอบ 1 หน่วย

void setRestoreSettings(boolean restoreSettings)

แสดงสำหรับการทดสอบ 1 หน่วย

void setScreenAdaptiveBrightness(BinaryState screenAdaptiveBrightness)

แสดงสำหรับการทดสอบ 1 หน่วย

void setScreenAlwaysOn(BinaryState screenAlwaysOn)

แสดงสำหรับการทดสอบ 1 หน่วย

void setScreenAmbientMode(BinaryState screenAmbientMode)

แสดงสำหรับการทดสอบ 1 หน่วย

void setScreenBrightness(Integer screenBrightness)

แสดงสำหรับการทดสอบ 1 หน่วย

void setScreenSaver(BinaryState screenSaver)

แสดงสำหรับการทดสอบ 1 หน่วย

void setScreenTimeoutSecs(Long screenTimeoutSecs)

แสดงสำหรับการทดสอบ 1 หน่วย

void setTestHarness(boolean setTestHarness)

แสดงสำหรับการทดสอบ 1 หน่วย

void setTimezone(String timezone)

แสดงสำหรับการทดสอบ 1 หน่วย

void setTriggerMediaMounted(boolean triggerMediaMounted)

แสดงสำหรับการทดสอบ 1 หน่วย

void setWakeGesture(BinaryState wakeGesture)

แสดงสำหรับการทดสอบ 1 หน่วย

void setWifi(BinaryState wifi)

แสดงสำหรับการทดสอบ 1 หน่วย

void setWifiNetwork(String wifiNetwork)

แสดงสำหรับการทดสอบ 1 หน่วย

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

แสดงสำหรับการทดสอบ 1 หน่วย

void setWifiSsidToPsk( wifiSssidToPsk)
void setWifiWatchdog(BinaryState wifiWatchdog)

แสดงสำหรับการทดสอบ 1 หน่วย

ช่อง

mAirplaneMode

protected BinaryState mAirplaneMode

mAutoRotate

protected BinaryState mAutoRotate

mAutoUpdateTime

protected BinaryState mAutoUpdateTime

mAutoUpdateTimezone

protected BinaryState mAutoUpdateTimezone

mBatterySaver

protected BinaryState mBatterySaver

mBatterySaverTrigger

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

mDisableCwWifiMediator

protected BinaryState mDisableCwWifiMediator

mDisableDalvikVerifier

protected boolean mDisableDalvikVerifier

mDisableDialing

protected boolean mDisableDialing

mDisableDoze

protected boolean mDisableDoze

mEnableFullBatteryStatsHistory

protected boolean mEnableFullBatteryStatsHistory

mEthernet

protected BinaryState mEthernet

mForceSkipRunCommands

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

mLocationNetwork

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

mRunCommandBeforeSettings

protected  mRunCommandBeforeSettings

mScreenAdaptiveBrightness

protected BinaryState mScreenAdaptiveBrightness

mScreenAlwaysOn

protected BinaryState mScreenAlwaysOn

mScreenAmbientMode

protected BinaryState mScreenAmbientMode

mScreenBrightness

protected Integer mScreenBrightness

mScreenSaver

protected BinaryState mScreenSaver

mScreenTimeoutSecs

protected Long mScreenTimeoutSecs

mSecureSettings

protected MultiMap<String, String> mSecureSettings

mSetProps

protected  mSetProps

mSetTestHarness

protected boolean mSetTestHarness

mSyncTimezoneWithHost

protected BinaryState mSyncTimezoneWithHost

mSystemSettings

protected MultiMap<String, String> mSystemSettings

mTimezone

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

mWifiWatchdog

protected BinaryState mWifiWatchdog

ตัวสร้างแบบสาธารณะ

DeviceSetup

public DeviceSetup ()

เมธอดสาธารณะ

changeSettings

public void changeSettings (ITestDevice device)

เปลี่ยนการตั้งค่าในอุปกรณ์

เปิดเผยเพื่อให้คลาสย่อยลบล้างได้

พารามิเตอร์
device ITestDevice: ITestDevice

การโยน
DeviceNotAvailableException หากอุปกรณ์ไม่พร้อมใช้งาน
TargetSetupError หากตั้งค่าไม่สำเร็จ

getDependencies

public  getDependencies ()

คิกรีเทิร์น

getDevice

public ITestDevice getDevice (TestInformation testInfo)

พารามิเตอร์
testInfo TestInformation

คิกรีเทิร์น
ITestDevice

isForceSkipSystemProps

public boolean isForceSkipSystemProps ()

คิกรีเทิร์น
boolean

processDeprecatedOptions

public void processDeprecatedOptions (ITestDevice device)

ประมวลผลตัวเลือกที่เลิกใช้งานโดยแปลงเป็นตัวเลือกที่ใช้อยู่ในปัจจุบัน

ควรเรียกใช้เมธอดนี้ก่อนเมธอดการประมวลผลอื่นๆ จะแสดงข้อผิดพลาด TargetSetupError หากตัวเลือกที่เลิกใช้งานลบล้างตัวเลือกที่ระบุไว้ซึ่งไม่ได้เลิกใช้งาน

พารามิเตอร์
device ITestDevice

การโยน
TargetSetupError หากมีความขัดแย้ง

processOptions

public void processOptions (ITestDevice device)

ประมวลผล Option ทั้งหมดและเปลี่ยนเป็นพร็อพเพอร์ตี้ของระบบ การตั้งค่า หรือคำสั่งเรียกใช้ ไม่ได้เรียกใช้คำสั่งใดๆ ในอุปกรณ์ในขณะนี้

แสดงเพื่อให้คลาสย่อยลบล้างได้

พารามิเตอร์
device ITestDevice: ITestDevice

การโยน
DeviceNotAvailableException หากอุปกรณ์ไม่พร้อมใช้งาน
TargetSetupError if the Options conflict

setCommandForBinaryState

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

วิธีการช่วยเพิ่มคําสั่งเปิด/ปิดเพื่อเรียกใช้บนอุปกรณ์

พารามิเตอร์
state BinaryState: BinaryState

commands : รายการคำสั่งที่จะเพิ่มคำสั่งเปิดหรือปิด

onCommand String: คำสั่งที่จะเรียกใช้หากเปิด จะไม่สนใจหากคำสั่งคือ null

offCommand String: คำสั่งที่จะเรียกใช้หากเป็น "ปิด" ระบบจะไม่สนใจหากคำสั่งคือ null

setGlobalSetting

public void setGlobalSetting (String key, 
                String value)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
key String

value String

setSecureSetting

public void setSecureSetting (String key, 
                String value)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
key String

value String

setSettingForBinaryState

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

เมธอดตัวช่วยเพื่อเพิ่มการตั้งค่าเปิด/ปิดลงในแผนที่การตั้งค่า

พารามิเตอร์
state BinaryState: BinaryState

settingsMap MultiMap: MultiMap ที่ใช้จัดเก็บการตั้งค่า

setting String: คีย์การตั้งค่า

onValue String: ค่าสำหรับสถานะเปิด

offValue String: ค่าสำหรับ "ปิด"

setSystemSetting

public void setSystemSetting (String key, 
                String value)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
key String

value String

setUp

public void setUp (TestInformation testInfo)

พารามิเตอร์
testInfo TestInformation

การโยน
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

พารามิเตอร์
testInfo TestInformation

e Throwable

การโยน
DeviceNotAvailableException

วิธีการที่มีการป้องกัน

setAirplaneMode

protected void setAirplaneMode (BinaryState airplaneMode)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
airplaneMode BinaryState

setAutoRotate

protected void setAutoRotate (BinaryState autoRotate)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
autoRotate BinaryState

setAutoUpdateTime

protected void setAutoUpdateTime (BinaryState autoUpdateTime)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
autoUpdateTime BinaryState

setAutoUpdateTimezone

protected void setAutoUpdateTimezone (BinaryState autoUpdateTimezone)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
autoUpdateTimezone BinaryState

setBatterySaver

protected void setBatterySaver (BinaryState batterySaver)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
batterySaver BinaryState

setBatterySaverTrigger

protected void setBatterySaverTrigger (Integer batterySaverTrigger)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
batterySaverTrigger Integer

setBluetooth

protected void setBluetooth (BinaryState bluetooth)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
bluetooth BinaryState

setCell

protected void setCell (BinaryState cell)

พารามิเตอร์
cell BinaryState

setCellAutoSetting

protected void setCellAutoSetting (BinaryState cellAutoSetting)

พารามิเตอร์
cellAutoSetting BinaryState

setData

protected void setData (BinaryState data)

พารามิเตอร์
data BinaryState

setDefaultSimData

protected void setDefaultSimData (Integer defaultSimData)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
defaultSimData Integer

setDefaultSimSms

protected void setDefaultSimSms (Integer defaultSimSms)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
defaultSimSms Integer

setDefaultSimVoice

protected void setDefaultSimVoice (Integer defaultSimVoice)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
defaultSimVoice Integer

setDeprecatedAudioSilent

protected void setDeprecatedAudioSilent (boolean silent)

วิธีการนี้เลิกใช้งานแล้ว
โปรดใช้ setDisableAudio(boolean) แทน

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
silent boolean

setDeprecatedMinExternalStoreSpace

protected void setDeprecatedMinExternalStoreSpace (long storeSpace)

วิธีการนี้เลิกใช้งานแล้ว
โปรดใช้ setMinExternalStorageKb(long) แทน

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
storeSpace long

setDeprecatedSetProp

protected void setDeprecatedSetProp (String prop)

วิธีการนี้เลิกใช้งานแล้ว
โปรดใช้ setProperty(String, String) แทน

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
prop String

setDisableAudio

protected void setDisableAudio (boolean disable)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
disable boolean

setDisableCwWifiMediator

protected void setDisableCwWifiMediator (BinaryState disableCwWifiMediator)

พารามิเตอร์
disableCwWifiMediator BinaryState

setDisableDalvikVerifier

protected void setDisableDalvikVerifier (boolean disableDalvikVerifier)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
disableDalvikVerifier boolean

setDisableDialing

protected void setDisableDialing (boolean disableDialing)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
disableDialing boolean

setDisableDoze

protected void setDisableDoze (boolean disableDoze)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
disableDoze boolean

setEnableFullBatteryStatsHistory

protected void setEnableFullBatteryStatsHistory (boolean enableFullBatteryStatsHistory)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
enableFullBatteryStatsHistory boolean

setEthernet

protected void setEthernet (BinaryState ethernet)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
ethernet BinaryState

setForceRootSetup

protected void setForceRootSetup (boolean force)

พารามิเตอร์
force boolean

setForceSkipSystemProps

protected void setForceSkipSystemProps (boolean force)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
force boolean

setInstallNonMarketApps

protected void setInstallNonMarketApps (BinaryState installNonMarketApps)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
installNonMarketApps BinaryState

setLocalDataPath

protected void setLocalDataPath (File path)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
path File

setLocationGps

protected void setLocationGps (BinaryState locationGps)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
locationGps BinaryState

setLocationNetwork

protected void setLocationNetwork (BinaryState locationNetwork)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
locationNetwork BinaryState

setMinExternalStorageKb

protected void setMinExternalStorageKb (long storageKb)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
storageKb long

setNfc

protected void setNfc (BinaryState nfc)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
nfc BinaryState

setNotificationLed

protected void setNotificationLed (BinaryState notificationLed)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
notificationLed BinaryState

setProperty

protected void setProperty (String key, 
                String value)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
key String

value String

setRestoreProperties

protected void setRestoreProperties (boolean restoreProperties)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
restoreProperties boolean

setRestoreSettings

protected void setRestoreSettings (boolean restoreSettings)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
restoreSettings boolean

setScreenAdaptiveBrightness

protected void setScreenAdaptiveBrightness (BinaryState screenAdaptiveBrightness)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
screenAdaptiveBrightness BinaryState

setScreenAlwaysOn

protected void setScreenAlwaysOn (BinaryState screenAlwaysOn)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
screenAlwaysOn BinaryState

setScreenAmbientMode

protected void setScreenAmbientMode (BinaryState screenAmbientMode)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
screenAmbientMode BinaryState

setScreenBrightness

protected void setScreenBrightness (Integer screenBrightness)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
screenBrightness Integer

setScreenSaver

protected void setScreenSaver (BinaryState screenSaver)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
screenSaver BinaryState

setScreenTimeoutSecs

protected void setScreenTimeoutSecs (Long screenTimeoutSecs)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
screenTimeoutSecs Long

setTestHarness

protected void setTestHarness (boolean setTestHarness)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
setTestHarness boolean

setTimezone

protected void setTimezone (String timezone)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
timezone String

setTriggerMediaMounted

protected void setTriggerMediaMounted (boolean triggerMediaMounted)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
triggerMediaMounted boolean

setWakeGesture

protected void setWakeGesture (BinaryState wakeGesture)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
wakeGesture BinaryState

setWifi

protected void setWifi (BinaryState wifi)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
wifi BinaryState

setWifiNetwork

protected void setWifiNetwork (String wifiNetwork)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
wifiNetwork String

setWifiPsk

protected void setWifiPsk (String wifiPsk)

พารามิเตอร์
wifiPsk String

setWifiScanAlwaysEnabled

protected void setWifiScanAlwaysEnabled (BinaryState wifiScanAlwaysEnabled)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
wifiScanAlwaysEnabled BinaryState

setWifiSsidToPsk

protected void setWifiSsidToPsk ( wifiSssidToPsk)

พารามิเตอร์
wifiSssidToPsk

setWifiWatchdog

protected void setWifiWatchdog (BinaryState wifiWatchdog)

แสดงสำหรับการทดสอบ 1 หน่วย

พารามิเตอร์
wifiWatchdog BinaryState