/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DeviceListPreferenceFragment.java | 22 import android.preference.Preference; 23 import android.preference.PreferenceCategory; 24 import android.preference.PreferenceGroup; 25 import android.preference.PreferenceScreen; 133 Preference preference) { in onPreferenceTreeClick() argument 134 if (KEY_BT_SCAN.equals(preference.getKey())) { in onPreferenceTreeClick() 139 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick() 140 BluetoothDevicePreference btPreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick() 147 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick() 168 BluetoothDevicePreference preference = new BluetoothDevicePreference( in createDevicePreference() local [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | TimeConsumingPreferenceActivity.java | 9 import android.preference.Preference; 10 import android.preference.PreferenceActivity; 17 public void onStarted(Preference preference, boolean reading); in onStarted() argument 18 public void onFinished(Preference preference, boolean reading); in onFinished() argument 19 public void onError(Preference preference, int error); in onError() argument 20 public void onException(Preference preference, CommandException exception); in onException() argument 134 public void onStarted(Preference preference, boolean reading) { in onStarted() argument 136 if (DBG) Log.d(LOG_TAG, "onStarted, preference=" + preference.getKey() in onStarted() 138 mBusyList.add(preference.getKey()); in onStarted() 151 public void onFinished(Preference preference, boolean reading) { in onFinished() argument [all …]
|
D | CellBroadcastSms.java | 21 import android.preference.CheckBoxPreference; 22 import android.preference.ListPreference; 23 import android.preference.Preference; 24 import android.preference.PreferenceScreen; 25 import android.preference.PreferenceActivity; 180 Preference preference) { in onPreferenceTreeClick() argument 181 if (preference == mButtonBcSms) { in onPreferenceTreeClick() 198 } else if (preference == mListLanguage) { in onPreferenceTreeClick() 200 } else if (preference == mButtonEmergencyBroadcast) { in onPreferenceTreeClick() 205 } else if (preference == mButtonAdministrative) { in onPreferenceTreeClick() [all …]
|
D | CdmaOptions.java | 23 import android.preference.Preference; 24 import android.preference.PreferenceActivity; 25 import android.preference.PreferenceScreen; 113 public boolean preferenceTreeClick(Preference preference) { in preferenceTreeClick() argument 114 if (preference.getKey().equals(BUTTON_CDMA_SYSTEM_SELECT_KEY)) { in preferenceTreeClick() 118 if (preference.getKey().equals(BUTTON_CDMA_SUBSCRIPTION_KEY)) { in preferenceTreeClick() 125 public void showDialog(Preference preference) { in showDialog() argument 126 if (preference.getKey().equals(BUTTON_CDMA_SYSTEM_SELECT_KEY)) { in showDialog() 128 } else if (preference.getKey().equals(BUTTON_CDMA_SUBSCRIPTION_KEY)) { in showDialog()
|
D | CdmaCallOptions.java | 26 import android.preference.CheckBoxPreference; 27 import android.preference.Preference; 28 import android.preference.PreferenceActivity; 29 import android.preference.PreferenceScreen; 54 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 55 if (preference.getKey().equals(BUTTON_VP_KEY)) { in onPreferenceTreeClick()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SettingsActivity.java | 22 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/SpareParts/src/com/android/spare_parts/ |
D | SpareParts.java | 31 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; 77 Preference preference = parentPreferenceGroup.findPreference(preferenceKey); in updatePreferenceToSpecificActivityOrRemove() local 78 if (preference == null) { in updatePreferenceToSpecificActivityOrRemove() 82 Intent intent = preference.getIntent(); in updatePreferenceToSpecificActivityOrRemove() 94 preference.setIntent(new Intent().setClassName( in updatePreferenceToSpecificActivityOrRemove() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 30 import android.preference.Preference; 31 import android.preference.PreferenceGroup; 138 VpnPreference preference = new VpnPreference(context, profile); in onResume() local 139 mPreferences.put(key, preference); in onResume() 140 group.addPreference(preference); in onResume() 193 VpnPreference preference = mPreferences.get(profile.key); in onClick() local 194 if (preference != null) { in onClick() 196 preference.update(profile); in onClick() 198 preference = new VpnPreference(getActivity(), profile); in onClick() 199 mPreferences.put(profile.key, preference); in onClick() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | GeneralPreferences.java | 20 import android.preference.ListPreference; 21 import android.preference.Preference; 22 import android.preference.PreferenceCategory; 23 import android.preference.Preference.OnPreferenceChangeListener; 24 import android.preference.PreferenceFragment; 25 import android.preference.PreferenceScreen; 70 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 71 String key = preference.getKey(); in onPreferenceChange() 85 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 91 String key = preference.getKey(); in onPreferenceTreeClick()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.java | 27 import android.preference.CheckBoxPreference; 28 import android.preference.ListPreference; 29 import android.preference.Preference; 30 import android.preference.Preference.OnPreferenceChangeListener; 31 import android.preference.PreferenceCategory; 32 import android.preference.PreferenceFragment; 33 import android.preference.PreferenceManager; 34 import android.preference.PreferenceScreen; 35 import android.preference.RingtonePreference; 238 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument [all …]
|
D | OtherPreferences.java | 22 import android.preference.Preference; 23 import android.preference.PreferenceFragment; 24 import android.preference.PreferenceScreen; 48 public boolean onPreferenceTreeClick(PreferenceScreen screen, Preference preference) { in onPreferenceTreeClick() argument 49 if (preference == mCopyDb) { in onPreferenceTreeClick() 55 return super.onPreferenceTreeClick(screen, preference); in onPreferenceTreeClick()
|
D | QuickResponseSettings.java | 21 import android.preference.EditTextPreference; 22 import android.preference.Preference; 23 import android.preference.Preference.OnPreferenceChangeListener; 24 import android.preference.PreferenceFragment; 25 import android.preference.PreferenceScreen; 86 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 88 if (mEditTextPrefs[i].compareTo(preference) == 0) { in onPreferenceChange()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DeviceInfoSettings.java | 28 import android.preference.Preference; 29 import android.preference.PreferenceGroup; 30 import android.preference.PreferenceScreen; 120 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 121 if (preference.getKey().equals(KEY_FIRMWARE_VERSION)) { in onPreferenceTreeClick() 135 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick() 139 String preference, String property ) { in removePreferenceIfPropertyMissing() argument 144 preferenceGroup.removePreference(findPreference(preference)); in removePreferenceIfPropertyMissing() 147 + preference + "' preference"); in removePreferenceIfPropertyMissing() 152 private void setStringSummary(String preference, String value) { in setStringSummary() argument [all …]
|
D | LocationSettings.java | 25 import android.preference.CheckBoxPreference; 26 import android.preference.Preference; 27 import android.preference.Preference.OnPreferenceChangeListener; 28 import android.preference.PreferenceScreen; 127 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 129 if (preference == mNetwork) { in onPreferenceTreeClick() 132 } else if (preference == mGps) { in onPreferenceTreeClick() 139 } else if (preference == mAssistedGps) { in onPreferenceTreeClick() 144 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick() 176 public boolean onPreferenceChange(Preference preference, Object value) { in onPreferenceChange() argument [all …]
|
D | SoundSettings.java | 34 import android.preference.CheckBoxPreference; 35 import android.preference.ListPreference; 36 import android.preference.Preference; 37 import android.preference.PreferenceGroup; 38 import android.preference.PreferenceScreen; 205 private void updateRingtoneName(int type, Preference preference, int msg) { in updateRingtoneName() argument 206 if (preference == null) return; in updateRingtoneName() 237 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 238 if (preference == mVibrateWhenRinging) { in onPreferenceTreeClick() 241 } else if (preference == mDtmfTone) { in onPreferenceTreeClick() [all …]
|
D | ApplicationSettings.java | 21 import android.preference.CheckBoxPreference; 22 import android.preference.ListPreference; 23 import android.preference.Preference; 24 import android.preference.Preference.OnPreferenceChangeListener; 25 import android.preference.PreferenceScreen; 70 public boolean onPreferenceChange(Preference preference, Object newValue) { in onCreate() 98 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 99 if (preference == mToggleAdvancedSettings) { in onPreferenceTreeClick() 104 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
|
D | DisplaySettings.java | 29 import android.preference.CheckBoxPreference; 30 import android.preference.ListPreference; 31 import android.preference.Preference; 32 import android.preference.PreferenceScreen; 122 ListPreference preference = mScreenTimeoutPreference; in updateTimeoutPreferenceDescription() local 128 final CharSequence[] entries = preference.getEntries(); in updateTimeoutPreferenceDescription() 129 final CharSequence[] values = preference.getEntryValues(); in updateTimeoutPreferenceDescription() 137 summary = preference.getContext().getString(R.string.screen_timeout_summary, in updateTimeoutPreferenceDescription() 140 preference.setSummary(summary); in updateTimeoutPreferenceDescription() 257 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | SettingsActivity.java | 24 import android.preference.CheckBoxPreference; 25 import android.preference.ListPreference; 26 import android.preference.Preference; 27 import android.preference.PreferenceActivity; 28 import android.preference.PreferenceScreen; 29 import android.preference.RingtonePreference; 75 Preference preference) { in onPreferenceTreeClick() argument 76 if (KEY_ALARM_IN_SILENT_MODE.equals(preference.getKey())) { in onPreferenceTreeClick() 77 CheckBoxPreference pref = (CheckBoxPreference) preference; in onPreferenceTreeClick() 95 return super.onPreferenceTreeClick(preferenceScreen, preference); in onPreferenceTreeClick()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | MessagingPreferenceActivity.java | 32 import android.preference.CheckBoxPreference; 33 import android.preference.ListPreference; 34 import android.preference.Preference; 35 import android.preference.PreferenceActivity; 36 import android.preference.PreferenceCategory; 37 import android.preference.PreferenceManager; 38 import android.preference.PreferenceScreen; 39 import android.preference.Preference.OnPreferenceChangeListener; 241 Preference preference) { in onPreferenceTreeClick() argument 242 if (preference == mSmsLimitPref) { in onPreferenceTreeClick() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | SyncSettings.java | 27 import android.preference.CheckBoxPreference; 28 import android.preference.Preference; 29 import android.preference.Preference.OnPreferenceChangeListener; 30 import android.preference.PreferenceScreen; 58 public boolean onPreferenceChange(Preference preference, Object newValue) { in onCreate() 93 public boolean onPreferenceTreeClick(PreferenceScreen preferences, Preference preference) { in onPreferenceTreeClick() argument 94 if (preference instanceof AccountPreference) { in onPreferenceTreeClick() 95 startAccountSettings((AccountPreference) preference); in onPreferenceTreeClick() 152 final AccountPreference preference = in onAccountsUpdated() local 154 getPreferenceScreen().addPreference(preference); in onAccountsUpdated() [all …]
|
/packages/apps/Phone/src/com/android/phone/sip/ |
D | SipEditor.java | 31 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.PreferenceGroup; 93 Preference preference; field in SipEditor.PreferenceKey 108 if (preference instanceof EditTextPreference) { in getValue() 109 return ((EditTextPreference) preference).getText(); in getValue() 110 } else if (preference instanceof ListPreference) { in getValue() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | UsbSettings.java | 29 import android.preference.CheckBoxPreference; 30 import android.preference.Preference; 31 import android.preference.PreferenceScreen; 112 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 121 if (preference instanceof CheckBoxPreference) { in onPreferenceTreeClick() 122 CheckBoxPreference checkBox = (CheckBoxPreference)preference; in onPreferenceTreeClick() 128 if (preference == mMtp) { in onPreferenceTreeClick() 131 } else if (preference == mPtp) { in onPreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | AdvancedWifiSettings.java | 23 import android.preference.CheckBoxPreference; 24 import android.preference.ListPreference; 25 import android.preference.Preference; 26 import android.preference.PreferenceScreen; 140 public boolean onPreferenceTreeClick(PreferenceScreen screen, Preference preference) { in onPreferenceTreeClick() argument 141 String key = preference.getKey(); in onPreferenceTreeClick() 146 ((CheckBoxPreference) preference).isChecked() ? 1 : 0); in onPreferenceTreeClick() 150 ((CheckBoxPreference) preference).isChecked() ? 1 : 0); in onPreferenceTreeClick() 152 return super.onPreferenceTreeClick(screen, preference); in onPreferenceTreeClick() 158 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | InLineSettingItem.java | 53 protected void setTitle(ListPreference preference) { in setTitle() argument 54 ((TextView) findViewById(R.id.title)).setText(preference.getTitle()); in setTitle() 57 public void initialize(ListPreference preference) { in initialize() argument 58 setTitle(preference); in initialize() 59 if (preference == null) return; in initialize() 60 mPreference = preference; in initialize()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | InLineSettingItem.java | 53 protected void setTitle(ListPreference preference) { in setTitle() argument 54 ((TextView) findViewById(R.id.title)).setText(preference.getTitle()); in setTitle() 57 public void initialize(ListPreference preference) { in initialize() argument 58 setTitle(preference); in initialize() 59 if (preference == null) return; in initialize() 60 mPreference = preference; in initialize()
|