Home
last modified time | relevance | path

Searched defs:pref (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceControllerTest.java133 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_noMetaData() local
145 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_notTheDisableFilter() local
158 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_disableFilter_notThisField() local
172 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_disableFilter_thisField_stateIsChecked() local
182 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_disabled() local
196 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_disabled_metaData_disableFilter_thisField_stateIsNotChecked() local
210 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_checked() local
223 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_unchecked() local
236 CheckBoxPreference pref = new CheckBoxPreference(mContext); in onPreferenceChange_true() local
254 CheckBoxPreference pref = new CheckBoxPreference(mContext); in onPreferenceChange_false() local
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java217 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_providerLabelShouldBeSet() local
232 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked() local
247 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked() local
262 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked() local
276 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncDisabled_summaryShouldBeSet() local
296 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncEnabled_activelySyncing_summaryShouldBeSet() local
314 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncEnabled_syncHasHappened_summaryShouldBeSet() local
339 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_activelySyncing_notInitialSync_shouldHaveActiveSyncIcon() local
359 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncPending_notInitialSync_shouldHaveActiveSyncIcon() local
381 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncFailed_shouldHaveProblemSyncIcon() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java107 SwitchPreference pref = getPreference(); in displayRefresh_sink_shouldUncheck() local
119 SwitchPreference pref = getPreference(); in displayRefresh_source_shouldCheck() local
153 SwitchPreference pref = getPreference(); in onClick_sink_shouldSetSource() local
166 SwitchPreference pref = getPreference(); in onClickTwice_sink_shouldSetSourceOnce() local
180 SwitchPreference pref = getPreference(); in onClickDeviceAndRefresh_success_shouldClearSubtext() local
198 SwitchPreference pref = getPreference(); in onClickDeviceAndRefresh_failed_shouldShowFailureText() local
217 SwitchPreference pref = getPreference(); in onClickDevice_timedOut_shouldShowFailureText() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationPriorityPreferenceControllerTest.java141 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_disabledByAdmin() local
155 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_notConfigurable() local
170 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_systemButConfigurable() local
185 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_defaultApp() local
199 ConversationPriorityPreference pref = mock(ConversationPriorityPreference.class); in testUpdateState() local
215 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceLowToImportant() local
234 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceLowToDefault() local
254 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceDefaultToLow() local
274 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceLowToDefault_bubblesMaintained() local
295 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportancePriorityToDefault() local
DDndPreferenceControllerTest.java132 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local
145 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local
158 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local
171 RestrictedSwitchPreference pref = in testUpdateState_bypassDnd() local
184 RestrictedSwitchPreference pref = in testUpdateState_noBypassDnd() local
197 RestrictedSwitchPreference pref = in testOnPreferenceChange_on() local
216 RestrictedSwitchPreference pref = in testOnPreferenceChange_off() local
DSoundPreferenceControllerTest.java163 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testDisplayPreference_savesPreference() local
179 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_disabledByAdmin() local
193 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_notBlockable() local
209 NotificationSoundPreference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_configurable() local
225 NotificationSoundPreference pref = in testOnPreferenceChange() local
237 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testOnPreferenceTreeClick_incorrectPref() local
247 NotificationSoundPreference pref = in testOnPreferenceTreeClick_correctPref() local
265 NotificationSoundPreference pref = in testOnPreferenceTreeClick_alarmSound() local
286 NotificationSoundPreference pref = in testOnPreferenceTreeClick_ringtoneSound() local
307 NotificationSoundPreference pref = in testOnPreferenceTreeClick_otherSound() local
[all …]
DAllowSoundPreferenceControllerTest.java162 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
176 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notBlockable_oem() local
189 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_configurable() local
202 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForHighImportanceChannel() local
214 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForUnspecifiedImportanceChannel() local
226 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notCheckedForLowImportanceChannel() local
238 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on() local
256 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_off() local
DVibrationPreferenceControllerTest.java158 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local
171 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local
184 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local
197 RestrictedSwitchPreference pref = in testUpdateState_vibrateOn() local
210 RestrictedSwitchPreference pref = in testUpdateState_vibrateOff() local
223 RestrictedSwitchPreference pref = in testOnPreferenceChange_on() local
240 RestrictedSwitchPreference pref = in testOnPreferenceChange_off() local
DVisibilityPreferenceControllerTest.java184 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableSecure() local
206 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableUnredacted() local
221 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGlobally() local
246 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGloballyInProfile() local
269 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noPrivateLockScreenNotificationsGlobally() local
286 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noGlobalRestriction() local
317 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noChannelOverride() local
336 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_channelOverride() local
355 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testOnPreferenceChange_noOverride() local
374 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testOnPreferenceChange_override() local
DMinImportancePreferenceControllerTest.java161 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local
175 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local
190 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local
205 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local
217 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_min() local
229 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_low() local
242 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext, null); in onPreferenceChange() local
DHighImportancePreferenceControllerTest.java161 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local
175 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local
190 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local
205 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local
217 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_high() local
229 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_default() local
242 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext, null); in onPreferenceChange() local
DImportancePreferenceControllerTest.java178 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_disabledByAdmin() local
192 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_notConfigurable() local
207 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_systemButConfigurable() local
222 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_defaultApp() local
234 ImportancePreference pref = mock(ImportancePreference.class); in testUpdateState() local
250 ImportancePreference pref = new ImportancePreference(mContext, null); in testImportanceLowToHigh() local
269 ImportancePreference pref = new ImportancePreference(mContext, null); in testImportanceHighToLow() local
DBadgePreferenceControllerTest.java214 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
228 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channelNotBlockable() local
241 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channel() local
259 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_app() local
279 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on_channel() local
298 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_off_channel() local
314 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on_app() local
331 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_off_app() local
DInvalidConversationPreferenceControllerTest.java158 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
172 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notChecked() local
185 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checked() local
198 RestrictedSwitchPreference pref = in testOnPreferenceChange_toggleEnabled() local
217 RestrictedSwitchPreference pref = in testOnPreferenceChange_toggleDisabled() local
DBubblePreferenceControllerTest.java279 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_disabledByAdmin() local
294 BubblePreference pref = new BubblePreference(mContext); in updateState_app_disabledByAdmin() local
309 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_channel_channelNotBlockable() local
324 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in updateState_channel() local
345 BubblePreference pref = new BubblePreference(mContext); in updateState_app() local
372 BubblePreference pref = new BubblePreference(mContext); in updateState_app_offGlobally() local
387 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in onPreferenceChange_on_channel() local
407 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in onPreferenceChange_off_channel() local
426 BubblePreference pref = new BubblePreference(mContext); in onPreferenceChange_app_all() local
446 BubblePreference pref = new BubblePreference(mContext); in testOnPreferenceChange_app_all_offGlobally() local
[all …]
DLightsPreferenceControllerTest.java178 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
191 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notBlockable() local
204 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_lightsOn() local
216 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_lightsOff() local
228 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on() local
246 RestrictedSwitchPreference pref = in testOnPreferenceChange_off() local
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DEnhancedCallBlockingFragment.java85 Preference pref = findPreference(BLOCK_NUMBERS_NOT_IN_CONTACTS_KEY); in maybeConfigureCallBlockingOptions() local
93 Preference pref = findPreference(BLOCK_RESTRICTED_NUMBERS_KEY); in maybeConfigureCallBlockingOptions() local
103 SwitchPreference pref = (SwitchPreference) findPreference(key); in setOnPreferenceChangeListener() local
125 SwitchPreference pref = (SwitchPreference) findPreference(key); in updateEnhancedBlockPref() local
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DDebugSettingsFragment.java63 final Preference pref = new DictDumpPreference(getActivity(), dictName); in onCreate() local
104 public boolean onPreferenceClick(final Preference pref) { in onPreferenceClick()
156 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyPreviewAnimationScale() local
208 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyPreviewAnimationDuration() local
245 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyboardHeight() local
DThemeSettingsFragment.java46 static void updateKeyboardThemeSummary(final Preference pref) { in updateKeyboardThemeSummary()
70 final KeyboardThemePreference pref = new KeyboardThemePreference( in onCreate() local
82 final KeyboardThemePreference pref = (KeyboardThemePreference)preference; in onRadioButtonClicked() local
106 final KeyboardThemePreference pref = (KeyboardThemePreference)preference; in updateSelected() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DBaseSettingsFragment.java47 Preference pref) { in onPreferenceStartFragment()
86 PreferenceScreen pref) { in onPreferenceStartScreen()
100 Preference pref) { in onPreferenceDisplayDialog()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java70 public void onSaveInputMethodPreference(final InputMethodPreference pref) { in onSaveInputMethodPreference()
107 final InputMethodPreference pref = new InputMethodPreference( in updateInputMethodPreferenceViews() local
116 final InputMethodPreference pref = mInputMethodPreferenceList.get(i); in updateInputMethodPreferenceViews() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesControllerTest.java257 SwitchPreference pref = switches.get(0); in disableThenReenableOneProfile() local
298 SwitchPreference pref = switches.get(0); in pbapProfileStartsEnabled() local
321 SwitchPreference pref = switches.get(0); in pbapProfileStartsDisabled() local
343 SwitchPreference pref = switches.get(0); in mapProfile() local
377 SwitchPreference pref = getHighQualityAudioPref(); in highQualityAudio_prefIsPresentWhenSupported() local
395 SwitchPreference pref = (SwitchPreference) mProfiles.getPreference(0); in highQualityAudio_prefIsAbsentWhenNotSupported() local
407 SwitchPreference pref = getHighQualityAudioPref(); in highQualityAudio_busyDeviceDisablesSwitch() local
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DAppPermissionsFragmentWear.java181 final SwitchPreference pref = createSwitchPreferenceForPermission(group, perm); in initializePermissionGroupList() local
185 final SwitchPreference pref = createSwitchPreferenceForGroup(group); in initializePermissionGroupList() local
196 private void showOrAddToNonSystemPreferences(SwitchPreference pref, in showOrAddToNonSystemPreferences()
209 final SwitchPreference pref = new PermissionSwitchPreference(getActivity()); in createSwitchPreferenceForPermission() local
319 final SwitchPreference pref = new PermissionSwitchPreference(getActivity()); in createSwitchPreferenceForGroup() local
364 private void setPermission(AppPermissionGroup group, SwitchPreference pref, boolean grant) { in setPermission()
402 Preference pref = findPreference(preferenceKey); in setPreferenceCheckedIfPresent() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DSecurityPatchLevelPreferenceControllerTest.java87 final Preference pref = new Preference(mContext); in onClick_noActivityIntent_shouldDoNothing() local
103 final Preference pref = new Preference(mContext); in onClick_activityIntentFound_shouldStartActivity() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensePreferenceTest.java52 ModuleLicensePreference pref = new ModuleLicensePreference(mContext, mModuleInfo); in ctor_properKeyAndTitle() local
60 ModuleLicensePreference pref = new ModuleLicensePreference(mContext, mModuleInfo); in onClick_sendsCorrectIntent() local

12345678910>>...14