Home
last modified time | relevance | path

Searched refs:mScreen (Results 1 – 25 of 233) sorted by relevance

12345678910

/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsPreferenceFragmentTest.java84 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_nested_shouldRemove() local
85 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in removePreference_nested_shouldRemove()
92 mScreen.addPreference(nestedCategory); in removePreference_nested_shouldRemove()
95 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_nested_shouldRemove()
102 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_flat_shouldRemove() local
103 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in removePreference_flat_shouldRemove()
108 mScreen.addPreference(preference); in removePreference_flat_shouldRemove()
110 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_flat_shouldRemove()
111 assertThat(mScreen.getPreferenceCount()).isEqualTo(0); in removePreference_flat_shouldRemove()
117 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_doNotExist_shouldNotRemove() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java64 private PreferenceScreen mScreen; field in UsbDetailsPowerRoleControllerTest
82 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
88 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp()
94 mScreen.addPreference(mPreference); in setUp()
101 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_sink_shouldUncheck()
113 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_source_shouldCheck()
125 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_disconnected_shouldDisable()
132 assertThat((Preference) mScreen.findPreference( in displayRefresh_disconnected_shouldDisable()
138 mDetailsPowerRoleController.displayPreference(mScreen); in displayRefresh_notSupported_shouldRemove()
144 assertThat((Preference) mScreen.findPreference( in displayRefresh_notSupported_shouldRemove()
[all …]
DUsbDetailsDataRoleControllerTest.java61 private PreferenceScreen mScreen; field in UsbDetailsDataRoleControllerTest
79 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
85 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp()
91 mScreen.addPreference(mPreference); in setUp()
98 mDetailsDataRoleController.displayPreference(mScreen); in displayRefresh_deviceRole_shouldCheckDevice()
111 mDetailsDataRoleController.displayPreference(mScreen); in displayRefresh_hostRole_shouldCheckHost()
124 mDetailsDataRoleController.displayPreference(mScreen); in displayRefresh_disconnected_shouldDisable()
134 mDetailsDataRoleController.displayPreference(mScreen); in onClickDevice_hostEnabled_shouldSetDevice()
147 mDetailsDataRoleController.displayPreference(mScreen); in onClickDeviceTwice_hostEnabled_shouldSetDeviceOnce()
161 mDetailsDataRoleController.displayPreference(mScreen); in onClickDeviceAndRefresh_success_shouldClearSubtext()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DWorkSoundPreferenceControllerTest.java62 private PreferenceScreen mScreen; field in WorkSoundPreferenceControllerTest
79 when(mScreen.findPreference(KEY_WORK_CATEGORY)) in setUp()
127 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onManagedProfileAdded_shouldDisplayPreferenceCategory()
133 mController.displayPreference(mScreen); in onManagedProfileAdded_shouldDisplayPreferenceCategory()
149 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onManagedProfileRemoved_shouldHidePreferenceCategory()
156 mController.displayPreference(mScreen); in onManagedProfileRemoved_shouldHidePreferenceCategory()
175 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in displayPreference_isAvailable_shouldShowPreferenceCategory()
178 mController.displayPreference(mScreen); in displayPreference_isAvailable_shouldShowPreferenceCategory()
187 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in displayPreference_notAvailable_shouldHidePreferenceCategory()
189 mController.displayPreference(mScreen); in displayPreference_notAvailable_shouldHidePreferenceCategory()
[all …]
DVolumeSeekBarPreferenceControllerTest.java46 private PreferenceScreen mScreen; field in VolumeSeekBarPreferenceControllerTest
59 when(mScreen.findPreference(nullable(String.class))).thenReturn(mPreference); in setUp()
68 mController.displayPreference(mScreen); in displayPreference_available_shouldUpdatePreference()
80 mController.displayPreference(mScreen); in displayPreference_notAvailable_shouldNotUpdatePreference()
89 mController.displayPreference(mScreen); in onResume_shouldResumePreference()
98 mController.displayPreference(mScreen); in onPause_shouldPausePreference()
121 mController.displayPreference(mScreen); in setSliderPosition_passesAlongValue()
130 mController.displayPreference(mScreen); in getMaxValue_passesAlongValue()
138 mController.displayPreference(mScreen); in getMinValue_passesAlongValue()
146 mController.displayPreference(mScreen); in getSliderPosition_passesAlongValue()
DEmergencyTonePreferenceControllerTest.java47 private PreferenceScreen mScreen; field in EmergencyTonePreferenceControllerTest
72 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
73 doReturn(mScreen).when(mSetting).getPreferenceScreen(); in setUp()
92 mController.displayPreference(mScreen); in displayPreference_emergencyToneOff_shouldSelectFirstItem()
101 mController.displayPreference(mScreen); in displayPreference_emergencyToneAlert_shouldSelectSecondItem()
110 mController.displayPreference(mScreen); in displayPreference_emergencyToneVibrate_shouldSelectThirdItem()
117 mController.displayPreference(mScreen); in onPreferenceChanged_firstItemSelected_shouldSetEmergencyToneToOff()
126 mController.displayPreference(mScreen); in onPreferenceChanged_secondItemSelected_shouldSetEmergencyToneToAlert()
135 mController.displayPreference(mScreen); in onPreferenceChanged_thirdItemSelected_shouldSetEmergencyToneToVibrate()
DVibrateWhenRingPreferenceControllerTest.java63 private PreferenceScreen mScreen; field in VibrateWhenRingPreferenceControllerTest
78 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp()
85 mController.displayPreference(mScreen); in display_shouldDisplay()
93 mController.displayPreference(mScreen); in display_shouldNotDisplay_notVoiceCapable()
101 mController.displayPreference(mScreen); in display_shouldNotDisplay_RampingRingerEnabled()
109 mController.displayPreference(mScreen); in display_shouldNotDisplay_VoiceEnabled_RampingRingerEnabled()
117 mController.displayPreference(mScreen); in display_shouldNotDisplay_VoiceDisabled_RampingRingerEnabled()
194 mController.displayPreference(mScreen); in testObserver_onResume_shouldRegisterObserver()
205 mController.displayPreference(mScreen); in testObserver_onPause_shouldUnregisterObserver()
DTouchSoundPreferenceControllerTest.java49 private PreferenceScreen mScreen; field in TouchSoundPreferenceControllerTest
70 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
71 doReturn(mScreen).when(mSetting).getPreferenceScreen(); in setUp()
89 mController.displayPreference(mScreen); in displayPreference_soundEffectEnabled_shouldCheckedPreference()
98 mController.displayPreference(mScreen); in displayPreference_soundEffectDisabled_shouldUncheckedPreference()
105 mController.displayPreference(mScreen); in onPreferenceChanged_preferenceChecked_shouldEnabledSoundEffect()
114 mController.displayPreference(mScreen); in onPreferenceChanged_preferenceUnchecked_shouldDisabledSoundEffect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DGesturePreferenceControllerTest.java51 private PreferenceScreen mScreen; field in GesturePreferenceControllerTest
63 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp()
69 when(mScreen.findPreference(anyString())).thenReturn(mock(VideoPreference.class)); in display_configIsTrue_shouldDisplay()
71 mController.displayPreference(mScreen); in display_configIsTrue_shouldDisplay()
80 mController.displayPreference(mScreen); in display_configIsFalse_shouldNotDisplay()
88 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
91 mController.displayPreference(mScreen); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
114 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onPause_shouldStopVideoPreference()
117 mController.displayPreference(mScreen); in onPause_shouldStopVideoPreference()
126 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onPause_shouldUpdateVideoPauseState()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DOwnerInfoPreferenceControllerTest.java58 private PreferenceScreen mScreen; field in OwnerInfoPreferenceControllerTest
79 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp()
86 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
114 mController.displayPreference(mScreen); in updateSummary_deviceOwnerInfoEnabled_shouldSetDeviceOwnerInfoSummary()
127 mController.displayPreference(mScreen); in updateSummary_ownerInfoEnabled_shouldSetOwnerInfoSummary()
138 mController.displayPreference(mScreen); in updateSummary_ownerInfoDisabled_shouldSetDefaultSummary()
150 mController.displayPreference(mScreen); in updateEnableState_deviceOwnerInfoEnabled_shouldSetDisabledByAdmin()
161 mController.displayPreference(mScreen); in updateEnableState_lockScreenDisabled_shouldDisablePreference()
172 mController.displayPreference(mScreen); in updateEnableState_lockScreenEnabled_shouldEnablePreference()
182 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(preference); in performClick_shouldLaunchOwnerInfoSettings()
[all …]
/packages/apps/Settings/src/com/android/settings/wallpaper/
DWallpaperTypePreferenceController.java39 private PreferenceScreen mScreen; field in WallpaperTypePreferenceController
48 mScreen = screen; in displayPreference()
78 mScreen.setOrderingAsAdded(false); in populateWallpaperTypes()
82 Preference pref = mScreen.findPreference(packageName); in populateWallpaperTypes()
84 pref = new Preference(mScreen.getContext()); in populateWallpaperTypes()
97 mScreen.addPreference(pref); in populateWallpaperTypes()
102 final int count = mScreen.getPreferenceCount(); in removeUselessExistingPreference()
107 final Preference pref = mScreen.getPreference(i); in removeUselessExistingPreference()
112 mScreen.removePreference(pref); in removeUselessExistingPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wallpaper/
DWallpaperTypePreferenceController.java39 private PreferenceScreen mScreen; field in WallpaperTypePreferenceController
48 mScreen = screen; in displayPreference()
78 mScreen.setOrderingAsAdded(false); in populateWallpaperTypes()
82 Preference pref = mScreen.findPreference(packageName); in populateWallpaperTypes()
84 pref = new Preference(mScreen.getContext()); in populateWallpaperTypes()
97 mScreen.addPreference(pref); in populateWallpaperTypes()
102 final int count = mScreen.getPreferenceCount(); in removeUselessExistingPreference()
107 final Preference pref = mScreen.getPreference(i); in removeUselessExistingPreference()
112 mScreen.removePreference(pref); in removeUselessExistingPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiInfoPreferenceControllerTest.java62 private PreferenceScreen mScreen; field in WifiInfoPreferenceControllerTest
83 when(mScreen.findPreference(anyString())) in setUp()
115 mController.displayPreference(mScreen); in onResume_shouldUpdateWifiInfo()
127 mController.displayPreference(mScreen); in updateWifiInfo_nullWifiInfoWithMacRandomizationOff_setMacUnavailable()
140 mController.displayPreference(mScreen); in updateWifiInfo_nullMacWithMacRandomizationOff_setMacUnavailable()
153 mController.displayPreference(mScreen); in updateWifiInfo_defaultMacWithMacRandomizationOff_setMacUnavailable()
166 mController.displayPreference(mScreen); in updateWifiInfo_validMacWithMacRandomizationOff_setValidMac()
179 mController.displayPreference(mScreen); in updateWifiInfo_nullWifiInfoWithMacRandomizationOn_setMacUnavailable()
192 mController.displayPreference(mScreen); in updateWifiInfo_nullMacWithMacRandomizationOn_setMacUnavailable()
205 mController.displayPreference(mScreen); in updateWifiInfo_defaultMacWithMacRandomizationOn_setMacRandomized()
[all …]
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryListPreferenceController.java50 private PreferenceScreen mScreen; field in UserDictionaryListPreferenceController
71 mScreen = screen; in displayPreference()
144 final int prefCount = mScreen.getPreferenceCount(); in createUserDictSettings()
161 prefKey = mScreen.getPreference(i).getKey(); in createUserDictSettings()
169 mScreen.removePreference(mScreen.findPreference(prefKey)); in createUserDictSettings()
174 mScreen.addPreference(createUserDictionaryPreference(null)); in createUserDictSettings()
178 if (mScreen.findPreference(pref.getKey()) == null) { in createUserDictSettings()
179 mScreen.addPreference(pref); in createUserDictSettings()
193 final Preference newPref = new Preference(mScreen.getContext()); in createUserDictionaryPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DUserDictionaryListPreferenceController.java50 private PreferenceScreen mScreen; field in UserDictionaryListPreferenceController
71 mScreen = screen; in displayPreference()
144 final int prefCount = mScreen.getPreferenceCount(); in createUserDictSettings()
161 prefKey = mScreen.getPreference(i).getKey(); in createUserDictSettings()
169 mScreen.removePreference(mScreen.findPreference(prefKey)); in createUserDictSettings()
174 mScreen.addPreference(createUserDictionaryPreference(null)); in createUserDictSettings()
178 if (mScreen.findPreference(pref.getKey()) == null) { in createUserDictSettings()
179 mScreen.addPreference(pref); in createUserDictSettings()
193 final Preference newPref = new Preference(mScreen.getContext()); in createUserDictionaryPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.java58 private PreferenceScreen mScreen; field in MobileNetworkSwitchControllerTest
94 when(mScreen.findPreference(key)).thenReturn(mLayoutPreference); in setUp()
106 mController.displayPreference(mScreen); in isAvailable_pSIM_isNotAvailable()
114 mController.displayPreference(mScreen); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
122 mController.displayPreference(mScreen); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
129 mController.displayPreference(mScreen); in displayPreference_subscriptionEnabled_switchIsOn()
137 mController.displayPreference(mScreen); in displayPreference_subscriptionDisabled_switchIsOff()
145 mController.displayPreference(mScreen); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
157 mController.displayPreference(mScreen); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
168 mController.displayPreference(mScreen); in switchChangeListener_fromDisabledToEnabled_setSubscriptionEnabledCalledCorrectly()
DDefaultSubscriptionControllerTest.java57 private PreferenceScreen mScreen; field in DefaultSubscriptionControllerTest
71 when(mScreen.findPreference(key)).thenReturn(mListPreference); in setUp()
101 mController.displayPreference(mScreen); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
129 mController.displayPreference(mScreen); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
162 mController.displayPreference(mScreen); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
185 mController.displayPreference(mScreen); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly()
198 mController.displayPreference(mScreen); in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly()
215 mController.displayPreference(mScreen); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
235 mController.displayPreference(mScreen); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
252 mController.displayPreference(mScreen); in onSubscriptionsChanged_goFromTwoSubscriptionsToOne_prefDisappears()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
DImeiInfoPreferenceControllerTest.java64 private PreferenceScreen mScreen; field in ImeiInfoPreferenceControllerTest
83 when(mScreen.getContext()).thenReturn(mContext); in setUp()
86 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
98 mController.displayPreference(mScreen); in displayPreference_multiSimGsm_shouldAddSecondPreference()
100 verify(mScreen).addPreference(mSecondSimPreference); in displayPreference_multiSimGsm_shouldAddSecondPreference()
110 mController.displayPreference(mScreen); in displayPreference_singleSimCdmaPhone_shouldSetSingleSimCdmaTitleAndMeid()
124 mController.displayPreference(mScreen); in displayPreference_multiSimCdmaPhone_shouldSetMultiSimCdmaTitleAndMeid()
140 mController.displayPreference(mScreen); in displayPreference_singleSimGsmPhone_shouldSetSingleSimGsmTitleAndImei()
154 mController.displayPreference(mScreen); in displayPreference_multiSimGsmPhone_shouldSetMultiSimGsmTitleAndImei()
168 mController.displayPreference(mScreen); in handlePreferenceTreeClick_shouldStartDialogFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceControllerTest.java82 private PreferenceScreen mScreen; field in InstantAppButtonsPreferenceControllerTest
98 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
108 mScreen.addPreference(mPreference); in setUp()
200 mController.displayPreference(mScreen); in onOptionsItemSelected_shouldOpenAppStore()
215 mController.displayPreference(mScreen); in displayPreference_noLaunchUri_shouldShowHideLaunchButton()
224 mController.displayPreference(mScreen); in displayPreference_hasLaunchUri_shouldShowHideInstallButton()
231 mController.displayPreference(mScreen); in displayPreference_noAppStoreLink_shoulDisableInstallButton()
245 mController.displayPreference(mScreen); in displayPreference_hasAppStoreLink_shoulSetClickListenerForInstallButton()
252 mController.displayPreference(mScreen); in displayPreference_shoulSetClickListenerForClearButton()
261 mController.displayPreference(mScreen); in clickLaunchButton_shouldLaunchViewIntent()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DDeviceNamePreferenceControllerTest.java59 private PreferenceScreen mScreen; field in DeviceNamePreferenceControllerTest
73 when(mScreen.findPreference(anyString())).thenReturn(mPreference); in setUp()
119 mController.displayPreference(mScreen); in setDeviceName_preferenceUpdatedWhenDeviceNameUpdated()
128 mController.displayPreference(mScreen); in setDeviceName_bluetoothNameUpdatedWhenDeviceNameUpdated()
137 mController.displayPreference(mScreen); in setDeviceName_wifiTetherNameUpdatedWhenDeviceNameUpdated()
147 mController.displayPreference(mScreen); in displayPreference_defaultDeviceNameIsModelNameOnPreference()
155 mController.displayPreference(mScreen); in setDeviceName_ignoresIfCancelPressed()
164 mController.displayPreference(mScreen); in setDeviceName_okInDeviceNameWarningDialog_shouldChangePreferenceText()
173 mController.displayPreference(mScreen); in setDeviceName_cancelInDeviceNameWarningDialog_shouldNotChangePreferenceText()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/
DSimStatusPreferenceControllerTest.java55 private PreferenceScreen mScreen; field in SimStatusPreferenceControllerTest
73 when(mScreen.getContext()).thenReturn(mContext); in setUp()
76 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
86 mController.displayPreference(mScreen); in displayPreference_multiSim_shouldAddSecondPreference()
88 verify(mScreen).addPreference(mSecondSimPreference); in displayPreference_multiSim_shouldAddSecondPreference()
94 mController.displayPreference(mScreen); in updateState_singleSim_shouldSetSingleSimTitleAndSummary()
105 mController.displayPreference(mScreen); in updateState_multiSim_shouldSetMultiSimTitleAndSummary()
121 mController.displayPreference(mScreen); in handlePreferenceTreeClick_shouldStartDialogFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBugReportInPowerPreferenceControllerTest.java50 private PreferenceScreen mScreen; field in BugReportInPowerPreferenceControllerTest
68 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
88 mController.displayPreference(mScreen); in onDeveloperOptionsSwitchDisabled_preferenceShouldNotBeChecked()
98 mController.displayPreference(mScreen); in onPreferenceChanged_settingDisabled_shouldDisableBugReportInPowerSetting()
110 mController.displayPreference(mScreen); in onPreferenceChanged_settingEnabled_shouldEnableBugReportInPowerSetting()
125 mController.displayPreference(mScreen); in updateState_settingsOn_preferenceShouldBeChecked()
137 mController.displayPreference(mScreen); in updateState_settingsOff_preferenceShouldNotBeChecked()
147 mController.displayPreference(mScreen); in onDeveloperOptionsSwitchDisabled_shouldTurnOffPreference()
DClearAdbKeysPreferenceControllerTest.java56 private PreferenceScreen mScreen; field in ClearAdbKeysPreferenceControllerTest
72 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
100 mController.displayPreference(mScreen); in displayPreference_isNotAdminUser_preferenceShouldBeDisabled()
110 mController.displayPreference(mScreen); in handlePreferenceTreeClick_clearAdbKeysPreference_shouldShowWarningDialog()
123 mController.displayPreference(mScreen); in handlePreferenceTreeClick_notClearAdbKeysPreference_shouldReturnFalse()
135 mController.displayPreference(mScreen); in handlePreferenceTreeClick_monkeyUser_shouldReturnFalse()
148 mController.displayPreference(mScreen); in onDeveloperOptionsSwitchEnabled_isAdminUser_shouldEnablePreference()
158 mController.displayPreference(mScreen); in onDeveloperOptionsSwitchEnabled_isNotAdminUser_shouldNotEnablePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSSIDPreferenceControllerTest.java57 private PreferenceScreen mScreen; field in WifiTetherSSIDPreferenceControllerTest
72 when(mScreen.findPreference(anyString())).thenReturn(mPreference); in setUp()
81 mController.displayPreference(mScreen); in displayPreference_noWifiConfig_shouldDisplayDefaultSSID()
92 mController.displayPreference(mScreen); in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID()
98 mController.displayPreference(mScreen); in changePreference_shouldUpdateValue()
111 mController.displayPreference(mScreen); in updateDisplay_shouldUpdateValue()
134 mController.displayPreference(mScreen); in displayPreference_wifiApDisabled_shouldHideQrCodeIcon()
146 mController.displayPreference(mScreen); in displayPreference_wifiApEnabled_shouldShowQrCodeIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationForWorkPreferenceControllerTest.java60 private PreferenceScreen mScreen; field in LocationForWorkPreferenceControllerTest
83 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
91 mController.displayPreference(mScreen); in handlePreferenceTreeClick_preferenceChecked_shouldSetRestrictionAndOnSummary()
103 mController.displayPreference(mScreen); in handlePreferenceTreeClick_preferenceUnchecked_shouldSetRestritionAndOffSummary()
126 mController.displayPreference(mScreen); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()
139 mController.displayPreference(mScreen); in onLocationModeChanged_locationOff_shouldDisablePreference()
152 mController.displayPreference(mScreen); in onLocationModeChanged_locationOn_shouldEnablePreference()
165 mController.displayPreference(mScreen); in onLocationModeChanged_noRestriction_shouldCheckedPreference()
177 mController.displayPreference(mScreen); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()

12345678910