/packages/apps/Browser/src/com/android/browser/preferences/ |
D | AccessibilityPreferencesFragment.java | 79 void updateMinFontSummary(Preference pref, int minFontSize) { in updateMinFontSummary() argument 81 pref.setSummary(c.getString(R.string.pref_min_font_size_value, minFontSize)); in updateMinFontSummary() 84 void updateTextZoomSummary(Preference pref, int textZoom) { in updateTextZoomSummary() argument 85 pref.setSummary(mFormat.format(textZoom / 100.0)); in updateTextZoomSummary() 88 void updateDoubleTapZoomSummary(Preference pref, int doubleTapZoom) { in updateDoubleTapZoomSummary() argument 89 pref.setSummary(mFormat.format(doubleTapZoom / 100.0)); in updateDoubleTapZoomSummary() 92 void updateInvertedContrastSummary(Preference pref, int contrast) { in updateInvertedContrastSummary() argument 93 pref.setSummary(mFormat.format(contrast / 100.0)); in updateInvertedContrastSummary() 97 public boolean onPreferenceChange(Preference pref, Object objValue) { in onPreferenceChange() argument 104 if (PreferenceKeys.PREF_MIN_FONT_SIZE.equals(pref.getKey())) { in onPreferenceChange() [all …]
|
D | GeneralPreferencesFragment.java | 74 ListPreference pref = (ListPreference) findPreference(PREF_HOMEPAGE_PICKER); in onCreate() local 75 pref.setSummary(getHomepageSummary()); in onCreate() 76 pref.setPersistent(false); in onCreate() 77 pref.setValue(getHomepageValue()); in onCreate() 78 pref.setOnPreferenceChangeListener(this); in onCreate() 82 public boolean onPreferenceChange(Preference pref, Object objValue) { in onPreferenceChange() argument 90 if (pref.getKey().equals(PREF_HOMEPAGE_PICKER)) { in onPreferenceChange() 106 promptForHomepage((ListPreference) pref); in onPreferenceChange() 109 pref.setSummary(getHomepageSummary()); in onPreferenceChange() 110 ((ListPreference)pref).setValue(getHomepageValue()); in onPreferenceChange() [all …]
|
D | AdvancedPreferencesFragment.java | 107 public boolean onPreferenceChange(Preference pref, Object objValue) { in onPreferenceChange() argument 115 if (pref.getKey().equals(PreferenceKeys.PREF_DEFAULT_ZOOM)) { in onPreferenceChange() 116 pref.setSummary(getVisualDefaultZoomName((String) objValue)); in onPreferenceChange() 118 } else if (pref.getKey().equals(PreferenceKeys.PREF_DEFAULT_TEXT_ENCODING)) { in onPreferenceChange() 119 pref.setSummary((String) objValue); in onPreferenceChange() 121 } else if (pref.getKey().equals(PreferenceKeys.PREF_RESET_DEFAULT_PREFERENCES)) { in onPreferenceChange() 128 } else if (pref.getKey().equals(PreferenceKeys.PREF_PLUGIN_STATE) in onPreferenceChange() 129 || pref.getKey().equals(PreferenceKeys.PREF_SEARCH_ENGINE)) { in onPreferenceChange() 130 ListPreference lp = (ListPreference) pref; in onPreferenceChange()
|
/packages/apps/Browser/tests/src/com/android/browser/autocomplete/ |
D | SuggestedTextControllerTest.java | 205 String pref = commonPrefix(RUBY_MURRAY, RUBY_TUESDAY); in testChangeSuggestedText() local 207 insertAtCursor(pref); in testChangeSuggestedText() 209 assertUserEntered(pref); in testChangeSuggestedText() 212 assertUserEntered(pref); in testChangeSuggestedText() 224 final String pref = commonPrefix(RUBY_MURRAY, RUBY_TUESDAY); in testTypeNonSuggestedThenNewSuggestion() local 227 insertAtCursor(pref); in testTypeNonSuggestedThenNewSuggestion() 228 assertCursorPos(pref.length()); in testTypeNonSuggestedThenNewSuggestion() 229 assertUserEntered(pref); in testTypeNonSuggestedThenNewSuggestion() 230 insertAtCursor(RUBY_TUESDAY.charAt(pref.length())); in testTypeNonSuggestedThenNewSuggestion() 231 assertBuffer(RUBY_TUESDAY.substring(0, pref.length() + 1)); in testTypeNonSuggestedThenNewSuggestion() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | OtherSettingsPopup.java | 59 private int getSettingLayoutId(ListPreference pref) { in getSettingLayoutId() argument 62 if (pref == null) return R.layout.in_line_setting_restore; in getSettingLayoutId() 66 if (CameraSettings.KEY_RECORD_LOCATION.equals(pref.getKey())) { in getSettingLayoutId() 76 ListPreference pref = mListItem.get(position); in getView() 78 int viewLayoutId = getSettingLayoutId(pref); in getView() 82 view.initialize(pref); // no init for restore one in getView() 99 ListPreference pref = group.findPreference(keys[i]); in initialize() local 100 if (pref != null) mListItem.add(pref); in initialize() 126 ListPreference pref = (ListPreference) mListItem.get(j); in overrideSettings() local 127 if (pref != null && key.equals(pref.getKey())) { in overrideSettings() [all …]
|
D | IndicatorControl.java | 94 IconListPreference pref = in addControls() local 96 if (pref != null) { in addControls() 97 addIndicator(getContext(), pref); in addControls() local 110 ListPreference pref = mPreferenceGroup.findPreference( in initializeCameraPicker() local 112 if (pref == null) return; in initializeCameraPicker() 114 mCameraPicker.initialize(pref); in initializeCameraPicker() 125 public IndicatorButton addIndicator(Context context, IconListPreference pref) { in addIndicator() argument 126 IndicatorButton b = new IndicatorButton(context, pref); in addIndicator() 128 b.setContentDescription(pref.getTitle()); in addIndicator()
|
D | CameraPicker.java | 53 public void initialize(ListPreference pref) { in initialize() argument 54 mPreference = pref; in initialize() 55 mCameras = pref.getEntryValues(); in initialize() 58 String cameraId = pref.getValue(); in initialize()
|
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
D | QuickLaunchSettings.java | 171 private void showClearDialog(ShortcutPreference pref) { in showClearDialog() argument 173 if (!pref.hasBookmark()) return; in showClearDialog() 175 mClearDialogBookmarkTitle = pref.getTitle(); in showClearDialog() 176 mClearDialogShortcut = pref.getShortcut(); in showClearDialog() 199 ShortcutPreference pref = (ShortcutPreference) preference; in onPreferenceTreeClick() 201 intent.putExtra(BookmarkPicker.EXTRA_SHORTCUT, pref.getShortcut()); in onPreferenceTreeClick() 210 Preference pref = (Preference) getPreferenceScreen().getRootAdapter().getItem(position); in onItemLongClick() local 211 if (!(pref instanceof ShortcutPreference)) return false; in onItemLongClick() 212 showClearDialog((ShortcutPreference) pref); in onItemLongClick() 246 ShortcutPreference pref = mShortcutToPreference.get(shortcut); in getOrCreatePreference() local [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | PreferenceGroup.java | 54 for (CameraPreference pref : list) { in reloadValue() 55 pref.reloadValue(); in reloadValue() 67 for (CameraPreference pref : list) { in findPreference() 68 if (pref instanceof ListPreference) { in findPreference() 69 ListPreference listPref = (ListPreference) pref; in findPreference() 71 } else if(pref instanceof PreferenceGroup) { in findPreference() 73 ((PreferenceGroup) pref).findPreference(key); in findPreference()
|
D | CameraSettings.java | 259 ListPreference pref, List<String> supported) { in filterUnsupportedOptions() argument 264 removePreference(group, pref.getKey()); in filterUnsupportedOptions() 268 pref.filterUnsupported(supported); in filterUnsupportedOptions() 269 if (pref.getEntries().length <= 1) { in filterUnsupportedOptions() 270 removePreference(group, pref.getKey()); in filterUnsupportedOptions() 274 resetIfInvalid(pref); in filterUnsupportedOptions() 277 private void resetIfInvalid(ListPreference pref) { in resetIfInvalid() argument 279 String value = pref.getValue(); in resetIfInvalid() 280 if (pref.findIndexOfValue(value) == NOT_FOUND) { in resetIfInvalid() 281 pref.setValueIndex(0); in resetIfInvalid() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | RespondViaSmsManager.java | 360 EditTextPreference pref; in onCreate() local 361 pref = (EditTextPreference) findPreference(KEY_CANNED_RESPONSE_PREF_1); in onCreate() 362 pref.setTitle(pref.getText()); in onCreate() 363 pref.setOnPreferenceChangeListener(this); in onCreate() 365 pref = (EditTextPreference) findPreference(KEY_CANNED_RESPONSE_PREF_2); in onCreate() 366 pref.setTitle(pref.getText()); in onCreate() 367 pref.setOnPreferenceChangeListener(this); in onCreate() 369 pref = (EditTextPreference) findPreference(KEY_CANNED_RESPONSE_PREF_3); in onCreate() 370 pref.setTitle(pref.getText()); in onCreate() 371 pref.setOnPreferenceChangeListener(this); in onCreate() [all …]
|
D | GsmUmtsCallForwardOptions.java | 93 for (CallForwardEditPreference pref : mPreferences) { in onResume() 94 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() 95 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume() 99 pref.handleCallForwardResult(cf); in onResume() 100 pref.init(this, true); in onResume() 112 for (CallForwardEditPreference pref : mPreferences) { in onSaveInstanceState() 114 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); in onSaveInstanceState() 115 if (pref.callForwardInfo != null) { in onSaveInstanceState() 116 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); in onSaveInstanceState() 117 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status); in onSaveInstanceState() [all …]
|
/packages/apps/Phone/src/com/android/phone/sip/ |
D | SipEditor.java | 309 EditTextPreference pref = (EditTextPreference) key.preference; in isEditTextEmpty() local 310 return TextUtils.isEmpty(pref.getText()) in isEditTextEmpty() 311 || pref.getSummary().equals(getString(key.defaultSummary)); in isEditTextEmpty() 320 EditTextPreference pref = (EditTextPreference) p; in validateAndSetResult() local 328 pref.setText(getDefaultDisplayName()); in validateAndSetResult() 335 pref.setText(getString(R.string.default_port)); in validateAndSetResult() 339 firstEmptyFieldTitle = pref.getTitle(); in validateAndSetResult() 433 public boolean onPreferenceChange(Preference pref, Object newValue) { in onPreferenceChange() argument 440 if (pref instanceof CheckBoxPreference) return true; in onPreferenceChange() 443 pref.setSummary(getPreferenceKey(pref).defaultSummary); in onPreferenceChange() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | DreamSettings.java | 70 ListPreference pref, in updateTimeoutPreferenceDescription() argument 73 updateTimeoutPreferenceDescription(resolver, pref, summaryStrings, 0, currentTimeout); in updateTimeoutPreferenceDescription() 77 ListPreference pref, in updateTimeoutPreferenceDescription() argument 83 summary = pref.getContext().getString(zeroString); in updateTimeoutPreferenceDescription() 85 final CharSequence[] entries = pref.getEntries(); in updateTimeoutPreferenceDescription() 86 final CharSequence[] values = pref.getEntryValues(); in updateTimeoutPreferenceDescription() 94 summary = pref.getContext().getString(summaryStrings, entries[best]); in updateTimeoutPreferenceDescription() 96 pref.setSummary(summary); in updateTimeoutPreferenceDescription()
|
D | WallpaperTypeSettings.java | 50 Preference pref = new Preference(getActivity()); in populateWallpaperTypes() local 54 pref.setIntent(prefIntent); in populateWallpaperTypes() 57 pref.setTitle(label); in populateWallpaperTypes() 58 parent.addPreference(pref); in populateWallpaperTypes()
|
D | ApnSettings.java | 169 ApnPreference pref = new ApnPreference(this); in fillList() local 171 pref.setKey(key); in fillList() 172 pref.setTitle(name); in fillList() 173 pref.setSummary(apn); in fillList() 174 pref.setPersistent(false); in fillList() 175 pref.setOnPreferenceChangeListener(this); in fillList() 178 pref.setSelectable(selectable); in fillList() 181 pref.setChecked(); in fillList() 183 apnList.addPreference(pref); in fillList() 185 mmsApnList.add(pref); in fillList()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DeviceProfilesSettings.java | 179 Preference pref = createProfilePreference(profile); in addPreferencesForProfiles() local 180 mProfileContainer.addPreference(pref); in addPreferencesForProfiles() 205 CheckBoxPreference pref = new CheckBoxPreference(getActivity()); in createProfilePreference() local 206 pref.setKey(profile.toString()); in createProfilePreference() 207 pref.setTitle(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference() 208 pref.setPersistent(false); in createProfilePreference() 209 pref.setOrder(getProfilePreferenceIndex(profile.getOrdinal())); in createProfilePreference() 210 pref.setOnPreferenceChangeListener(this); in createProfilePreference() 214 pref.setIcon(getResources().getDrawable(iconResource)); in createProfilePreference() 220 pref.setEnabled(!mCachedDevice.isBusy()); in createProfilePreference() [all …]
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | Settings.java | 40 protected Settings(SharedPreferences pref) { in Settings() argument 41 mSharedPref = pref; in Settings() 45 public static Settings getInstance(SharedPreferences pref) { in getInstance() argument 47 mInstance = new Settings(pref); in getInstance() 49 assert (pref == mSharedPref); in getInstance()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | SettingsActivity.java | 77 CheckBoxPreference pref = (CheckBoxPreference) preference; in onPreferenceTreeClick() local 82 if (pref.isChecked()) { in onPreferenceTreeClick() 98 public boolean onPreferenceChange(Preference pref, Object newValue) { in onPreferenceChange() argument 99 if (KEY_ALARM_SNOOZE.equals(pref.getKey())) { in onPreferenceChange() 100 final ListPreference listPref = (ListPreference) pref; in onPreferenceChange() 103 } else if (KEY_AUTO_SILENCE.equals(pref.getKey())) { in onPreferenceChange() 104 final ListPreference listPref = (ListPreference) pref; in onPreferenceChange()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnn.java | 76 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this); in onCreate() local 99 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this); in onCreateInputView() local 160 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this); in onStartInputView() local 161 if (mCandidatesViewManager != null) { mCandidatesViewManager.setPreferences(pref); } in onStartInputView() 162 if (mInputViewManager != null) { mInputViewManager.setPreferences(pref, attribute); } in onStartInputView() 163 if (mPreConverter != null) { mPreConverter.setPreferences(pref); } in onStartInputView() 164 if (mConverter != null) { mConverter.setPreferences(pref); } in onStartInputView()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | InputMethodAndSubtypeUtil.java | 190 Preference pref = context.findPreference(imiId); in saveInputMethodSubtypeList() local 191 if (pref == null) continue; in saveInputMethodSubtypeList() 194 final boolean isImeChecked = (pref instanceof CheckBoxPreference) ? in saveInputMethodSubtypeList() 195 ((CheckBoxPreference) pref).isChecked() in saveInputMethodSubtypeList() 309 Preference pref = context.findPreference(imiId); in loadInputMethodSubtypeList() local 310 if (pref != null && pref instanceof CheckBoxPreference) { in loadInputMethodSubtypeList() 311 CheckBoxPreference checkBoxPreference = (CheckBoxPreference) pref; in loadInputMethodSubtypeList() 333 CheckBoxPreference pref = (CheckBoxPreference) preferenceScreen.findPreference( in setSubtypesPreferenceEnabled() local 335 if (pref != null) { in setSubtypesPreferenceEnabled() 336 pref.setEnabled(enabled); in setSubtypesPreferenceEnabled() [all …]
|
/packages/apps/Protips/src/com/android/protips/ |
D | ProtipWidget.java | 73 SharedPreferences pref = context.getSharedPreferences(PREFS_NAME, 0); in setup() local 74 mMessage = pref.getInt(PREFS_TIP_NUMBER, 0); in setup() 75 mTipSet = pref.getInt(PREFS_TIP_SET, 0); in setup() 125 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); in onReceiveAsync() local 126 pref.putInt(PREFS_TIP_NUMBER, mMessage); in onReceiveAsync() 127 pref.apply(); in onReceiveAsync() 138 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); in onReceiveAsync() local 139 pref.putInt(PREFS_TIP_NUMBER, mMessage); in onReceiveAsync() 140 pref.putInt(PREFS_TIP_SET, mTipSet); in onReceiveAsync() 141 pref.apply(); in onReceiveAsync()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertFileList.java | 86 public boolean onPreferenceClick(Preference pref) { in onPreferenceClick() argument 88 pref.getTitle().toString()); in onPreferenceClick() 124 Preference pref = new Preference(this); in createFileList() local 125 pref.setTitle(file.getCanonicalPath().substring(prefixEnd)); in createFileList() 126 root.addPreference(pref); in createFileList() 127 pref.setOnPreferenceClickListener(this); in createFileList()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | Compatibility.java | 66 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in onCreate() local 67 String defPackage = pref.getString("defaultpanelpackage", null); in onCreate() 68 String defName = pref.getString("defaultpanelname", null); in onCreate() 152 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in pickDefaultControlPanel() local 153 String savedDefPackage = pref.getString("defaultpanelpackage", null); in pickDefaultControlPanel() 154 String savedDefName = pref.getString("defaultpanelname", null); in pickDefaultControlPanel() 209 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in setDefault() local 210 Editor ed = pref.edit(); in setDefault()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSettings.java | 86 public boolean onPreferenceChange(Preference pref, Object newValue) { in onCreate() 87 final ListPreference listPref = (ListPreference) pref; in onCreate() 96 public boolean onPreferenceChange(Preference pref, Object newValue) { in onCreate() 97 CellBroadcastReceiver.startConfigService(pref.getContext()); in onCreate()
|