Home
last modified time | relevance | path

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

/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyContactsPreference.java124 public void onRemoveContactPreference(ContactPreference contactPreference) { in onRemoveContactPreference() argument
125 Uri phoneUriToRemove = contactPreference.getPhoneUri(); in onRemoveContactPreference()
182 ContactPreference contactPreference = null; in setEmergencyContacts() local
188 contactPreference = (ContactPreference) getPreference(i); in setEmergencyContacts()
189 contactPreference.setPhoneUri(phoneUri); in setEmergencyContacts()
191 contactPreference = in setEmergencyContacts()
193 onBindContactView(contactPreference); in setEmergencyContacts()
194 addPreference(contactPreference); in setEmergencyContacts()
224 protected void onBindContactView(final ContactPreference contactPreference) { in onBindContactView() argument
225 contactPreference.setRemoveContactPreferenceListener(this); in onBindContactView()
[all …]
DViewEmergencyContactsPreference.java47 protected void onBindContactView(final ContactPreference contactPreference) { in onBindContactView() argument
48 contactPreference in onBindContactView()
53 contactPreference.callContact(); in onBindContactView()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java106 ContactPreference contactPreference = (ContactPreference) mPreference.getPreference(0); in testAddAndRemoveEmergencyContact() local
108 assertThat(contactPreference.getPhoneUri()).isEqualTo(uri); in testAddAndRemoveEmergencyContact()
109 assertThat(contactPreference.getTitle()).isEqualTo(name); in testAddAndRemoveEmergencyContact()
110 assertThat((String) contactPreference.getSummary()).contains(phoneNumber); in testAddAndRemoveEmergencyContact()
162 ContactPreference contactPreference = (ContactPreference) mPreference.getPreference(0); in testReloadFromPreference() local
163 assertThat(contactPreference.getPhoneUri()).isEqualTo(contactUriJohn); in testReloadFromPreference()