Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java56 public static final class PreferenceKeys { class in MailPrefs
204 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
209 return getSharedPreferences().getInt(PreferenceKeys.MIGRATED_VERSION, 0) in hasMigrationCompleted()
215 getEditor().putInt(PreferenceKeys.MIGRATED_VERSION, CURRENT_VERSION_NUMBER).commit(); in setMigrationComplete()
219 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured()
227 getEditor().putString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in configureWidget()
232 return getSharedPreferences().getString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in getWidgetConfiguration()
244 getEditor().remove(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + id); in clearWidgets()
251 return getSharedPreferences().getBoolean(PreferenceKeys.DEFAULT_REPLY_ALL, false); in getDefaultReplyAll()
255 getEditor().putBoolean(PreferenceKeys.DEFAULT_REPLY_ALL, replyAll).apply(); in setDefaultReplyAll()
[all …]
DAccountPreferences.java35 public static final class PreferenceKeys { class in AccountPreferences
93 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
97 return getSharedPreferences().contains(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED); in isDefaultInboxNotificationsEnabledSet()
102 .getBoolean(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED, true); in getDefaultInboxNotificationsEnabled()
106 getEditor().putBoolean(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED, enabled).apply(); in setDefaultInboxNotificationsEnabled()
110 getEditor().remove(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED).apply(); in clearDefaultInboxNotificationsEnabled()
114 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, true); in areNotificationsEnabled()
118 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
123 return getSharedPreferences().getInt(PreferenceKeys.ACCOUNT_SYNC_OFF_DISMISSES, 0); in getNumOfDismissesForAccountSyncOff()
128 PreferenceKeys.ACCOUNT_SYNC_OFF_DISMISSES, 0); in resetNumOfDismissesForAccountSyncOff()
[all …]
DFolderPreferences.java44 public static final class PreferenceKeys { class in FolderPreferences
124 return PreferenceKeys.BACKUP_KEYS.contains(key); in canBackup()
129 if (PreferenceKeys.NOTIFICATION_RINGTONE.equals(key)) { in getBackupValue()
138 if (PreferenceKeys.NOTIFICATION_RINGTONE.equals(key)) { in getRestoreValue()
207 return getSharedPreferences().contains(PreferenceKeys.NOTIFICATIONS_ENABLED); in isNotificationsEnabledSet()
212 PreferenceKeys.NOTIFICATIONS_ENABLED, getUseInboxDefaultNotificationSettings()); in areNotificationsEnabled()
216 getEditor().putBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, enabled).apply(); in setNotificationsEnabled()
221 return getSharedPreferences().getString(PreferenceKeys.NOTIFICATION_RINGTONE, in getNotificationRingtoneUri()
226 getEditor().putString(PreferenceKeys.NOTIFICATION_RINGTONE, uri).apply(); in setNotificationRingtoneUri()
231 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATION_VIBRATE, false); in isNotificationVibrateEnabled()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/
DGeneralPrefsFragment.java36 import com.android.mail.preferences.MailPrefs.PreferenceKeys;
121 if (PreferenceKeys.REMOVAL_ACTION.equals(key)) { in onPreferenceChange()
128 } else if (!PreferenceKeys.CONVERSATION_LIST_SWIPE.equals(key) && in onPreferenceChange()
129 !PreferenceKeys.SHOW_SENDER_IMAGES.equals(key) && in onPreferenceChange()
130 !PreferenceKeys.DEFAULT_REPLY_ALL.equals(key) && in onPreferenceChange()
131 !PreferenceKeys.CONVERSATION_OVERVIEW_MODE.equals(key) && in onPreferenceChange()
132 !PreferenceKeys.CONFIRM_DELETE.equals(key) && in onPreferenceChange()
133 !PreferenceKeys.CONFIRM_ARCHIVE.equals(key) && in onPreferenceChange()
134 !PreferenceKeys.CONFIRM_SEND.equals(key)) { in onPreferenceChange()
204 PreferenceKeys.REMOVAL_ACTION, in onResume()
[all …]
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/
DEditInfoActivityTest.java43 import com.android.emergency.PreferenceKeys;
82 for (String key : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in testInitialState()
88 PreferenceKeys.KEY_EMERGENCY_CONTACTS); in testInitialState()
104 PreferenceKeys.KEY_ADDRESS, "Home").commit(); in testClearAllPreferences()
106 PreferenceKeys.KEY_BLOOD_TYPE, "A+").commit(); in testClearAllPreferences()
108 PreferenceKeys.KEY_ALLERGIES, "Peanuts").commit(); in testClearAllPreferences()
110 PreferenceKeys.KEY_MEDICATIONS, "Aspirin").commit(); in testClearAllPreferences()
112 PreferenceKeys.KEY_MEDICAL_CONDITIONS, "Asthma").commit(); in testClearAllPreferences()
114 PreferenceKeys.KEY_ORGAN_DONOR, "Yes").commit(); in testClearAllPreferences()
119 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in testClearAllPreferences()
[all …]
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/
DEmergencyListPreferenceTest.java30 import com.android.emergency.PreferenceKeys;
63 getEmergencyListPreference(fragment, PreferenceKeys.KEY_ORGAN_DONOR); in testSummary_organDonor()
75 getEmergencyListPreference(fragment, PreferenceKeys.KEY_BLOOD_TYPE); in testSummary_bloodType()
87 getEmergencyListPreference(fragment, PreferenceKeys.KEY_ORGAN_DONOR); in testTitle_organDonor()
98 getEmergencyListPreference(fragment, PreferenceKeys.KEY_BLOOD_TYPE); in testTitle_bloodType()
109 getEmergencyListPreference(fragment, PreferenceKeys.KEY_ORGAN_DONOR); in testProperties_organDonor()
111 assertThat(preference.getKey()).isEqualTo(PreferenceKeys.KEY_ORGAN_DONOR); in testProperties_organDonor()
124 getEmergencyListPreference(fragment, PreferenceKeys.KEY_BLOOD_TYPE); in testProperties_bloodType()
126 assertThat(preference.getKey()).isEqualTo(PreferenceKeys.KEY_BLOOD_TYPE); in testProperties_bloodType()
140 getEmergencyListPreference(fragment, PreferenceKeys.KEY_BLOOD_TYPE); in testContentDescriptions()
DEmergencyContactsPreferenceTest.java40 import com.android.emergency.PreferenceKeys;
81 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in setUp()
127 PreferenceKeys.KEY_EMERGENCY_CONTACTS); in startActivityAndGetEmergencyContactsPreference()
/packages/apps/EmergencyInfo/src/com/android/emergency/util/
DPreferenceUtils.java25 import com.android.emergency.PreferenceKeys;
40 for (String key : PreferenceKeys.KEYS_VIEW_EMERGENCY_INFO) { in hasAtLeastOnePreferenceSet()
53 emergencyContactsString = prefs.getString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, ""); in hasAtLeastOneEmergencyContact()
59 PreferenceKeys.KEY_EMERGENCY_CONTACTS, in hasAtLeastOneEmergencyContact()
64 PreferenceKeys.KEY_EMERGENCY_CONTACTS, in hasAtLeastOneEmergencyContact()
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
DEditInfoFragment.java33 import com.android.emergency.PreferenceKeys;
67 for (String preferenceKey : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in onCreatePreferences()
79 PreferenceKeys.KEY_NAME); in onCreatePreferences()
83 findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in onCreatePreferences()
85 Preference addEmergencyContact = findPreference(PreferenceKeys.KEY_ADD_EMERGENCY_CONTACT); in onCreatePreferences()
160 return (PreferenceGroup) findPreference(PreferenceKeys.KEY_MEDICAL_INFO); in getMedicalInfoParent()
DEditMedicalInfoFragment.java25 import com.android.emergency.PreferenceKeys;
50 for (int i = 0; i < PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO.length; i++) { in onCreatePreferences()
52 String preferenceKey = PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO[i]; in onCreatePreferences()
80 PreferenceKeys.KEY_NAME); in onCreatePreferences()
110 for (String preferenceKey : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in reloadFromPreference()
DEditInfoActivity.java37 import com.android.emergency.PreferenceKeys;
126 for (String key : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in onClearAllPreferences()
129 sharedPreferences.edit().remove(PreferenceKeys.KEY_EMERGENCY_CONTACTS).commit(); in onClearAllPreferences()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyListPreferenceTest.java31 import com.android.emergency.PreferenceKeys;
73 eq(PreferenceKeys.KEY_ORGAN_DONOR), nullable(String.class))) in testReloadFromPreference()
76 mPreference.setKey(PreferenceKeys.KEY_ORGAN_DONOR); in testReloadFromPreference()
92 mPreference.setKey(PreferenceKeys.KEY_ORGAN_DONOR); in testSetValue()
96 eq(PreferenceKeys.KEY_ORGAN_DONOR), nullable(String.class))) in testSetValue()
DEmergencyEditTextPreferenceTest.java30 import com.android.emergency.PreferenceKeys;
72 mPreference.setKey(PreferenceKeys.KEY_MEDICAL_CONDITIONS); in testReloadFromPreference()
DEmergencyContactsPreferenceTest.java38 import com.android.emergency.PreferenceKeys;
148 mPreference.setKey(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in testReloadFromPreference()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/
DViewInfoActivityTest.java36 import com.android.emergency.PreferenceKeys;
103 .edit().putString(PreferenceKeys.KEY_NAME, name).commit(); in testNameSet()
125 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testMedicalInfoSet()
147 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testEmergencyContactsSet()
172 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testMedicalInfoAndEmergencyContactsSet()
175 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testMedicalInfoAndEmergencyContactsSet()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/
DPreferenceUtilsTest.java35 import com.android.emergency.PreferenceKeys;
94 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) in testHasAtLeastOneEmergencyContact_notSet()
104 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) in testHasAtLeastOneEmergencyContact_set()
127 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) in testUpdateSettingsSuggestionState_contactSet()
155 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_ALLERGIES), any())) in testUpdateSettingsSuggestionState_preferenceSet()
/packages/apps/Email/src/com/android/email/activity/setup/
DGeneralPreferences.java24 import com.android.mail.preferences.MailPrefs.PreferenceKeys;
36 final Preference removalAction = findPreference(PreferenceKeys.REMOVAL_ACTION); in onCreate()
40 final Preference confirmArchive = findPreference(PreferenceKeys.CONFIRM_ARCHIVE); in onCreate()
DAccountSettingsFragment.java390 } else if (FolderPreferences.PreferenceKeys.NOTIFICATIONS_ENABLED.equals(key)) { in onPreferenceChange()
393 } else if (FolderPreferences.PreferenceKeys.NOTIFICATION_VIBRATE.equals(key)) { in onPreferenceChange()
398 } else if (FolderPreferences.PreferenceKeys.NOTIFICATION_RINGTONE.equals(key)) { in onPreferenceChange()
791 FolderPreferences.PreferenceKeys.NOTIFICATIONS_ENABLED); in loadSettings()
795 mInboxRingtone = findPreference(FolderPreferences.PreferenceKeys.NOTIFICATION_RINGTONE); in loadSettings()
815 FolderPreferences.PreferenceKeys.NOTIFICATION_VIBRATE); in loadSettings()
DDebugFragment.java135 prefs.setMigrationState(MailPrefs.PreferenceKeys.MIGRATION_STATE_NONE); in clearMigrationState()
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewEmergencyContactsFragment.java26 import com.android.emergency.PreferenceKeys;
41 findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in onCreatePreferences()
DViewEmergencyInfoFragment.java28 import com.android.emergency.PreferenceKeys;
46 for (String preferenceKey : PreferenceKeys.KEYS_VIEW_EMERGENCY_INFO) { in onCreatePreferences()
/packages/apps/EmergencyInfo/src/com/android/emergency/
DPreferenceKeys.java21 public interface PreferenceKeys { interface
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java113 import com.android.mail.preferences.MailPrefs.PreferenceKeys;
6292 if (PreferenceKeys.REMOVAL_ACTION.equals(key) || in onSharedPreferenceChanged()
6293 PreferenceKeys.CONVERSATION_LIST_SWIPE.equals(key) || in onSharedPreferenceChanged()
6294 PreferenceKeys.SHOW_SENDER_IMAGES.equals(key) || in onSharedPreferenceChanged()
6295 PreferenceKeys.DEFAULT_REPLY_ALL.equals(key) || in onSharedPreferenceChanged()
6296 PreferenceKeys.CONVERSATION_OVERVIEW_MODE.equals(key) || in onSharedPreferenceChanged()
6297 PreferenceKeys.AUTO_ADVANCE_MODE.equals(key) || in onSharedPreferenceChanged()
6298 PreferenceKeys.SNAP_HEADER_MODE.equals(key) || in onSharedPreferenceChanged()
6299 PreferenceKeys.CONFIRM_DELETE.equals(key) || in onSharedPreferenceChanged()
6300 PreferenceKeys.CONFIRM_ARCHIVE.equals(key) || in onSharedPreferenceChanged()
[all …]