Home
last modified time | relevance | path

Searched refs:pref (Results 1 – 25 of 66) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/vpn/
DVpnProfileEditor.java63 Preference pref, Object newValue) { in loadPreferencesTo()
101 EditTextPreference pref = mDomainSuffices = createEditTextPreference(c, in createDomainSufficesPreference() local
107 Preference pref, Object newValue) { in createDomainSufficesPreference()
110 setSummary(pref, R.string.vpn_dns_search_list, v, false); in createDomainSufficesPreference()
114 pref.getEditText().setInputType(InputType.TYPE_TEXT_VARIATION_URI); in createDomainSufficesPreference()
115 return pref; in createDomainSufficesPreference()
119 EditTextPreference pref = mServerName = createEditTextPreference(c, in createServerNamePreference() local
125 Preference pref, Object newValue) { in createServerNamePreference()
128 setSummary(pref, R.string.vpn_vpn_server, v); in createServerNamePreference()
132 pref.getEditText().setInputType(InputType.TYPE_TEXT_VARIATION_URI); in createServerNamePreference()
[all …]
DL2tpIpsecEditor.java76 Preference pref, Object newValue) { in createUserCertificatePreference()
78 setSummary(pref, R.string.vpn_user_certificate, in createUserCertificatePreference()
95 Preference pref, Object newValue) { in createCaCertificatePreference()
97 setSummary(pref, R.string.vpn_ca_certificate, in createCaCertificatePreference()
110 ListPreference pref = new ListPreference(c); in createListPreference() local
111 pref.setTitle(titleResId); in createListPreference()
112 pref.setDialogTitle(titleResId); in createListPreference()
113 pref.setPersistent(true); in createListPreference()
114 pref.setEntries(keys); in createListPreference()
115 pref.setEntryValues(keys); in createListPreference()
[all …]
DVpnTypeSelection.java47 public boolean onPreferenceTreeClick(PreferenceScreen ps, Preference pref) { in onPreferenceTreeClick() argument
48 setResult(mTypeMap.get(pref.getTitle().toString())); in onPreferenceTreeClick()
61 Preference pref = new Preference(this); in initTypeList() local
62 pref.setTitle(message); in initTypeList()
63 pref.setSummary(t.getDescriptionId()); in initTypeList()
64 root.addPreference(pref); in initTypeList()
DVpnSettings.java482 VpnPreference pref = mVpnPreferenceMap.get(p.getName());
483 if ((pref != null) && (index >= 0) && (index < list.size())) {
485 if (pref.mProfile == list.get(index)) pref = null;
487 return (pref != null);
509 VpnPreference pref =
511 mVpnListContainer.removePreference(pref);
562 VpnPreference pref = new VpnPreference(this, p);
563 mVpnPreferenceMap.put(p.getName(), pref);
564 if (addToContainer) mVpnListContainer.addPreference(pref);
566 pref.setOnPreferenceClickListener(
[all …]
/packages/apps/Settings/src/com/android/settings/quicklaunch/
DQuickLaunchSettings.java171 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/
DPreferenceGroup.java54 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()
DCameraSettings.java273 ListPreference pref, List<String> supported) { in filterUnsupportedOptions() argument
275 CharSequence[] allEntries = pref.getEntries(); in filterUnsupportedOptions()
280 removePreference(group, pref.getKey()); in filterUnsupportedOptions()
284 pref.filterUnsupported(supported); in filterUnsupportedOptions()
285 if (pref.getEntries().length <= 1) { in filterUnsupportedOptions()
286 removePreference(group, pref.getKey()); in filterUnsupportedOptions()
291 String value = pref.getValue(); in filterUnsupportedOptions()
292 if (pref.findIndexOfValue(value) == NOT_FOUND) { in filterUnsupportedOptions()
293 pref.setValueIndex(0); in filterUnsupportedOptions()
305 public static void upgradeLocalPreferences(SharedPreferences pref) { in upgradeLocalPreferences() argument
[all …]
/packages/apps/Phone/src/com/android/phone/sip/
DSipEditor.java307 EditTextPreference pref = (EditTextPreference) key.preference; in isEditTextEmpty() local
308 return TextUtils.isEmpty(pref.getText()) in isEditTextEmpty()
309 || pref.getSummary().equals(getString(key.defaultSummary)); in isEditTextEmpty()
318 EditTextPreference pref = (EditTextPreference) p; in validateAndSetResult() local
326 pref.setText(getDefaultDisplayName()); in validateAndSetResult()
333 pref.setText(getString(R.string.default_port)); in validateAndSetResult()
337 firstEmptyFieldTitle = pref.getTitle(); in validateAndSetResult()
431 public boolean onPreferenceChange(Preference pref, Object newValue) { in onPreferenceChange() argument
438 if (pref instanceof CheckBoxPreference) return true; in onPreferenceChange()
441 pref.setSummary(getPreferenceKey(pref).defaultSummary); in onPreferenceChange()
[all …]
/packages/apps/Browser/src/com/android/browser/
DBrowserPreferencesPage.java121 public boolean onPreferenceChange(Preference pref, Object objValue) { in onPreferenceChange() argument
122 if (pref.getKey().equals(BrowserSettings.PREF_EXTRAS_RESET_DEFAULTS)) { in onPreferenceChange()
127 } else if (pref.getKey().equals(BrowserSettings.PREF_HOMEPAGE)) { in onPreferenceChange()
138 pref.setSummary(value); in onPreferenceChange()
142 ((EditTextPreference) pref).setText(value); in onPreferenceChange()
151 } else if (pref.getKey().equals(BrowserSettings.PREF_TEXT_SIZE)) { in onPreferenceChange()
152 pref.setSummary(getVisualTextSizeName((String) objValue)); in onPreferenceChange()
154 } else if (pref.getKey().equals(BrowserSettings.PREF_DEFAULT_ZOOM)) { in onPreferenceChange()
155 pref.setSummary(getVisualDefaultZoomName((String) objValue)); in onPreferenceChange()
157 } else if (pref.getKey().equals( in onPreferenceChange()
[all …]
/packages/apps/Phone/src/com/android/phone/
DGsmUmtsCallForwardOptions.java85 for (CallForwardEditPreference pref : mPreferences) { in onResume()
86 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume()
87 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume()
91 pref.handleCallForwardResult(cf); in onResume()
92 pref.init(this, true); in onResume()
104 for (CallForwardEditPreference pref : mPreferences) { in onSaveInstanceState()
106 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); in onSaveInstanceState()
107 if (pref.callForwardInfo != null) { in onSaveInstanceState()
108 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); in onSaveInstanceState()
109 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status); in onSaveInstanceState()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DConnectSpecificProfilesActivity.java128 Preference pref = createProfilePreference(profile); in addPreferencesForProfiles() local
129 mProfileContainer.addPreference(pref); in addPreferencesForProfiles()
142 CheckBoxPreference pref = new CheckBoxPreference(this); in createProfilePreference() local
143 pref.setKey(profile.toString()); in createProfilePreference()
144 pref.setTitle(profile.localizedString); in createProfilePreference()
145 pref.setPersistent(false); in createProfilePreference()
146 pref.setOnPreferenceChangeListener(this); in createProfilePreference()
154 pref.setEnabled(!mCachedDevice.isBusy()); in createProfilePreference()
156 refreshProfilePreference(pref, profile); in createProfilePreference()
158 return pref; in createProfilePreference()
[all …]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSettings.java40 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/AccountsAndSyncSettings/src/com/android/settings/
DAddAccountSettings.java96 for (ProviderEntry pref : mProviderList) { in onAuthDescriptionsUpdated()
97 Drawable drawable = getDrawableForType(pref.type); in onAuthDescriptionsUpdated()
98 ProviderPreference p = new ProviderPreference(this, pref.type, drawable, pref.name); in onAuthDescriptionsUpdated()
131 ProviderPreference pref = (ProviderPreference) preference; in onPreferenceTreeClick() local
132 if (LDEBUG) Log.v(TAG, "Attempting to add account of type " + pref.getAccountType()); in onPreferenceTreeClick()
133 addAccount(pref.getAccountType()); in onPreferenceTreeClick()
DManageAccountsSettings.java121 final CheckBoxPreference pref = in onCreateDialog() local
131 pref.setChecked(false); in onCreateDialog()
173 Preference pref = mManageAccountsCategory.getPreference(i);
174 if (! (pref instanceof AccountPreference)) {
178 AccountPreference accountPref = (AccountPreference) pref;
254 AccountPreference pref = (AccountPreference) mManageAccountsCategory.getPreference(i);
255 pref.setProviderIcon(getDrawableForType(pref.getAccount().type));
256 pref.setSummary(getLabelForType(pref.getAccount().type));
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnn.java76 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/Camera/src/com/android/camera/ui/
DPreferenceAdapter.java94 ListPreference pref = mPreference; in onItemSelected()
95 CharSequence[] values = pref.getEntryValues(); in onItemSelected()
98 int oldIndex = pref.findIndexOfValue(pref.getValue()); in onItemSelected()
100 synchronized (pref.getSharedPreferences()) { in onItemSelected()
101 pref.setValueIndex(index); in onItemSelected()
DBasicIndicator.java46 IconListPreference pref = mPreference; in updateContent()
48 int index = pref.findIndexOfValue( in updateContent()
49 override == null ? pref.getValue() : override); in updateContent()
58 IconListPreference pref = mPreference; in overrideSettings() local
59 if (!pref.getKey().equals(key)) return; in overrideSettings()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertFileList.java85 public boolean onPreferenceClick(Preference pref) { in onPreferenceClick() argument
87 pref.getTitle().toString()); in onPreferenceClick()
120 Preference pref = new Preference(this); in createFileList() local
121 pref.setTitle(file.getCanonicalPath().substring(prefixEnd)); in createFileList()
122 root.addPreference(pref); in createFileList()
123 pref.setOnPreferenceClickListener(this); in createFileList()
/packages/apps/Settings/src/com/android/settings/wifi/
DAdvancedSettings.java117 ListPreference pref = (ListPreference) findPreference(KEY_NUM_CHANNELS); in initNumChannelsPreference() local
118 pref.setOnPreferenceChangeListener(this); in initNumChannelsPreference()
130 pref.setEnabled(false); in initNumChannelsPreference()
141 pref.setEntries(entries); in initNumChannelsPreference()
142 pref.setEntryValues(entryValues); in initNumChannelsPreference()
143 pref.setEnabled(true); in initNumChannelsPreference()
146 pref.setValue(String.valueOf(numChannels)); in initNumChannelsPreference()
151 ListPreference pref = (ListPreference) findPreference(KEY_SLEEP_POLICY); in initSleepPolicyPreference() local
152 pref.setOnPreferenceChangeListener(this); in initSleepPolicyPreference()
155 pref.setValue(String.valueOf(value)); in initSleepPolicyPreference()
/packages/apps/Protips/src/com/android/protips/
DProtipWidget.java82 SharedPreferences pref = context.getSharedPreferences(PREFS_NAME, 0); in setup() local
83 mMessage = pref.getInt(PREFS_TIP_NUMBER, 0); in setup()
84 mTipSet = pref.getInt(PREFS_TIP_SET, 0); in setup()
122 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); in onReceive() local
123 pref.putInt(PREFS_TIP_NUMBER, mMessage); in onReceive()
124 pref.commit(); in onReceive()
135 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); in onReceive() local
136 pref.putInt(PREFS_TIP_NUMBER, mMessage); in onReceive()
137 pref.putInt(PREFS_TIP_SET, mTipSet); in onReceive()
138 pref.commit(); in onReceive()
/packages/apps/Settings/src/com/android/settings/
DApnSettings.java169 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()
DLanguageSettings.java163 CheckBoxPreference pref = (CheckBoxPreference) findPreference(mInputMethodProperties in onResume() local
165 if (pref != null) { in onResume()
166 pref.setChecked(enabled.contains(id)); in onResume()
193 CheckBoxPreference pref = (CheckBoxPreference) findPreference(id); in onPause() local
197 || (pref != null && pref.isChecked())) { in onPause()
208 if (pref != null && !pref.isChecked() && systemIme && mHaveHardKeyboard) { in onPause()
289 PreferenceScreen pref = (PreferenceScreen) preference; in onPreferenceTreeClick() local
290 String activityName = pref.getKey(); in onPreferenceTreeClick()
/packages/apps/DeskClock/src/com/android/deskclock/
DSettingsActivity.java60 CheckBoxPreference pref = (CheckBoxPreference) preference; in onPreferenceTreeClick() local
65 if (pref.isChecked()) { in onPreferenceTreeClick()
81 public boolean onPreferenceChange(Preference pref, Object newValue) { in onPreferenceChange() argument
82 final ListPreference listPref = (ListPreference) pref; in onPreferenceChange()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java86 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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DInputLanguageSelection.java86 CheckBoxPreference pref = new CheckBoxPreference(this); in onCreate() local
88 pref.setTitle(LanguageSwitcher.toTitleCase(locale.getDisplayName(locale), locale)); in onCreate()
90 pref.setChecked(checked); in onCreate()
92 pref.setSummary(R.string.has_dictionary); in onCreate()
94 parent.addPreference(pref); in onCreate()
147 CheckBoxPreference pref = (CheckBoxPreference) parent.getPreference(i); in onPause() local
148 if (pref.isChecked()) { in onPause()

123