Home
last modified time | relevance | path

Searched refs:preference (Results 1 – 25 of 119) sorted by relevance

12345

/packages/apps/Settings/src/com/android/settings/
DAccessibilitySettings.java24 import android.preference.CheckBoxPreference;
25 import android.preference.Preference;
26 import android.preference.PreferenceActivity;
27 import android.preference.PreferenceGroup;
28 import android.preference.PreferenceScreen;
87 CheckBoxPreference preference = (CheckBoxPreference) findPreference(key); in onResume() local
88 if (preference != null) { in onResume()
89 preference.setChecked(enabled.contains(key)); in onResume()
138 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
139 final String key = preference.getKey(); in onPreferenceTreeClick()
[all …]
DPhysicalKeyboardSettings.java21 import android.preference.CheckBoxPreference;
22 import android.preference.Preference;
23 import android.preference.PreferenceActivity;
24 import android.preference.PreferenceScreen;
69 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
73 if (mSettingsUiKey[i].equals(preference.getKey())) { in onPreferenceTreeClick()
75 ((CheckBoxPreference)preference).isChecked()? 1 : 0); in onPreferenceTreeClick()
80 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
DUtils.java24 import android.preference.Preference;
25 import android.preference.PreferenceGroup;
54 Preference preference = parentPreferenceGroup.findPreference(preferenceKey); in updatePreferenceToSpecificActivityOrRemove() local
55 if (preference == null) { in updatePreferenceToSpecificActivityOrRemove()
59 Intent intent = preference.getIntent(); in updatePreferenceToSpecificActivityOrRemove()
71 preference.setIntent(new Intent().setClassName( in updatePreferenceToSpecificActivityOrRemove()
77 preference.setTitle(resolveInfo.loadLabel(pm)); in updatePreferenceToSpecificActivityOrRemove()
86 parentPreferenceGroup.removePreference(preference); in updatePreferenceToSpecificActivityOrRemove()
DSoundAndDisplaySettings.java32 import android.preference.ListPreference;
33 import android.preference.Preference;
34 import android.preference.PreferenceActivity;
35 import android.preference.PreferenceScreen;
36 import android.preference.CheckBoxPreference;
226 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
228 if (preference == mSilent || preference == mVibrate) { in onPreferenceTreeClick()
230 if (preference == mSilent) updateState(false); in onPreferenceTreeClick()
231 } else if (preference == mPlayMediaNotificationSounds) { in onPreferenceTreeClick()
236 } else if (preference == mDtmfTone) { in onPreferenceTreeClick()
[all …]
DApplicationSettings.java23 import android.preference.CheckBoxPreference;
24 import android.preference.Preference;
25 import android.preference.PreferenceActivity;
26 import android.preference.PreferenceScreen;
64 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
65 if (preference == mToggleAppInstallation) { in onPreferenceTreeClick()
74 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
DDevelopmentSettings.java24 import android.preference.Preference;
25 import android.preference.PreferenceActivity;
26 import android.preference.PreferenceScreen;
27 import android.preference.CheckBoxPreference;
72 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
80 if (preference == mEnableAdb) { in onPreferenceTreeClick()
94 } else if (preference == mKeepScreenOn) { in onPreferenceTreeClick()
98 } else if (preference == mAllowMockLocation) { in onPreferenceTreeClick()
DDeviceInfoSettings.java26 import android.preference.Preference;
27 import android.preference.PreferenceActivity;
28 import android.preference.PreferenceGroup;
89 private void setStringSummary(String preference, String value) { in setStringSummary() argument
91 findPreference(preference).setSummary(value); in setStringSummary()
93 findPreference(preference).setSummary( in setStringSummary()
98 private void setValueSummary(String preference, String property) { in setValueSummary() argument
100 findPreference(preference).setSummary( in setValueSummary()
DLanguageSettings.java29 import android.preference.CheckBoxPreference;
30 import android.preference.Preference;
31 import android.preference.PreferenceActivity;
32 import android.preference.PreferenceGroup;
33 import android.preference.PreferenceScreen;
206 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
215 if (preference instanceof CheckBoxPreference) { in onPreferenceTreeClick()
216 final CheckBoxPreference chkPref = (CheckBoxPreference) preference; in onPreferenceTreeClick()
228 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
234 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
[all …]
DApnSettings.java35 import android.preference.Preference;
36 import android.preference.PreferenceActivity;
37 import android.preference.PreferenceGroup;
38 import android.preference.PreferenceScreen;
191 for (Preference preference : mmsApnList) { in fillList()
192 apnList.addPreference(preference); in fillList()
227 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
228 int pos = Integer.parseInt(preference.getKey()); in onPreferenceTreeClick()
234 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
235 Log.d(TAG, "onPreferenceChange(): Preference - " + preference in onPreferenceChange()
DTextToSpeechSettings.java32 import android.preference.ListPreference;
33 import android.preference.Preference;
34 import android.preference.PreferenceActivity;
35 import android.preference.CheckBoxPreference;
296 public boolean onPreferenceChange(Preference preference, Object objValue) { in onPreferenceChange() argument
297 if (KEY_TTS_USE_DEFAULT.equals(preference.getKey())) { in onPreferenceChange()
303 } else if (KEY_TTS_DEFAULT_RATE.equals(preference.getKey())) { in onPreferenceChange()
316 } else if (KEY_TTS_DEFAULT_LANG.equals(preference.getKey())) { in onPreferenceChange()
337 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() argument
338 if (preference == mPlayExample) { in onPreferenceClick()
[all …]
DIccLockSettings.java25 import android.preference.CheckBoxPreference;
26 import android.preference.Preference;
27 import android.preference.PreferenceActivity;
28 import android.preference.PreferenceScreen;
212 public void onPinEntered(EditPinPreference preference, boolean positiveResult) { in onPinEntered() argument
218 mPin = preference.getText(); in onPinEntered()
256 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
257 if (preference == mPinToggle) { in onPreferenceTreeClick()
/packages/apps/Phone/src/com/android/phone/
DCellBroadcastSms.java21 import android.preference.CheckBoxPreference;
22 import android.preference.ListPreference;
23 import android.preference.Preference;
24 import android.preference.PreferenceScreen;
25 import android.preference.PreferenceActivity;
181 Preference preference) { in onPreferenceTreeClick() argument
182 if (preference == mButtonBcSms) { in onPreferenceTreeClick()
199 } else if (preference == mListLanguage) { in onPreferenceTreeClick()
201 } else if (preference == mButtonEmergencyBroadcast) { in onPreferenceTreeClick()
206 } else if (preference == mButtonAdministrative) { in onPreferenceTreeClick()
[all …]
DCdmaOptions.java24 import android.preference.ListPreference;
25 import android.preference.Preference;
26 import android.preference.PreferenceActivity;
27 import android.preference.PreferenceScreen;
82 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
83 if (preference == mButtonCdmaRoam) { in onPreferenceTreeClick()
91 else if (preference == mButtonCdmaNwPreference) { in onPreferenceTreeClick()
95 else if (preference == mButtonCdmaSubscription) { in onPreferenceTreeClick()
177 public boolean onPreferenceChange(Preference preference, Object objValue) { in onPreferenceChange() argument
179 if (preference == mButtonCdmaRoam) { in onPreferenceChange()
[all …]
DSettings.java25 import android.preference.CheckBoxPreference;
26 import android.preference.ListPreference;
27 import android.preference.Preference;
28 import android.preference.PreferenceActivity;
29 import android.preference.PreferenceScreen;
101 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
102 if (preference == mButtonPreferredNetworkMode) { in onPreferenceTreeClick()
110 else if (preference == mButtonDataRoam) { in onPreferenceTreeClick()
131 else if (preference == mButtonCdmaRoam) { in onPreferenceTreeClick()
140 else if (preference == mButtonPrefer2g) { in onPreferenceTreeClick()
[all …]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSettingsActivity.java22 import android.preference.CheckBoxPreference;
23 import android.preference.Preference;
24 import android.preference.PreferenceActivity;
25 import android.preference.PreferenceGroup;
26 import android.preference.PreferenceManager;
27 import android.preference.PreferenceScreen;
91 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
102 Preference preference = parentPref.findPreference(prefKey); in updatePreference() local
103 if (preference == null) { in updatePreference()
106 Intent intent = preference.getIntent(); in updatePreference()
[all …]
/packages/apps/GoogleSearch/src/com/android/googlesearch/
DSettings.java20 import android.preference.CheckBoxPreference;
21 import android.preference.Preference;
22 import android.preference.PreferenceActivity;
23 import android.preference.PreferenceScreen;
24 import android.preference.Preference.OnPreferenceClickListener;
46 public synchronized boolean onPreferenceClick(Preference preference) { in onPreferenceClick() argument
47 if (preference == mShowWebSuggestionsPreference) { in onPreferenceClick()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothSettings.java32 import android.preference.CheckBoxPreference;
33 import android.preference.Preference;
34 import android.preference.PreferenceActivity;
35 import android.preference.PreferenceScreen;
177 Preference preference) { in onPreferenceTreeClick() argument
179 if (KEY_BT_SCAN.equals(preference.getKey())) { in onPreferenceTreeClick()
184 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick()
185 BluetoothDevicePreference btPreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick()
190 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
236 BluetoothDevicePreference preference = new BluetoothDevicePreference(this, device); in createDevicePreference() local
[all …]
DConnectSpecificProfilesActivity.java24 import android.preference.CheckBoxPreference;
25 import android.preference.Preference;
26 import android.preference.PreferenceActivity;
27 import android.preference.PreferenceGroup;
152 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
153 String key = preference.getKey(); in onPreferenceChange()
160 Profile profile = getProfileOf(preference); in onPreferenceChange()
/packages/apps/AlarmClock/src/com/android/alarmclock/
DSettingsActivity.java21 import android.preference.CheckBoxPreference;
22 import android.preference.Preference;
23 import android.preference.PreferenceActivity;
24 import android.preference.PreferenceScreen;
57 Preference preference) { in onPreferenceTreeClick() argument
59 if (preference == mAlarmInSilentModePref) { in onPreferenceTreeClick()
78 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
/packages/apps/IM/src/com/android/im/app/
DSettingActivity.java22 import android.preference.Preference;
23 import android.preference.PreferenceScreen;
24 import android.preference.CheckBoxPreference;
31 public class SettingActivity extends android.preference.PreferenceActivity {
72 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
73 if (preference instanceof CheckBoxPreference) { in onPreferenceTreeClick()
77 String key = preference.getKey(); in onPreferenceTreeClick()
78 boolean value = ((CheckBoxPreference) preference).isChecked(); in onPreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/wifi/
DAdvancedSettings.java25 import android.preference.CheckBoxPreference;
26 import android.preference.EditTextPreference;
27 import android.preference.ListPreference;
28 import android.preference.Preference;
29 import android.preference.PreferenceActivity;
69 Preference preference = findPreference(mPreferenceKeys[i]); in onCreate() local
70 preference.setOnPreferenceChangeListener(this); in onCreate()
136 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
137 String key = preference.getKey(); in onPreferenceChange()
172 preference.setSummary(value); in onPreferenceChange()
[all …]
DWifiSettings.java28 import android.preference.Preference;
29 import android.preference.PreferenceActivity;
30 import android.preference.PreferenceScreen;
31 import android.preference.CheckBoxPreference;
340 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument
341 super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
343 if (preference == mAddOtherNetwork) { in onPreferenceTreeClick()
345 } else if (preference == mOpenNetworkNotificationsEnabled) { in onPreferenceTreeClick()
349 } else if (preference instanceof AccessPointPreference) { in onPreferenceTreeClick()
350 AccessPointState state = ((AccessPointPreference) preference).getAccessPointState(); in onPreferenceTreeClick()
/packages/apps/GlobalSearch/src/com/android/globalsearch/
DSearchSettings.java31 import android.preference.CheckBoxPreference;
32 import android.preference.ListPreference;
33 import android.preference.Preference;
34 import android.preference.PreferenceActivity;
35 import android.preference.PreferenceGroup;
36 import android.preference.PreferenceScreen;
37 import android.preference.Preference.OnPreferenceChangeListener;
38 import android.preference.Preference.OnPreferenceClickListener;
232 public synchronized boolean onPreferenceClick(Preference preference) { in onPreferenceClick() argument
233 if (preference == mClearShortcutsPreference) { in onPreferenceClick()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettings.java31 import android.preference.CheckBoxPreference;
32 import android.preference.EditTextPreference;
33 import android.preference.ListPreference;
34 import android.preference.Preference;
35 import android.preference.PreferenceActivity;
36 import android.preference.PreferenceCategory;
37 import android.preference.RingtonePreference;
89 public boolean onPreferenceChange(Preference preference, Object newValue) { in onCreate()
101 public boolean onPreferenceChange(Preference preference, Object newValue) { in onCreate()
121 public boolean onPreferenceChange(Preference preference, Object newValue) { in onCreate()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarPreferenceActivity.java22 import android.preference.ListPreference;
23 import android.preference.PreferenceActivity;
24 import android.preference.PreferenceScreen;
25 import android.preference.CheckBoxPreference;
26 import android.preference.RingtonePreference;

12345