Searched refs:mContactsPreferences (Results 1 – 2 of 2) sorted by relevance
46 private ContactsPreferences mContactsPreferences; field in ContactsPreferencesTest71 mContactsPreferences = new ContactsPreferences(mContext); in setUp()82 mContactsPreferences.getSortOrder()); in testGetSortOrderDefault()92 mContactsPreferences.getSortOrder()); in testGetSortOrder()101 mContactsPreferences.getDisplayOrder()); in testGetDisplayOrderDefault()111 mContactsPreferences.getDisplayOrder()); in testGetDisplayOrder()120 mContactsPreferences.getPhoneticNameDisplayPreference()); in testGetPhoneticNameDisplayDefault()131 mContactsPreferences.getPhoneticNameDisplayPreference()); in testGetPhoneticNameDisplay()144 mContactsPreferences.getPhoneticNameDisplayPreference()); in testRefreshPhoneticNameDisplay()145 mContactsPreferences.refreshValue(ContactsPreferences.PHONETIC_NAME_DISPLAY_KEY); in testRefreshPhoneticNameDisplay()[all …]
41 @Mock private ContactsPreferences mContactsPreferences; field in ContactDisplayUtilTests98 Mockito.when(mContactsPreferences.getDisplayOrder()) in testGetPreferredDisplayName_EmptyAlternative()101 mContactsPreferences)); in testGetPreferredDisplayName_EmptyAlternative()105 Mockito.when(mContactsPreferences.getDisplayOrder()).thenReturn(-1); in testGetPreferredDisplayName_InvalidPreference()107 NAME_ALTERNATIVE, mContactsPreferences)); in testGetPreferredDisplayName_InvalidPreference()111 Mockito.when(mContactsPreferences.getDisplayOrder()) in testGetPreferredDisplayName_Primary()114 NAME_ALTERNATIVE, mContactsPreferences)); in testGetPreferredDisplayName_Primary()118 Mockito.when(mContactsPreferences.getDisplayOrder()) in testGetPreferredDisplayName_Alternative()121 NAME_ALTERNATIVE, mContactsPreferences)); in testGetPreferredDisplayName_Alternative()144 Mockito.when(mContactsPreferences.getSortOrder()) in testGetPreferredSortName_EmptyAlternative()[all …]