Home
last modified time | relevance | path

Searched refs:mContactFactory (Results 1 – 4 of 4) sorted by relevance

/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java58 @Mock private ContactPreference.ContactFactory mContactFactory; field in EmergencyContactsPreferenceTest
72 null /* attrs */, mContactValidator, mContactFactory)); in setUp()
95 when(mContactFactory.getContact(any(), any())).thenReturn(contact); in testAddAndRemoveEmergencyContact()
124 when(mContactFactory.getContact(any(), eq(contactUriJane))).thenReturn(contactJane); in testReloadFromPreference()
133 when(mContactFactory.getContact(any(), eq(contactUriJohn))).thenReturn(contactJohn); in testReloadFromPreference()
DContactPreferenceTest.java46 @Mock private ContactPreference.ContactFactory mContactFactory; field in ContactPreferenceTest
58 when(mContactFactory.getContact(any(), any())).thenReturn(mContact); in setUp()
65 mPreference = new ContactPreference(activity, mPhoneUri, mContactFactory); in setUp()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DContactPreference.java68 private final ContactFactory mContactFactory; field in ContactPreference
99 mContactFactory = DEFAULT_CONTACT_FACTORY; in ContactPreference()
114 mContactFactory = contactFactory; in ContactPreference()
128 mContact = mContactFactory.getContact(getContext(), phoneUri); in setPhoneUri()
DEmergencyContactsPreference.java65 private final ContactPreference.ContactFactory mContactFactory; field in EmergencyContactsPreference
94 mContactFactory = contactFactory; in EmergencyContactsPreference()
191 new ContactPreference(getContext(), phoneUri, mContactFactory); in setEmergencyContacts()