Home
last modified time | relevance | path

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

/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/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