Home
last modified time | relevance | path

Searched refs:ContactDisplayUtils (Results 1 – 5 of 5) sorted by relevance

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DContactDisplayUtilTests.java33 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_CUSTOM)); in testIsCustomPhoneTypeReturnsTrue()
34 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_ASSISTANT)); in testIsCustomPhoneTypeReturnsTrue()
38 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_HOME)); in testIsCustomPhoneTypeReturnsFalse()
39 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_FAX_WORK)); in testIsCustomPhoneTypeReturnsFalse()
40 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_MOBILE)); in testIsCustomPhoneTypeReturnsFalse()
41 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_OTHER)); in testIsCustomPhoneTypeReturnsFalse()
45 final CharSequence smsResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, in testGetLabelForCallOrSmsReturnsCustomLabel()
46 "expected sms label", ContactDisplayUtils.INTERACTION_SMS, getContext()); in testGetLabelForCallOrSmsReturnsCustomLabel()
49 final CharSequence callResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, in testGetLabelForCallOrSmsReturnsCustomLabel()
50 "expected call label", ContactDisplayUtils.INTERACTION_CALL, getContext()); in testGetLabelForCallOrSmsReturnsCustomLabel()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/
DPhoneNumberInteractionTest.java36 import com.android.contacts.common.util.ContactDisplayUtils;
97 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenOnlyOneNumberAvailable()
116 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenDataIdIsProvided()
137 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenThereIsPrimaryNumber()
178 mContext, ContactDisplayUtils.INTERACTION_CALL, null); in testCallNumberWhenThereAreDuplicates()
196 mContext, ContactDisplayUtils.INTERACTION_CALL, null); in testCallWithSip()
217 mContext, ContactDisplayUtils.INTERACTION_CALL, null); in testShowDisambigDialogForCalling()
/packages/apps/Dialer/src/com/android/dialer/interactions/
DPhoneNumberInteraction.java53 import com.android.contacts.common.util.ContactDisplayUtils;
165 CharSequence value = ContactDisplayUtils.getLabelForCallOrSms((int) item.type, in getView()
220 .setTitle(mInteractionType == ContactDisplayUtils.INTERACTION_SMS in onCreateDialog()
304 case ContactDisplayUtils.INTERACTION_SMS: in performAction()
439 (new PhoneNumberInteraction(activity, ContactDisplayUtils.INTERACTION_CALL, null)) in startInteractionForPhoneCall()
460 (new PhoneNumberInteraction(activity, ContactDisplayUtils.INTERACTION_CALL, null)) in startInteractionForPhoneCall()
474 … (new PhoneNumberInteraction(activity, ContactDisplayUtils.INTERACTION_CALL, null, callOrigin)) in startInteractionForPhoneCall()
491 (new PhoneNumberInteraction(activity, ContactDisplayUtils.INTERACTION_SMS, null)) in startInteractionForTextMessage()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DContactDisplayUtils.java30 public class ContactDisplayUtils { class
32 private static final String TAG = ContactDisplayUtils.class.getSimpleName();
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DBaseAccountType.java45 import com.android.contacts.common.util.ContactDisplayUtils;
543 return ContactDisplayUtils.isCustomPhoneType(type); in isCustom()
548 return ContactDisplayUtils.getPhoneLabelResourceId(type); in getTypeLabelResource()
555 return ContactDisplayUtils.isCustomPhoneType(type); in isCustom()
560 return ContactDisplayUtils.getSmsLabelResourceId(type); in getTypeLabelResource()