Home
last modified time | relevance | path

Searched refs:TelecomUtils (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallFragment.java41 import com.android.car.telephony.common.TelecomUtils;
74 mDefaultAvatar = TelecomUtils.createLetterTile(getContext(), null, null); in onCreate()
110 mNameView.setText(TelecomUtils.getFormattedNumber(getContext(), number)); in bindUserProfileView()
118 private void updateProfileInfo(String number, TelecomUtils.PhoneNumberInfo info) { in updateProfileInfo()
127 String bidiWrappedLabel = phoneNumberLabel + TelecomUtils.getBidiWrappedNumber( in updateProfileInfo()
128 TelecomUtils.getFormattedNumber(getContext(), number)); in updateProfileInfo()
129 phoneNumberLabel += TelecomUtils.getFormattedNumber(getContext(), number); in updateProfileInfo()
139 LetterTileDrawable letterTile = TelecomUtils.createLetterTile( in updateProfileInfo()
168 TelecomUtils.PhoneNumberInfo phoneNumberInfo = mInCallViewModel.getPhoneNumberInfo(number); in updateProfile()
175 mPhoneNumberInfoFuture = TelecomUtils.getPhoneNumberInfo(getContext(), number) in updateProfile()
[all …]
DOnHoldCallUserProfileFragment.java39 import com.android.car.telephony.common.TelecomUtils;
64 mDefaultAvatar = TelecomUtils.createLetterTile(getContext(), null, null); in onCreate()
119 mTitle.setText(TelecomUtils.getFormattedNumber(getContext(), number)); in updateProfile()
121 TelecomUtils.PhoneNumberInfo phoneNumberInfo = mInCallViewModel.getPhoneNumberInfo(number); in updateProfile()
126 mPhoneNumberInfoFuture = TelecomUtils.getPhoneNumberInfo(getContext(), number) in updateProfile()
134 private void updateProfileInfo(TelecomUtils.PhoneNumberInfo info) { in updateProfileInfo()
136 TelecomUtils.setContactBitmapAsync(getContext(), mAvatarView, in updateProfileInfo()
DConferenceProfileViewHolder.java30 import com.android.car.telephony.common.TelecomUtils;
57 TelecomUtils.getPhoneNumberInfo(mContext, number) in bind()
63 mAvatar.setImageDrawable(TelecomUtils.createLetterTile(mContext, null, null)); in bind()
70 phoneNumberLabel += TelecomUtils.getFormattedNumber(mContext, number); in bind()
78 TelecomUtils.setContactBitmapAsync(mContext, mAvatar, in bind()
DInCallViewModel.java38 import com.android.car.telephony.common.TelecomUtils;
83 private HashMap<String, TelecomUtils.PhoneNumberInfo> mContactInfoMap = new HashMap<>();
298 public TelecomUtils.PhoneNumberInfo getPhoneNumberInfo(String number) { in getPhoneNumberInfo()
305 public TelecomUtils.PhoneNumberInfo putPhoneNumberInfo( in putPhoneNumberInfo()
306 String number, TelecomUtils.PhoneNumberInfo info) { in putPhoneNumberInfo()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java40 import com.android.car.telephony.common.TelecomUtils;
89 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testDisplayName()
100 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_withOnlyOneNumber_showLabel()
110 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
124 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_withOneNumberAndGetNullLabel_showEmptyString()
137 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
152 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
167 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
186 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testLabel_HasPrimaryNumberButGetNullLabel_showMultipleLabel()
197 mContactListViewHolder.bind(mMockContact, false, "", TelecomUtils.SORT_BY_FIRST_NAME); in testClickCallActionButton_ContactHasOneNumber_placeCall()
[all …]
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DInCallModelTest.java34 import com.android.car.telephony.common.TelecomUtils;
100 String formattedNumber = TelecomUtils.getFormattedNumber( in updateModelWithPhoneNumber_setsPhoneNumber()
108 TelecomUtils.PhoneNumberInfo phoneInfo = new TelecomUtils.PhoneNumberInfo(PHONE_NUMBER, in updateModelWithContact_noAvatarUri_setsContactNameAndInitialsIcon()
124 TelecomUtils.PhoneNumberInfo phoneInfo = new TelecomUtils.PhoneNumberInfo(PHONE_NUMBER, in updateModelWithContact_invalidAvatarUri_setsContactNameAndInitialsIcon()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/search/
DContactResultViewHolder.java35 import com.android.car.telephony.common.TelecomUtils;
79 TelecomUtils.isSortByFirstName(sortMethod) ? contact.getDisplayName() in bindSearchResult()
81 TelecomUtils.setContactBitmapAsync(mContext, mContactPicture, contact, sortMethod); in bindSearchResult()
105 TelecomUtils.isSortByFirstName(sortMethod) ? contact.getDisplayName() in bindTypeDownResult()
109 TelecomUtils.setContactBitmapAsync(mContext, mContactPicture, contact, sortMethod); in bindTypeDownResult()
/packages/apps/Car/Dialer/src/com/android/car/dialer/notification/
DNotificationService.java30 import com.android.car.telephony.common.TelecomUtils;
95 TelecomUtils.markCallLogAsRead(context, phoneNumber); in onStartCommand()
100 TelecomUtils.markCallLogAsRead(context, phoneNumber); in onStartCommand()
105 TelecomUtils.markCallLogAsRead(context, phoneNumber); in onStartCommand()
108 TelecomUtils.markCallLogAsRead(context, callLogId); in onStartCommand()
DNotificationUtils.java29 import com.android.car.telephony.common.TelecomUtils;
42 return TelecomUtils.getPhoneNumberInfo(context, number) in getDisplayNameAndRoundedAvatar()
50 largeIcon = TelecomUtils.createLetterTile(context, info.getInitials(), in getDisplayNameAndRoundedAvatar()
72 return TelecomUtils in loadContactAvatar()
DInCallNotificationController.java34 import com.android.car.telephony.common.TelecomUtils;
104 .setContentTitle(TelecomUtils.getBidiWrappedNumber(callNumber)) in showInCallNotification()
122 .setContentTitle(TelecomUtils.getBidiWrappedNumber(pair.first)); in showInCallNotification()
DMissedCallReceiver.java28 import com.android.car.telephony.common.TelecomUtils;
50 L.d(TAG, "Count: %d PhoneNumber: %s", count, TelecomUtils.piiLog(phoneNumber)); in onReceive()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DPhoneNumberInfoLiveData.java23 import com.android.car.telephony.common.TelecomUtils;
24 import com.android.car.telephony.common.TelecomUtils.PhoneNumberInfo;
38 mCurrentFuture = TelecomUtils.getPhoneNumberInfo(context, number) in PhoneNumberInfoLiveData()
DPhoneFragment.java32 import com.android.car.telephony.common.TelecomUtils;
63 TelecomUtils.setContactBitmapAsync(getContext(), in onCreateView()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/
DInCallModel.java41 import com.android.car.telephony.common.TelecomUtils;
107 mPhoneNumberInfoFuture = TelecomUtils.getPhoneNumberInfo(mContext,
217 String formattedNumber = TelecomUtils.getFormattedNumber(mContext, number); in updateModelWithPhoneNumber()
230 void updateModelWithContact(TelecomUtils.PhoneNumberInfo phoneNumberInfo) { in updateModelWithContact()
249 contactImage = TelecomUtils.createLetterTile(mContext, in updateModelWithContact()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/entity/
DContactSortingInfo.java25 import com.android.car.telephony.common.TelecomUtils;
72 sortMethod = TelecomUtils.SORT_BY_FIRST_NAME; in getSortingInfo()
75 sortMethod = TelecomUtils.SORT_BY_LAST_NAME; in getSortingInfo()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteContactViewHolder.java34 import com.android.car.telephony.common.TelecomUtils;
64 mTitle.setText(TelecomUtils.isSortByFirstName(sortMethod) ? contact.getDisplayName() in bind()
87 TelecomUtils.setContactBitmapAsync(context, mIcon, contact, sortMethod); in bind()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerUtils.java31 import com.android.car.telephony.common.TelecomUtils;
77 item.setBody(TelecomUtils.getBidiWrappedNumber(number.getNumber())); in showPhoneNumberSelector()
123 TelecomUtils.setAsPrimaryPhoneNumber(context, phoneNumber); in promptForPrimaryNumber()
DUiCallLogLiveData.java34 import com.android.car.telephony.common.TelecomUtils;
131 TelecomUtils.PhoneNumberInfo phoneNumberInfo = in convert()
132 TelecomUtils.lookupNumberInBackground(mContext, number); in convert()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/dialpad/
DDialpadFragmentTest.java45 import com.android.car.telephony.common.TelecomUtils;
91 LiveDataFunctions.dataOf(TelecomUtils.SORT_BY_FIRST_NAME)); in setup()
258 expectedText = TelecomUtils.getFormattedNumber(mDialpadFragment.getContext(), expectedText); in verifyTitleText()
260 TelecomUtils.getFormattedNumber(mDialpadFragment.getContext(), null); in verifyTitleText()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/calllog/
DCallLogViewHolder.java36 import com.android.car.telephony.common.TelecomUtils;
84 TelecomUtils.setContactBitmapAsync( in bind()
91 mTitleView.setText(TelecomUtils.isSortByFirstName(sortMethod) ? uiCallLog.getTitle() in bind()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactListViewHolder.java35 import com.android.car.telephony.common.TelecomUtils;
78 TelecomUtils.setContactBitmapAsync(mAvatarView.getContext(), mAvatarView, contact, in bind()
84 mTitleView.setText(TelecomUtils.isSortByFirstName(sortMethod) ? contact.getDisplayName() in bind()
DContactDetailsViewHolder.java43 import com.android.car.telephony.common.TelecomUtils;
120 LetterTileDrawable letterTile = TelecomUtils.createLetterTile(context, null, null); in bind()
138 LetterTileDrawable letterTile = TelecomUtils.createLetterTile(context, in bind()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DContact.java358 if (TelecomUtils.isVoicemailNumber(context, newNumber.getNumber())) { in addPhoneNumber()
457 mInitials = TelecomUtils.getInitials(mDisplayName, mDisplayNameAlt); in getInitials()
468 return TelecomUtils.getInitials(mDisplayName, mDisplayNameAlt); in getInitialsBasedOnDisplayOrder()
470 return TelecomUtils.getInitials(mDisplayNameAlt, mDisplayName); in getInitialsBasedOnDisplayOrder()
DPostalAddress.java112 L.d(TAG, "The address is: " + TelecomUtils.piiLog(mFormattedAddress)); in getAddressIntent()
120 L.d(TAG, "The address is: " + TelecomUtils.piiLog(mFormattedAddress)); in getNavigationIntent()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DInCallDialpadFragment.java37 import com.android.car.telephony.common.TelecomUtils;
82 mCallStateView.setText(TelecomUtils.callStateToUiString( in onCreateView()

12