Home
last modified time | relevance | path

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

1234567891011

/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()
DRemoteVolumeGroupControllerTest.java75 private PreferenceScreen mScreen; field in RemoteVolumeGroupControllerTest
102 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn( in setUp()
117 mController.displayPreference(mScreen); in getAvailabilityStatus_withActiveSession_returnAvailableUnsearchable()
125 mController.displayPreference(mScreen); in getAvailabilityStatus_noActiveSession_returnConditionallyUnavailable()
133 mController.displayPreference(mScreen); in displayPreference_noActiveSession_checkPreferenceCount()
140 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkPreferenceCount()
147 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSeekBarTitle()
156 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSeekBarMaxVolume()
164 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSeekBarCurrentVolume()
174 mController.displayPreference(mScreen); in displayPreference_withActiveSession_checkSwitcherPreferenceTitle()
[all …]
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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsPreferenceFragmentTest.java87 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_nested_shouldRemove() local
88 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in removePreference_nested_shouldRemove()
95 mScreen.addPreference(nestedCategory); in removePreference_nested_shouldRemove()
98 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_nested_shouldRemove()
105 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_flat_shouldRemove() local
106 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in removePreference_flat_shouldRemove()
111 mScreen.addPreference(preference); in removePreference_flat_shouldRemove()
113 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_flat_shouldRemove()
114 assertThat(mScreen.getPreferenceCount()).isEqualTo(0); in removePreference_flat_shouldRemove()
120 final PreferenceScreen mScreen = spy(new PreferenceScreen(mContext, null)); in removePreference_doNotExist_shouldNotRemove() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeScheduleSelectorControllerTest.java54 private PreferenceScreen mScreen; field in DarkModeScheduleSelectorControllerTest
80 when(mScreen.findPreference(anyString())).thenReturn(mPreference); in setUp()
88 mController.displayPreference(mScreen); in nightMode_preferenceChange_preferenceChangeTrueWhenChangedOnly()
90 .onPreferenceChange(mScreen, mContext.getString(R.string.dark_ui_auto_mode_auto)); in nightMode_preferenceChange_preferenceChangeTrueWhenChangedOnly()
93 .onPreferenceChange(mScreen, mContext.getString(R.string.dark_ui_auto_mode_auto)); in nightMode_preferenceChange_preferenceChangeTrueWhenChangedOnly()
100 mController.displayPreference(mScreen); in nightMode_updateStateNone_dropDownValueChangedToNone()
101 mController.updateState(mScreen); in nightMode_updateStateNone_dropDownValueChangedToNone()
108 mController.displayPreference(mScreen); in nightMode_updateStateNone_dropDownValueChangedToAuto()
109 mController.updateState(mScreen); in nightMode_updateStateNone_dropDownValueChangedToAuto()
116 mController.displayPreference(mScreen); in batterySaver_dropDown_disabledSelector()
[all …]
/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()
110 mController.displayPreference(mScreen); in isAvailable_pSIM_isNotAvailable()
118 mController.displayPreference(mScreen); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
126 mController.displayPreference(mScreen); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
133 mController.displayPreference(mScreen); in displayPreference_subscriptionEnabled_switchIsOn()
141 mController.displayPreference(mScreen); in displayPreference_subscriptionDisabled_switchIsOff()
149 mController.displayPreference(mScreen); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
161 mController.displayPreference(mScreen); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DOwnerInfoPreferenceControllerTest.java60 private PreferenceScreen mScreen; field in OwnerInfoPreferenceControllerTest
81 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in setUp()
89 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
117 mController.displayPreference(mScreen); in updateSummary_deviceOwnerInfoEnabled_shouldSetDeviceOwnerInfoSummary()
130 mController.displayPreference(mScreen); in updateSummary_ownerInfoEnabled_shouldSetOwnerInfoSummary()
141 mController.displayPreference(mScreen); in updateSummary_ownerInfoDisabled_shouldSetDefaultSummary()
153 mController.displayPreference(mScreen); in updateEnableState_deviceOwnerInfoEnabled_shouldSetDisabledByAdmin()
164 mController.displayPreference(mScreen); in updateEnableState_lockScreenDisabled_shouldDisablePreference()
175 mController.displayPreference(mScreen); in updateEnableState_lockScreenEnabled_shouldEnablePreference()
186 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(preference); in handlePreferenceTreeClick_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/tether/
DWifiTetherSSIDPreferenceControllerTest.java58 private PreferenceScreen mScreen; field in WifiTetherSSIDPreferenceControllerTest
75 when(mScreen.findPreference(anyString())).thenReturn(mPreference); in setUp()
84 mController.displayPreference(mScreen); in displayPreference_noWifiConfig_shouldDisplayDefaultSSID()
95 mController.displayPreference(mScreen); in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID()
101 mController.displayPreference(mScreen); in changePreference_shouldUpdateValue()
113 mController.displayPreference(mScreen); in changePreference_shouldLogActionWhenChanged()
121 mController.displayPreference(mScreen); in changePreference_shouldNotLogActionWhenNotChanged()
131 mController.displayPreference(mScreen); in updateDisplay_shouldUpdateValue()
154 mController.displayPreference(mScreen); in displayPreference_wifiApDisabled_shouldHideQrCodeIcon()
166 mController.displayPreference(mScreen); in displayPreference_wifiApEnabled_shouldShowQrCodeIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DGesturePreferenceControllerTest.java49 private PreferenceScreen mScreen; field in GesturePreferenceControllerTest
61 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp()
67 when(mScreen.findPreference(anyString())).thenReturn(mock(VideoPreference.class)); in display_configIsTrue_shouldDisplay()
69 mController.displayPreference(mScreen); in display_configIsTrue_shouldDisplay()
78 mController.displayPreference(mScreen); in display_configIsFalse_shouldNotDisplay()
86 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onStart_shouldStartVideoPreference()
88 mController.displayPreference(mScreen); in onStart_shouldStartVideoPreference()
98 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onStop_shouldStopVideoPreference()
101 mController.displayPreference(mScreen); in onStop_shouldStopVideoPreference()
/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/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/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DInputMethodPreferenceControllerTest.java50 private PreferenceScreen mScreen; field in InputMethodPreferenceControllerTest
56 mScreen = spy(new PreferenceScreen(mContext, null)); in setUp()
60 when(mScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in setUp()
61 when(mScreen.getContext()).thenReturn(mContext); in setUp()
62 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
64 mController.displayPreference(mScreen); in setUp()
71 assertThat(mScreen.getPreferenceCount()).isEqualTo(1); in onStart_NoInputMethod_shouldHaveOnePreference()
85 assertThat(mScreen.getPreferenceCount()).isEqualTo(3); in onStart_hasInputMethod_shouldHaveCorrectPreferences()
/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()
148 mController.displayPreference(mScreen); in displayPreference_defaultDeviceNameIsModelNameOnPreference()
156 mController.displayPreference(mScreen); in setDeviceName_ignoresIfCancelPressed()
165 mController.displayPreference(mScreen); in setDeviceName_okInDeviceNameWarningDialog_shouldChangePreferenceText()
174 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/location/
DLocationForWorkPreferenceControllerTest.java58 private PreferenceScreen mScreen; field in LocationForWorkPreferenceControllerTest
85 when(mScreen.findPreference(any())).thenReturn(mPreference); in setUp()
93 mController.displayPreference(mScreen); in handlePreferenceTreeClick_preferenceChecked_shouldSetRestrictionAndOnSummary()
105 mController.displayPreference(mScreen); in handlePreferenceTreeClick_preferenceUnchecked_shouldSetRestritionAndOffSummary()
117 mController.displayPreference(mScreen); in onLocationModeChanged_disabledByAdmin_shouldDisablePreference()
129 mController.displayPreference(mScreen); in onLocationModeChanged_locationOff_shouldDisablePreference()
142 mController.displayPreference(mScreen); in onLocationModeChanged_locationOn_shouldEnablePreference()
155 mController.displayPreference(mScreen); in onLocationModeChanged_noRestriction_shouldCheckedPreference()
167 mController.displayPreference(mScreen); in onLocationModeChanged_hasRestriction_shouldCheckedPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationPriorityPreferenceControllerTest.java71 private PreferenceScreen mScreen; field in ConversationPriorityPreferenceControllerTest
191 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceLowToImportant()
192 mController.displayPreference(mScreen); in testImportanceLowToImportant()
209 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceLowToDefault()
210 mController.displayPreference(mScreen); in testImportanceLowToDefault()
228 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceDefaultToLow()
229 mController.displayPreference(mScreen); in testImportanceDefaultToLow()
247 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportanceLowToDefault_bubblesMaintained()
248 mController.displayPreference(mScreen); in testImportanceLowToDefault_bubblesMaintained()
267 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testImportancePriorityToDefault()
[all …]

1234567891011