Searched defs:preference (Results 1 - 25 of 327) sorted by relevance

1234567891011>>

/packages/apps/Camera2/src/com/android/camera/settings/
H A DListPreferenceFiller.java19 import android.preference.ListPreference;
29 public void fill(List<Size> sizes, ListPreference preference); argument
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DInLineSettingRestore.java34 protected void setTitle(ListPreference preference) { argument
H A DInLineSettingSwitch.java53 public void initialize(ListPreference preference) { argument
54 super.initialize(preference);
/packages/apps/Settings/src/com/android/settings/notification/
H A DAdjustVolumeRestrictedPreferenceController.java22 import android.support.v7.preference.Preference;
31 * Base class for preference controller that handles preference that enforce adjust volume
50 public void updateState(Preference preference) { argument
51 if (!(preference instanceof RestrictedPreference)) {
54 mHelper.enforceRestrictionOnPreference((RestrictedPreference) preference,
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/
H A DSettingsUtils.java19 import android.preference.Preference;
23 public static void updatePreferenceSummary(Preference preference, String summary, argument
28 preference.setSummary(summary);
31 preference.setSummary(defaultRes);
/packages/apps/Calendar/src/com/android/calendar/
H A DQuickResponseSettings.java21 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) { argument
88 if (mEditTextPrefs[i].compareTo(preference) == 0) {
/packages/apps/Contacts/src/com/android/contacts/preference/
H A DAboutPreferenceFragment.java17 package com.android.contacts.preference;
26 import android.preference.Preference;
27 import android.preference.PreferenceFragment;
73 public boolean onPreferenceClick(Preference preference) {
75 if (preference == privacyPolicyPreference) {
77 } else if (preference == termsOfServicePreference) {
H A DDisplayOrderPreference.java17 package com.android.contacts.preference;
21 import android.preference.ListPreference;
27 * Custom preference: view-name-as (first name first or last name first).
60 return false; // This preference takes care of its own storage
H A DSortOrderPreference.java17 package com.android.contacts.preference;
21 import android.preference.ListPreference;
27 * Custom preference: sort-by.
60 return false; // This preference takes care of its own storage
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
H A DEditMedicalInfoFragment.java21 import android.support.v14.preference.PreferenceFragment;
22 import android.support.v7.preference.Preference;
45 Preference preference = findPreference(preferenceKey);
46 preference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
48 public boolean onPreferenceChange(Preference preference, Object value) {
54 preference.getContext(),
59 // If the preference implements OnPreferenceChangeListener, notify it of the
61 if (Preference.OnPreferenceChangeListener.class.isInstance(preference)) {
62 return ((Preference.OnPreferenceChangeListener) preference)
63 .onPreferenceChange(preference, valu
78 onDisplayPreferenceDialog(Preference preference) argument
[all...]
/packages/apps/Settings/src/com/android/settings/accounts/
H A DAccountRestrictionHelper.java34 * Configure the UI of the preference by checking user restriction.
35 * @param preference The preference we are configuring.
36 * @param userRestriction The user restriction related to the preference.
39 public void enforceRestrictionOnPreference(RestrictedPreference preference, argument
41 if (preference == null) {
45 preference.setEnabled(false);
47 preference.checkRestrictionAndSetDisabled(userRestriction, userId);
H A DEmergencyInfoPreferenceController.java25 import android.support.v7.preference.Preference;
56 public void updateState(Preference preference) { argument
59 preference.setSummary(mContext.getString(R.string.emergency_info_summary, info.name));
63 public boolean handlePreferenceTreeClick(Preference preference) { argument
64 if (KEY_EMERGENCY_INFO.equals(preference.getKey())) {
/packages/apps/Settings/src/com/android/settings/applications/
H A DResetAppPrefPreferenceController.java21 import android.support.v7.preference.Preference;
45 public boolean handlePreferenceTreeClick(Preference preference) { argument
46 if (!TextUtils.equals(preference.getKey(), getPreferenceKey())) {
H A DSpecialAppAccessPreferenceController.java17 import android.support.v7.preference.Preference;
45 public void updateState(Preference preference) { argument
50 preference.setSummary(mContext.getResources().getQuantityString(
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
H A DDefaultPaymentSettingsPreferenceController.java23 import android.support.v7.preference.Preference;
55 public void updateState(Preference preference) { argument
69 preference.setSummary(app.label);
71 preference.setSummary(R.string.app_list_preference_none);
/packages/apps/Settings/src/com/android/settings/backup/
H A DBackupSettingsActivityPreferenceController.java22 import android.support.v7.preference.Preference;
53 public void updateState(Preference preference) { argument
56 preference.setSummary(backupEnabled
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothFilesPreferenceController.java22 import android.support.v7.preference.Preference;
65 public boolean handlePreferenceTreeClick(Preference preference) { argument
66 if (KEY_RECEIVED_FILES.equals(preference.getKey())) {
/packages/apps/Settings/src/com/android/settings/datausage/
H A DTemplatePreferenceCategory.java19 import android.support.v7.preference.Preference;
20 import android.support.v7.preference.PreferenceCategory;
40 public boolean addPreference(Preference preference) { argument
41 if (!(preference instanceof TemplatePreference)) {
45 return super.addPreference(preference);
/packages/apps/Settings/src/com/android/settings/datetime/
H A DTimeZonePreferenceController.java21 import android.support.v7.preference.Preference;
43 public void updateState(Preference preference) { argument
44 preference.setSummary(getTimeZoneOffsetAndName());
45 preference.setEnabled(!mAutoTimeZonePreferenceController.isEnabled());
/packages/apps/Settings/src/com/android/settings/development/
H A DEnableAdbPreferenceController.java23 import android.support.v14.preference.SwitchPreference;
40 public void showConfirmationDialog(SwitchPreference preference) { argument
51 preference.setChecked(false);
57 preference.setChecked(false);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DBasebandVersionPreferenceController.java20 import android.support.v7.preference.Preference;
48 public void updateState(Preference preference) { argument
49 super.updateState(preference);
50 preference.setSummary(SystemProperties.get(BASEBAND_PROPERTY,
H A DDeviceModelPreferenceController.java21 import android.support.v7.preference.Preference;
22 import android.support.v7.preference.PreferenceScreen;
61 public boolean handlePreferenceTreeClick(Preference preference) { argument
62 if (!TextUtils.equals(preference.getKey(), KEY_DEVICE_MODEL)) {
H A DFeedbackPreferenceController.java21 import android.support.v7.preference.Preference;
46 public void updateState(Preference preference) { argument
47 super.updateState(preference);
49 preference.setIntent(intent);
56 public boolean handlePreferenceTreeClick(Preference preference) { argument
57 if (!TextUtils.equals(preference.getKey(), KEY_DEVICE_FEEDBACK)) {
H A DKernelVersionPreferenceController.java19 import android.support.v7.preference.Preference;
40 public void updateState(Preference preference) { argument
41 super.updateState(preference);
42 preference.setSummary(DeviceInfoUtils.getFormattedKernelVersion());
H A DSecurityPatchPreferenceController.java20 import android.support.v7.preference.Preference;
21 import android.support.v7.preference.PreferenceScreen;
64 public boolean handlePreferenceTreeClick(Preference preference) { argument
65 if (!TextUtils.equals(preference.getKey(), KEY_SECURITY_PATCH)) {
68 if (mPackageManager.queryIntentActivities(preference.getIntent(), 0).isEmpty()) {

Completed in 770 milliseconds

1234567891011>>