Home
last modified time | relevance | path

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

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DContactDisplayUtilTests.java49 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_CUSTOM)); in testIsCustomPhoneTypeReturnsTrue()
50 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_ASSISTANT)); in testIsCustomPhoneTypeReturnsTrue()
54 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_HOME)); in testIsCustomPhoneTypeReturnsFalse()
55 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_FAX_WORK)); in testIsCustomPhoneTypeReturnsFalse()
56 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_MOBILE)); in testIsCustomPhoneTypeReturnsFalse()
57 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_OTHER)); in testIsCustomPhoneTypeReturnsFalse()
61 final CharSequence smsResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, in testGetLabelForCallOrSmsReturnsCustomLabel()
62 "expected sms label", ContactDisplayUtils.INTERACTION_SMS, getContext()); in testGetLabelForCallOrSmsReturnsCustomLabel()
65 final CharSequence callResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, in testGetLabelForCallOrSmsReturnsCustomLabel()
66 "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;
99 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenOnlyOneNumberAvailable()
118 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenDataIdIsProvided()
139 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenThereIsPrimaryNumber()
180 mContext, ContactDisplayUtils.INTERACTION_CALL, null); in testCallNumberWhenThereAreDuplicates()
198 mContext, ContactDisplayUtils.INTERACTION_CALL, null); in testCallWithSip()
219 mContext, ContactDisplayUtils.INTERACTION_CALL, null); in testShowDisambigDialogForCalling()
/packages/apps/Dialer/src/com/android/dialer/filterednumber/
DBlockNumberDialogFragment.java33 import com.android.contacts.common.util.ContactDisplayUtils;
158 message = ContactDisplayUtils.getTtsSpannedPhoneNumber(getResources(), in onCreateDialog()
162 title = ContactDisplayUtils.getTtsSpannedPhoneNumber(getResources(), in onCreateDialog()
198 ContactDisplayUtils.getTtsSpannedPhoneNumber( in onActivityCreated()
218 return ContactDisplayUtils.getTtsSpannedPhoneNumber(getResources(), in getBlockedMessage()
223 return ContactDisplayUtils.getTtsSpannedPhoneNumber(getResources(), in getUnblockedMessage()
/packages/apps/Contacts/src/com/android/contacts/widget/
DAlphaTouchInterceptorOverlay.java23 import com.android.contacts.detail.ContactDisplayUtils;
69 if (mAlphaLayer == this) ContactDisplayUtils.setAlphaOnViewBackground(this, 0.0f); in setAlphaLayer()
79 ContactDisplayUtils.setAlphaOnViewBackground(mAlphaLayer, mAlpha); in setAlphaLayerValue()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DPhoneCallDetailsTest.java12 import com.android.contacts.common.util.ContactDisplayUtils;
39 CharSequence accountNumberLabel = ContactDisplayUtils.getTelephoneTtsSpannable(msg, in testCreateAccountLabelDescription_ViaNumberAccountLabel()
48 CharSequence viaNumberLabel = ContactDisplayUtils.getTtsSpannedPhoneNumber(mResources, in testCreateAccountLabelDescription_ViaNumber()
/packages/apps/Dialer/src/com/android/dialer/
DPhoneCallDetails.java21 import com.android.contacts.common.util.ContactDisplayUtils;
171 CharSequence accountNumberLabel = ContactDisplayUtils.getTelephoneTtsSpannable(msg, in createAccountLabelDescription()
175 CharSequence viaNumberLabel = ContactDisplayUtils.getTtsSpannedPhoneNumber(resources, in createAccountLabelDescription()
DSpecialCharSequenceMgr.java47 import com.android.contacts.common.util.ContactDisplayUtils;
483 CharSequence msg = ContactDisplayUtils.getTtsSpannedPhoneNumber( in onNotNullableQueryComplete()
/packages/apps/Dialer/src/com/android/dialer/interactions/
DPhoneNumberInteraction.java51 import com.android.contacts.common.util.ContactDisplayUtils;
169 CharSequence value = ContactDisplayUtils.getLabelForCallOrSms((int) item.type, in getView()
231 .setTitle(mInteractionType == ContactDisplayUtils.INTERACTION_SMS in onCreateDialog()
334 case ContactDisplayUtils.INTERACTION_SMS: in performAction()
475 (new PhoneNumberInteraction(activity, ContactDisplayUtils.INTERACTION_CALL, null, in startInteractionForPhoneCall()
492 (new PhoneNumberInteraction(activity, ContactDisplayUtils.INTERACTION_SMS, null)) in startInteractionForTextMessage()
/packages/apps/Dialer/src/com/android/dialer/list/
DBlockedListSearchFragment.java35 import com.android.contacts.common.util.ContactDisplayUtils;
186 ContactDisplayUtils.getTtsSpannedPhoneNumber(getResources(), in blockNumber()
196 ContactDisplayUtils.getTtsSpannedPhoneNumber( in blockNumber()
229 Toast.makeText(getContext(), ContactDisplayUtils.getTtsSpannedPhoneNumber( in blockContactNumber()
DDialerPhoneNumberListAdapter.java17 import com.android.contacts.common.util.ContactDisplayUtils;
167 text = ContactDisplayUtils.getTtsSpannedPhoneNumber(resources, in assignShortcutToView()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DContactDisplayUtils.java40 public class ContactDisplayUtils { class
42 private static final String TAG = ContactDisplayUtils.class.getSimpleName();
240 return ContactDisplayUtils.getTelephoneTtsSpannable(msg, number); in getTtsSpannedPhoneNumber()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DConferenceParticipantListAdapter.java39 import com.android.contacts.common.util.ContactDisplayUtils;
365 ContactDisplayUtils.getPreferredDisplayName(contactCache.namePrimary, in getView()
515 ContactDisplayUtils.getPreferredSortName( in sortParticipantList()
523 ContactDisplayUtils.getPreferredSortName( in sortParticipantList()
DCallCardPresenter.java47 import com.android.contacts.common.util.ContactDisplayUtils;
967 String preferredName = ContactDisplayUtils.getPreferredDisplayName( in getNameForCall()
984 String preferredName = ContactDisplayUtils.getPreferredDisplayName( in getNumberForCall()
DStatusBarNotifier.java53 import com.android.contacts.common.util.ContactDisplayUtils;
432 String preferredName = ContactDisplayUtils.getPreferredDisplayName(contactInfo.namePrimary, in getContentTitle()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DSmsInteraction.java19 import com.android.contacts.common.util.ContactDisplayUtils;
169 return ContactDisplayUtils.getTelephoneTtsSpannable(contentDescription, phoneNumber); in getContentDescription()
DCallLogInteraction.java20 import com.android.contacts.common.util.ContactDisplayUtils;
189 return ContactDisplayUtils.getTelephoneTtsSpannable(contentDescription, phoneNumber); in getContentDescription()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DDefaultVoicemailNotifier.java41 import com.android.contacts.common.util.ContactDisplayUtils;
199 CharSequence msg = ContactDisplayUtils.getTtsSpannedPhoneNumber( in updateNotification()
/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()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java151 import com.android.contacts.detail.ContactDisplayUtils;
1240 final String displayName = ContactDisplayUtils.getDisplayName(this, data).toString(); in bindContactData()
1243 final String phoneticName = ContactDisplayUtils.getPhoneticName(this, data); in bindContactData()
1861 phoneContentDescription = com.android.contacts.common.util.ContactDisplayUtils in dataItemToEntry()
1873 smsContentDescription = com.android.contacts.common.util.ContactDisplayUtils in dataItemToEntry()
2669 ContactDisplayUtils.configureStarredMenuItem(starredMenuItem, in toggleStar()
2758 ContactDisplayUtils.configureStarredMenuItem(starredMenuItem, in onPrepareOptionsMenu()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListItemView.java58 import com.android.contacts.common.util.ContactDisplayUtils;
1277 if (ContactDisplayUtils.isPossiblePhoneNumber(text)) { in setSnippet()
1414 if (ContactDisplayUtils.isPossiblePhoneNumber(name)) { in setDisplayName()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java55 public class ContactDisplayUtils { class