Home
last modified time | relevance | path

Searched refs:PreferenceKeys (Results 1 – 16 of 16) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java49 public static final class PreferenceKeys { class in MailPrefs
145 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
150 return getSharedPreferences().getInt(PreferenceKeys.MIGRATED_VERSION, 0) in hasMigrationCompleted()
156 getEditor().putInt(PreferenceKeys.MIGRATED_VERSION, CURRENT_VERSION_NUMBER).commit(); in setMigrationComplete()
160 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured()
168 getEditor().putString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in configureWidget()
173 return getSharedPreferences().getString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in getWidgetConfiguration()
185 getEditor().remove(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + id); in clearWidgets()
192 return getSharedPreferences().getBoolean(PreferenceKeys.DEFAULT_REPLY_ALL, false); in getDefaultReplyAll()
196 getEditor().putBoolean(PreferenceKeys.DEFAULT_REPLY_ALL, replyAll).apply(); in setDefaultReplyAll()
[all …]
DAccountPreferences.java34 public static final class PreferenceKeys { class in AccountPreferences
90 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
94 return getSharedPreferences().contains(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED); in isDefaultInboxNotificationsEnabledSet()
99 .getBoolean(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED, true); in getDefaultInboxNotificationsEnabled()
103 getEditor().putBoolean(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED, enabled).apply(); in setDefaultInboxNotificationsEnabled()
107 getEditor().remove(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED).apply(); in clearDefaultInboxNotificationsEnabled()
111 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, true); in areNotificationsEnabled()
115 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
120 return getSharedPreferences().getInt(PreferenceKeys.ACCOUNT_SYNC_OFF_DISMISSES, 0); in getNumOfDismissesForAccountSyncOff()
125 PreferenceKeys.ACCOUNT_SYNC_OFF_DISMISSES, 0); in resetNumOfDismissesForAccountSyncOff()
[all …]
DFolderPreferences.java45 public static final class PreferenceKeys { class in FolderPreferences
125 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
130 if (PreferenceKeys.NOTIFICATION_RINGTONE.equals(key)) { in getBackupValue()
139 if (PreferenceKeys.NOTIFICATION_RINGTONE.equals(key)) { in getRestoreValue()
208 return getSharedPreferences().contains(PreferenceKeys.NOTIFICATIONS_ENABLED); in isNotificationsEnabledSet()
213 PreferenceKeys.NOTIFICATIONS_ENABLED, getUseInboxDefaultNotificationSettings()); in areNotificationsEnabled()
217 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
222 return getSharedPreferences().getString(PreferenceKeys.NOTIFICATION_RINGTONE, in getNotificationRingtoneUri()
227 getEditor().putString(PreferenceKeys.NOTIFICATION_RINGTONE, uri).apply(); in setNotificationRingtoneUri()
232 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATION_VIBRATE, false); in isNotificationVibrateEnabled()
[all …]
/packages/apps/Browser/src/com/android/browser/preferences/
DAdvancedPreferencesFragment.java20 import com.android.browser.PreferenceKeys;
49 PreferenceKeys.PREF_WEBSITE_SETTINGS); in onCreate()
52 Preference e = findPreference(PreferenceKeys.PREF_DEFAULT_ZOOM); in onCreate()
56 .getString(PreferenceKeys.PREF_DEFAULT_ZOOM, null)) ); in onCreate()
58 e = findPreference(PreferenceKeys.PREF_DEFAULT_TEXT_ENCODING); in onCreate()
61 e = findPreference(PreferenceKeys.PREF_RESET_DEFAULT_PREFERENCES); in onCreate()
64 e = findPreference(PreferenceKeys.PREF_SEARCH_ENGINE); in onCreate()
68 e = findPreference(PreferenceKeys.PREF_PLUGIN_STATE); in onCreate()
86 PreferenceKeys.PREF_WEBSITE_SETTINGS); in onResume()
115 if (pref.getKey().equals(PreferenceKeys.PREF_DEFAULT_ZOOM)) { in onPreferenceChange()
[all …]
DAccessibilityPreferencesFragment.java26 import com.android.browser.PreferenceKeys;
46 Preference e = findPreference(PreferenceKeys.PREF_MIN_FONT_SIZE); in onCreate()
49 e = findPreference(PreferenceKeys.PREF_TEXT_ZOOM); in onCreate()
52 e = findPreference(PreferenceKeys.PREF_DOUBLE_TAP_ZOOM); in onCreate()
55 e = findPreference(PreferenceKeys.PREF_INVERTED_CONTRAST); in onCreate()
104 if (PreferenceKeys.PREF_MIN_FONT_SIZE.equals(pref.getKey())) { in onPreferenceChange()
108 if (PreferenceKeys.PREF_TEXT_ZOOM.equals(pref.getKey())) { in onPreferenceChange()
113 if (PreferenceKeys.PREF_DOUBLE_TAP_ZOOM.equals(pref.getKey())) { in onPreferenceChange()
118 if (PreferenceKeys.PREF_INVERTED_CONTRAST.equals(pref.getKey())) { in onPreferenceChange()
DBandwidthPreferencesFragment.java26 import com.android.browser.PreferenceKeys;
45 if (!sharedPrefs.contains(PreferenceKeys.PREF_DATA_PRELOAD)) { in onResume()
48 PreferenceKeys.PREF_DATA_PRELOAD); in onResume()
53 if (!sharedPrefs.contains(PreferenceKeys.PREF_LINK_PREFETCH)) { in onResume()
56 PreferenceKeys.PREF_LINK_PREFETCH); in onResume()
DDebugPreferencesFragment.java26 import com.android.browser.PreferenceKeys;
38 Preference e = findPreference(PreferenceKeys.PREF_RESET_PRELOGIN); in onCreate()
44 if (PreferenceKeys.PREF_RESET_PRELOGIN.equals(preference.getKey())) { in onPreferenceClick()
DPrivacySecurityPreferencesFragment.java19 import com.android.browser.PreferenceKeys;
38 Preference e = findPreference(PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY); in onCreate()
49 if (pref.getKey().equals(PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY) in onPreferenceChange()
DLabPreferencesFragment.java24 import com.android.browser.PreferenceKeys;
DGeneralPreferencesFragment.java40 import com.android.browser.PreferenceKeys;
/packages/apps/Browser/src/com/android/browser/
DBrowserYesNoPreference.java39 if (PreferenceKeys.PREF_PRIVACY_CLEAR_CACHE.equals(getKey())) { in onDialogClosed()
42 } else if (PreferenceKeys.PREF_PRIVACY_CLEAR_COOKIES.equals(getKey())) { in onDialogClosed()
44 } else if (PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY.equals(getKey())) { in onDialogClosed()
46 } else if (PreferenceKeys.PREF_PRIVACY_CLEAR_FORM_DATA.equals(getKey())) { in onDialogClosed()
48 } else if (PreferenceKeys.PREF_PRIVACY_CLEAR_PASSWORDS.equals(getKey())) { in onDialogClosed()
50 } else if (PreferenceKeys.PREF_RESET_DEFAULT_PREFERENCES.equals( in onDialogClosed()
54 } else if (PreferenceKeys.PREF_PRIVACY_CLEAR_GEOLOCATION_ACCESS.equals( in onDialogClosed()
DPreferenceKeys.java19 public interface PreferenceKeys { interface
DBrowserSettings.java59 PreferenceKeys {
DController.java1153 if (PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY.equals(action)) { in onActivityResult()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java385 } else if (FolderPreferences.PreferenceKeys.NOTIFICATION_VIBRATE.equals(key)) { in onPreferenceChange()
389 preferenceChanged(FolderPreferences.PreferenceKeys.NOTIFICATION_VIBRATE, newValue); in onPreferenceChange()
391 } else if (FolderPreferences.PreferenceKeys.NOTIFICATIONS_ENABLED.equals(key)) { in onPreferenceChange()
393 preferenceChanged(FolderPreferences.PreferenceKeys.NOTIFICATIONS_ENABLED, newValue); in onPreferenceChange()
778 FolderPreferences.PreferenceKeys.NOTIFICATIONS_ENABLED); in loadSettings()
781 mInboxRingtone = findPreference(FolderPreferences.PreferenceKeys.NOTIFICATION_RINGTONE); in loadSettings()
797 FolderPreferences.PreferenceKeys.NOTIFICATION_VIBRATE); in loadSettings()
DGeneralPreferences.java110 } else if (MailPrefs.PreferenceKeys.DEFAULT_REPLY_ALL.equals(key)) { in onPreferenceChange()
134 } else if (MailPrefs.PreferenceKeys.CONVERSATION_LIST_SWIPE.equals(key)) { in onPreferenceTreeClick()
164 findPreference(MailPrefs.PreferenceKeys.CONVERSATION_LIST_SWIPE); in loadSettings()
168 (CheckBoxPreference) findPreference(MailPrefs.PreferenceKeys.DEFAULT_REPLY_ALL); in loadSettings()