Home
last modified time | relevance | path

Searched refs:emergencyContacts (Results 1 – 3 of 3) sorted by relevance

/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyContactsPreference.java115 public void setEmergencyContacts(List<Uri> emergencyContacts) { in setEmergencyContacts() argument
116 final boolean changed = !mEmergencyContacts.equals(emergencyContacts); in setEmergencyContacts()
118 mEmergencyContacts = emergencyContacts; in setEmergencyContacts()
120 persistString(serialize(emergencyContacts)); in setEmergencyContacts()
126 while (getPreferenceCount() - emergencyContacts.size() > 0) { in setEmergencyContacts()
131 Iterator<Uri> it = emergencyContacts.iterator(); in setEmergencyContacts()
214 public static String serialize(List<Uri> emergencyContacts) { in serialize() argument
216 for (int i = 0; i < emergencyContacts.size(); i++) { in serialize()
217 sb.append(emergencyContacts.get(i).toString()); in serialize()
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java134 final List<Uri> emergencyContacts = new ArrayList<>(); in testReloadFromPreference() local
135 emergencyContacts.add(emergencyContactJane); in testReloadFromPreference()
136 emergencyContacts.add(emergencyContactJohn); in testReloadFromPreference()
140 mEmergencyContactsPreference.setEmergencyContacts(emergencyContacts); in testReloadFromPreference()
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/edit/
DEditInfoActivityTest.java116 final List<Uri> emergencyContacts = new ArrayList<>(); in testClearAllPreferences() local
117 emergencyContacts.add(contactUri); in testClearAllPreferences()
129 emergencyContactsPreference.setEmergencyContacts(emergencyContacts); in testClearAllPreferences()