/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
D | MailPrefs.java | 56 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 …]
|
D | AccountPreferences.java | 35 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 …]
|
D | FolderPreferences.java | 44 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/ |
D | GeneralPrefsFragment.java | 36 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/src/com/android/emergency/edit/ |
D | EditInfoActivityTest.java | 30 import com.android.emergency.PreferenceKeys; 77 for (String key : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in testInitialState() 82 .findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in testInitialState() 91 .findPreference(PreferenceKeys.KEY_NAME); in testClearAllPreferences() 94 .findPreference(PreferenceKeys.KEY_ADDRESS); in testClearAllPreferences() 97 .findPreference(PreferenceKeys.KEY_BLOOD_TYPE); in testClearAllPreferences() 100 .findPreference(PreferenceKeys.KEY_ALLERGIES); in testClearAllPreferences() 103 .findPreference(PreferenceKeys.KEY_MEDICATIONS); in testClearAllPreferences() 106 .findPreference(PreferenceKeys.KEY_MEDICAL_CONDITIONS); in testClearAllPreferences() 109 .findPreference(PreferenceKeys.KEY_ORGAN_DONOR); in testClearAllPreferences() [all …]
|
D | EditEmergencyContactsFragmentTest.java | 26 import com.android.emergency.PreferenceKeys; 47 mEditEmergencyContactsFragment.findPreference(PreferenceKeys.KEY_ADD_CONTACT); in setUp()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/view/ |
D | ViewEmergencyContactsFragment.java | 26 import com.android.emergency.PreferenceKeys; 44 findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in onCreate() 71 emergencyContactsString = prefs.getString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, ""); in hasAtLeastOneEmergencyContact() 77 PreferenceKeys.KEY_EMERGENCY_CONTACTS, in hasAtLeastOneEmergencyContact() 82 PreferenceKeys.KEY_EMERGENCY_CONTACTS, in hasAtLeastOneEmergencyContact()
|
D | ViewEmergencyInfoFragment.java | 27 import com.android.emergency.PreferenceKeys; 46 for (String preferenceKey : PreferenceKeys.KEYS_VIEW_EMERGENCY_INFO) { in onCreate() 76 for (String key : PreferenceKeys.KEYS_VIEW_EMERGENCY_INFO) { in hasAtLeastOnePreferenceSet()
|
D | ViewInfoActivity.java | 36 import com.android.emergency.PreferenceKeys; 78 String name = mSharedPreferences.getString(PreferenceKeys.KEY_NAME, ""); in loadName()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/ |
D | EditEmergencyInfoFragment.java | 24 import com.android.emergency.PreferenceKeys; 40 for (int i = 0; i < PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO.length; i++) { in onCreate() 42 String preferenceKey = PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO[i]; in onCreate() 68 for (String preferenceKey : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in reloadFromPreference()
|
D | EditEmergencyContactsFragment.java | 27 import com.android.emergency.PreferenceKeys; 47 findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in onCreate() 49 Preference addEmergencyContact = findPreference(PreferenceKeys.KEY_ADD_CONTACT); in onCreate()
|
D | EditInfoActivity.java | 36 import com.android.emergency.PreferenceKeys; 140 for (String key : PreferenceKeys.KEYS_EDIT_EMERGENCY_INFO) { in onClearAllPreferences() 143 sharedPreferences.edit().remove(PreferenceKeys.KEY_EMERGENCY_CONTACTS).commit(); in onClearAllPreferences()
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/view/ |
D | ViewInfoActivityTest.java | 35 import com.android.emergency.PreferenceKeys; 93 .edit().putString(PreferenceKeys.KEY_NAME, name).commit(); in testNameSet() 112 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testEmergencyInfoSet() 132 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testEmergencyContactSet() 155 .putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testInfoAndEmergencyContactsSet() 159 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testInfoAndEmergencyContactsSet()
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/ |
D | EmergencyListPreferenceTest.java | 25 import com.android.emergency.PreferenceKeys; 49 mEditInfoFragment.findPreference(PreferenceKeys.KEY_ORGAN_DONOR); in setUp() 51 mEditInfoFragment.findPreference(PreferenceKeys.KEY_BLOOD_TYPE); in setUp() 101 assertEquals(PreferenceKeys.KEY_ORGAN_DONOR, mOrganDonorPreference.getKey()); in testProperties_organDonor() 114 assertEquals(PreferenceKeys.KEY_BLOOD_TYPE, mBloodTypeListPreference.getKey()); in testProperties_bloodType()
|
D | EmergencyEditTextPreferenceTest.java | 22 import com.android.emergency.PreferenceKeys; 45 mEditInfoFragment.findPreference(PreferenceKeys.KEY_MEDICAL_CONDITIONS); in setUp() 80 assertEquals(PreferenceKeys.KEY_MEDICAL_CONDITIONS, mPreference.getKey()); in testProperties()
|
D | NameAutoCompletePreferenceTest.java | 25 import com.android.emergency.PreferenceKeys; 48 mEditInfoFragment.findPreference(PreferenceKeys.KEY_NAME); in setUp() 83 assertEquals(PreferenceKeys.KEY_NAME, mNameAutoCompletePreference.getKey()); in testProperties()
|
D | EmergencyContactsPreferenceTest.java | 28 import com.android.emergency.PreferenceKeys; 57 .findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in setUp()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | GeneralPreferences.java | 24 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()
|
D | AccountSettingsFragment.java | 390 } 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()
|
D | DebugFragment.java | 135 prefs.setMigrationState(MailPrefs.PreferenceKeys.MIGRATION_STATE_NONE); in clearMigrationState()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
D | PreferenceKeys.java | 21 public interface PreferenceKeys { interface
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailProvider.java | 113 import com.android.mail.preferences.MailPrefs.PreferenceKeys; 6288 if (PreferenceKeys.REMOVAL_ACTION.equals(key) || in onSharedPreferenceChanged() 6289 PreferenceKeys.CONVERSATION_LIST_SWIPE.equals(key) || in onSharedPreferenceChanged() 6290 PreferenceKeys.SHOW_SENDER_IMAGES.equals(key) || in onSharedPreferenceChanged() 6291 PreferenceKeys.DEFAULT_REPLY_ALL.equals(key) || in onSharedPreferenceChanged() 6292 PreferenceKeys.CONVERSATION_OVERVIEW_MODE.equals(key) || in onSharedPreferenceChanged() 6293 PreferenceKeys.AUTO_ADVANCE_MODE.equals(key) || in onSharedPreferenceChanged() 6294 PreferenceKeys.SNAP_HEADER_MODE.equals(key) || in onSharedPreferenceChanged() 6295 PreferenceKeys.CONFIRM_DELETE.equals(key) || in onSharedPreferenceChanged() 6296 PreferenceKeys.CONFIRM_ARCHIVE.equals(key) || in onSharedPreferenceChanged() [all …]
|