/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/ |
D | EditInfoActivityTest.java | 43 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/ |
D | EmergencyListPreferenceTest.java | 30 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()
|
D | EmergencyContactsPreferenceTest.java | 40 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/ |
D | PreferenceUtils.java | 25 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/ |
D | EditInfoFragment.java | 33 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()
|
D | EditMedicalInfoFragment.java | 25 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()
|
D | EditInfoActivity.java | 37 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/ |
D | EmergencyListPreferenceTest.java | 31 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()
|
D | EmergencyEditTextPreferenceTest.java | 30 import com.android.emergency.PreferenceKeys; 72 mPreference.setKey(PreferenceKeys.KEY_MEDICAL_CONDITIONS); in testReloadFromPreference()
|
D | EmergencyContactsPreferenceTest.java | 38 import com.android.emergency.PreferenceKeys; 148 mPreference.setKey(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in testReloadFromPreference()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
D | ViewInfoActivityTest.java | 36 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/ |
D | PreferenceUtilsTest.java | 35 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/EmergencyInfo/src/com/android/emergency/view/ |
D | ViewEmergencyContactsFragment.java | 26 import com.android.emergency.PreferenceKeys; 41 findPreference(PreferenceKeys.KEY_EMERGENCY_CONTACTS); in onCreatePreferences()
|
D | ViewEmergencyInfoFragment.java | 28 import com.android.emergency.PreferenceKeys; 46 for (String preferenceKey : PreferenceKeys.KEYS_VIEW_EMERGENCY_INFO) { in onCreatePreferences()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
D | PreferenceKeys.java | 21 public interface PreferenceKeys { interface
|