Home
last modified time | relevance | path

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

12345678910>>...23

/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DReviewPermissionsActivity.java30 import android.preference.Preference;
31 import android.preference.PreferenceCategory;
32 import android.preference.PreferenceFragment;
33 import android.preference.PreferenceGroup;
34 import android.preference.PreferenceScreen;
35 import android.preference.SwitchPreference;
36 import android.preference.TwoStatePreference;
189 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
193 if (preference instanceof SwitchPreference) { in onPreferenceChange()
194 SwitchPreference switchPreference = (SwitchPreference) preference; in onPreferenceChange()
[all …]
/packages/services/Telephony/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;
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 …]
DTimeConsumingPreferenceActivity.java9 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
150 public void onStarted(Preference preference, boolean reading) { in onStarted() argument
152 if (DBG) Log.d(LOG_TAG, "onStarted, preference=" + preference.getKey() in onStarted()
154 mBusyList.add(preference.getKey()); in onStarted()
167 public void onFinished(Preference preference, boolean reading) { in onFinished() argument
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragment.java22 import android.support.v7.preference.Preference;
23 import android.support.v7.preference.PreferenceCategory;
24 import android.support.v7.preference.PreferenceGroup;
138 public boolean onPreferenceTreeClick(Preference preference) { in onPreferenceTreeClick() argument
139 if (KEY_BT_SCAN.equals(preference.getKey())) { in onPreferenceTreeClick()
144 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick()
145 BluetoothDevicePreference btPreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick()
152 return super.onPreferenceTreeClick(preference); in onPreferenceTreeClick()
180 BluetoothDevicePreference preference = (BluetoothDevicePreference) getCachedPreference(key); in createDevicePreference() local
182 if (preference == null) { in createDevicePreference()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java38 import android.support.v17.preference.LeanbackPreferenceFragment;
40 import android.support.v7.preference.Preference;
41 import android.support.v7.preference.PreferenceGroup;
188 private void hideIfIntentUnhandled(Preference preference) { in hideIfIntentUnhandled() argument
189 if (preference == null) { in hideIfIntentUnhandled()
192 preference.setVisible(systemIntentIsHandled(preference.getIntent()) != null); in hideIfIntentUnhandled()
257 Preference preference = findPreference(key); in updateAccounts() local
258 if (preference == null) { in updateAccounts()
259 preference = new Preference(themedContext); in updateAccounts()
261 preference.setTitle(authTitle != null ? authTitle : account.name); in updateAccounts()
[all …]
/packages/apps/Settings/src/com/android/settings/
DTrustAgentSettings.java29 import android.support.v14.preference.SwitchPreference;
30 import android.support.v7.preference.Preference;
31 import android.support.v7.preference.PreferenceGroup;
56 SwitchPreference preference; field in TrustAgentSettings.AgentInfo
109 final RestrictedSwitchPreference preference = in updateAgents() local
111 preference.useAdminDisabledSummary(true); in updateAgents()
112 agent.preference = preference; in updateAgents()
113 preference.setPersistent(false); in updateAgents()
114 preference.setTitle(agent.label); in updateAgents()
115 preference.setIcon(agent.icon); in updateAgents()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DCameraSettingsActivity.java26 import android.preference.ListPreference;
27 import android.preference.Preference;
28 import android.preference.Preference.OnPreferenceClickListener;
29 import android.preference.PreferenceFragment;
30 import android.preference.PreferenceGroup;
31 import android.preference.PreferenceScreen;
197 public void fill(List<Size> sizes, ListPreference preference) { in onResume()
198 setEntriesForSelection(sizes, preference); in onResume()
223 public boolean onPreferenceClick(Preference preference) { in onResume()
322 private boolean recursiveDelete(PreferenceGroup group, Preference preference) { in recursiveDelete() argument
[all …]
/packages/apps/Settings/src/com/android/settings/print/
DPrintSettingsFragment.java40 import android.support.v7.preference.Preference;
41 import android.support.v7.preference.PreferenceCategory;
42 import android.support.v7.preference.PreferenceScreen;
195 PreferenceScreen preference = getPreferenceManager().createPreferenceScreen( in onLoadFinished() local
199 preference.setTitle(title); in onLoadFinished()
202 preference.setKey(componentName.flattenToString()); in onLoadFinished()
204 preference.setFragment(PrintServiceSettingsFragment.class.getName()); in onLoadFinished()
205 preference.setPersistent(false); in onLoadFinished()
208 preference.setSummary(getString(R.string.print_feature_state_on)); in onLoadFinished()
210 preference.setSummary(getString(R.string.print_feature_state_off)); in onLoadFinished()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java39 import android.support.v14.preference.MultiSelectListPreference;
40 import android.support.v14.preference.SwitchPreference;
41 import android.support.v7.preference.ListPreference;
42 import android.support.v7.preference.Preference;
43 import android.support.v7.preference.Preference.OnPreferenceChangeListener;
44 import android.support.v7.preference.Preference.OnPreferenceClickListener;
45 import android.support.v7.preference.PreferenceGroup;
46 import android.support.v7.preference.PreferenceViewHolder;
523 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
524 String key = preference.getKey(); in onPreferenceChange()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DManagePermissionsFragment.java25 import android.support.v7.preference.Preference;
26 import android.support.v7.preference.Preference.OnPreferenceClickListener;
27 import android.support.v7.preference.PreferenceScreen;
90 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() argument
91 String key = preference.getKey(); in onPreferenceClick()
143 Preference preference = findPreference(group.getName()); in updatePermissionsUi() local
144 if (preference == null && mExtraScreen != null) { in updatePermissionsUi()
145 preference = mExtraScreen.findPreference(group.getName()); in updatePermissionsUi()
147 if (preference == null) { in updatePermissionsUi()
148 preference = new Preference(context); in updatePermissionsUi()
[all …]
DAppPermissionsFragment.java35 import android.support.v14.preference.SwitchPreference;
37 import android.support.v7.preference.Preference;
38 import android.support.v7.preference.Preference.OnPreferenceChangeListener;
39 import android.support.v7.preference.Preference.OnPreferenceClickListener;
40 import android.support.v7.preference.PreferenceScreen;
41 import android.support.v7.preference.PreferenceViewHolder;
236 SwitchPreference preference = new SwitchPreference(context); in loadPreferences() local
237 preference.setOnPreferenceChangeListener(this); in loadPreferences()
238 preference.setKey(group.getName()); in loadPreferences()
241 preference.setIcon(Utils.applyTint(getContext(), icon, in loadPreferences()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DManagePermissionsFragment.java25 import android.preference.Preference;
26 import android.preference.Preference.OnPreferenceClickListener;
27 import android.preference.PreferenceScreen;
92 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() argument
93 String key = preference.getKey(); in onPreferenceClick()
147 Preference preference = findPreference(group.getName()); in updatePermissionsUi() local
148 if (preference == null && mExtraScreen != null) { in updatePermissionsUi()
149 preference = mExtraScreen.findPreference(group.getName()); in updatePermissionsUi()
151 if (preference == null) { in updatePermissionsUi()
152 preference = new Preference(context); in updatePermissionsUi()
[all …]
DAppPermissionsFragment.java33 import android.preference.Preference;
34 import android.preference.Preference.OnPreferenceChangeListener;
35 import android.preference.Preference.OnPreferenceClickListener;
36 import android.preference.PreferenceScreen;
37 import android.preference.SwitchPreference;
210 RestrictedSwitchPreference preference = new RestrictedSwitchPreference(context); in loadPreferences() local
211 preference.setOnPreferenceChangeListener(this); in loadPreferences()
212 preference.setKey(group.getName()); in loadPreferences()
215 preference.setIcon(Utils.applyTint(getContext(), icon, in loadPreferences()
217 preference.setTitle(group.getLabel()); in loadPreferences()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryPreferenceFragment.java27 import android.support.v17.preference.BaseLeanbackPreferenceFragment;
28 import android.support.v7.preference.Preference;
29 import android.support.v7.preference.PreferenceScreen;
65 final Preference preference = new Preference(themedContext); in updateList() local
68 preference.setSummary(currentTargetStatus); in updateList()
70 preference.setSummary(R.string.accessory_state_canceled); in updateList()
72 preference.setSummary(bt.getAddress()); in updateList()
74 preference.setKey(bt.getAddress()); in updateList()
75 preference.setTitle(bt.getName()); in updateList()
76 preference.setIcon(getDeviceDrawable(bt)); in updateList()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipEditor.java24 import android.preference.CheckBoxPreference;
25 import android.preference.EditTextPreference;
26 import android.preference.ListPreference;
27 import android.preference.Preference;
28 import android.preference.PreferenceActivity;
29 import android.preference.PreferenceGroup;
84 Preference preference; field in SipEditor.PreferenceKey
99 if (preference instanceof EditTextPreference) { in getValue()
100 return ((EditTextPreference) preference).getText(); in getValue()
101 } else if (preference instanceof ListPreference) { in getValue()
[all …]
/packages/apps/SpareParts/src/com/android/spare_parts/
DSpareParts.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;
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/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java51 import android.support.v14.preference.SwitchPreference;
52 import android.support.v17.preference.LeanbackPreferenceFragment;
53 import android.support.v7.preference.ListPreference;
54 import android.support.v7.preference.Preference;
55 import android.support.v7.preference.PreferenceGroup;
56 import android.support.v7.preference.PreferenceScreen;
432 final Preference preference = findPreference(key); in removePreference() local
433 if (preference != null) { in removePreference()
434 getPreferenceScreen().removePreference(preference); in removePreference()
473 private boolean removePreferenceForProduction(Preference preference) { in removePreferenceForProduction() argument
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/
DSoundFragment.java24 import android.support.v14.preference.SwitchPreference;
25 import android.support.v17.preference.LeanbackPreferenceFragment;
26 import android.support.v7.preference.ListPreference;
27 import android.support.v7.preference.Preference;
28 import android.support.v7.preference.PreferenceScreen;
29 import android.support.v7.preference.TwoStatePreference;
70 public boolean onPreferenceTreeClick(Preference preference) { in onPreferenceTreeClick() argument
71 if (TextUtils.equals(preference.getKey(), KEY_SOUND_EFFECTS)) { in onPreferenceTreeClick()
72 final TwoStatePreference soundPref = (TwoStatePreference) preference; in onPreferenceTreeClick()
75 return super.onPreferenceTreeClick(preference); in onPreferenceTreeClick()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java20 import android.preference.CheckBoxPreference;
21 import android.preference.Preference;
22 import android.preference.PreferenceGroup;
23 import android.preference.SwitchPreference;
53 final Preference preference = preferences.get(index); in replaceAllCheckBoxPreferencesBySwitchPreferences() local
54 if (preference instanceof CheckBoxPreference) { in replaceAllCheckBoxPreferencesBySwitchPreferences()
55 addSwitchPreferenceBasedOnCheckBoxPreference((CheckBoxPreference)preference, group); in replaceAllCheckBoxPreferencesBySwitchPreferences()
57 group.addPreference(preference); in replaceAllCheckBoxPreferencesBySwitchPreferences()
58 if (preference instanceof PreferenceGroup) { in replaceAllCheckBoxPreferencesBySwitchPreferences()
59 replaceAllCheckBoxPreferencesBySwitchPreferences((PreferenceGroup)preference); in replaceAllCheckBoxPreferencesBySwitchPreferences()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettings.java33 import android.support.v14.preference.SwitchPreference;
34 import android.support.v7.preference.ListPreference;
35 import android.support.v7.preference.Preference;
36 import android.support.v7.preference.PreferenceCategory;
37 import android.support.v7.preference.PreferenceScreen;
246 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
247 if (mSelectLongPressTimeoutPreference == preference) { in onPreferenceChange()
250 } else if (mToggleInversionPreference == preference) { in onPreferenceChange()
270 public boolean onPreferenceTreeClick(Preference preference) { in onPreferenceTreeClick() argument
271 if (mToggleHighTextContrastPreference == preference) { in onPreferenceTreeClick()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java43 import android.support.v14.preference.MultiSelectListPreference;
44 import android.support.v14.preference.SwitchPreference;
45 import android.support.v17.preference.LeanbackPreferenceFragment;
47 import android.support.v7.preference.ListPreference;
48 import android.support.v7.preference.Preference;
49 import android.support.v7.preference.PreferenceGroup;
50 import android.support.v7.preference.PreferenceScreen;
51 import android.support.v7.preference.PreferenceViewHolder;
552 public boolean onPreferenceTreeClick(Preference preference) { in onPreferenceTreeClick() argument
553 if (preference instanceof AppRestrictionsPreference) { in onPreferenceTreeClick()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java32 import android.preference.CheckBoxPreference;
33 import android.preference.ListPreference;
34 import android.preference.Preference;
35 import android.preference.Preference.OnPreferenceChangeListener;
36 import android.preference.Preference.OnPreferenceClickListener;
37 import android.preference.PreferenceCategory;
38 import android.preference.PreferenceFragment;
39 import android.preference.PreferenceManager;
40 import android.preference.PreferenceScreen;
41 import android.preference.RingtonePreference;
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DRespondViaSmsSettings.java24 import android.preference.EditTextPreference;
25 import android.preference.Preference;
26 import android.preference.PreferenceActivity;
27 import android.preference.PreferenceScreen;
93 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
94 Log.d(this, "onPreferenceChange: key = %s", preference.getKey()); in onPreferenceChange()
95 Log.d(this, " preference = '%s'", preference); in onPreferenceChange()
98 EditTextPreference pref = (EditTextPreference) preference; in onPreferenceChange()
135 private void initPref(Preference preference) { in initPref() argument
136 EditTextPreference pref = (EditTextPreference) preference; in initPref()
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
DEditEmergencyInfoFragment.java20 import android.preference.Preference;
21 import android.preference.PreferenceFragment;
43 Preference preference = findPreference(preferenceKey); in onCreate() local
44 preference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { in onCreate()
46 public boolean onPreferenceChange(Preference preference, Object value) { in onCreate()
51 preference.getContext(), in onCreate()
69 ReloadablePreferenceInterface preference = (ReloadablePreferenceInterface) in reloadFromPreference() local
71 if (preference != null) { in reloadFromPreference()
72 preference.reloadFromPreference(); in reloadFromPreference()
/packages/apps/TvSettings/QuickSettings/
DAndroid.mk15 frameworks/support/v7/preference/res \
16 frameworks/support/v14/preference/res \
17 frameworks/support/v17/preference-leanback/res \
25 android-support-v7-preference \
27 android-support-v14-preference \
28 android-support-v17-preference-leanback \
32 …support.v17.leanback:android.support.v7.preference:android.support.v14.preference:android.support.…

12345678910>>...23