Home
last modified time | relevance | path

Searched refs:formatNumber (Results 1 – 25 of 31) sorted by relevance

12

/packages/services/Telephony/tests/src/com/android/phone/tests/
DCallForwardInfoTest.java40 assertNotNull(PhoneNumberUtils.formatNumber("+12345678900", Locale.US.getCountry())); in testCallForwardNumberResponses()
41 assertNotNull(PhoneNumberUtils.formatNumber("123-456-7890", Locale.US.getCountry())); in testCallForwardNumberResponses()
42 assertNotNull(PhoneNumberUtils.formatNumber("#123", Locale.US.getCountry())); in testCallForwardNumberResponses()
43 assertNotNull(PhoneNumberUtils.formatNumber("*12", Locale.US.getCountry())); in testCallForwardNumberResponses()
45 assertNull(PhoneNumberUtils.formatNumber("a", Locale.US.getCountry())); in testCallForwardNumberResponses()
46 assertNull(PhoneNumberUtils.formatNumber("a1", Locale.US.getCountry())); in testCallForwardNumberResponses()
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java271 public static String formatNumber( in formatNumber() method in PhoneNumberHelper
282 String formattedNumber = PhoneNumberUtils.formatNumber(number, numberE164, countryIso); in formatNumber()
287 public static String formatNumber(Context context, @Nullable String number, String countryIso) { in formatNumber() method in PhoneNumberHelper
288 return formatNumber(context, number, /* numberE164 = */ null, countryIso); in formatNumber()
300 .unicodeWrap(formatNumber(context, number, countryIso), TextDirectionHeuristics.LTR)); in formatNumberForDisplay()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java73 public static String formatNumber( in formatNumber() method in PhoneNumberUtilsCompat
76 return PhoneNumberUtils.formatNumber(phoneNumber, phoneNumberE164, defaultCountryIso); in formatNumber()
79 return PhoneNumberUtils.formatNumber(phoneNumber); in formatNumber()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersUtil.java61 public static String formatNumber(String number){ in formatNumber() method in BlockedNumbersUtil
62 String formattedNumber = PhoneNumberUtils.formatNumber(number, getLocaleDefaultToUS()); in formatNumber()
74 String formattedNumber = formatNumber(number); in showToastWithFormattedNumber()
DBlockedNumbersAdapter.java45 final String formattedNumber = BlockedNumbersUtil.formatNumber(rawNumber); in bindView()
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java92 return context.getString(R.string.action_call, PhoneNumberUtils.formatNumber(ssp)); in getPrettyUriString()
94 return context.getString(R.string.action_text, PhoneNumberUtils.formatNumber(ssp)); in getPrettyUriString()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DPhoneDataItem.java57 PhoneNumberHelper.formatNumber( in computeFormattedPhoneNumber()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DPhoneDataItem.java81 final String formattedPhoneNumber = PhoneNumberUtilsCompat.formatNumber(phoneNumber, in computeFormattedPhoneNumber()
/packages/apps/Dialer/java/com/android/incallui/
DContactInfoCache.java214 displayNumber = PhoneNumberHelper.formatNumber(context, number, info.countryIso); in populateCacheEntry()
227 displayNumber = PhoneNumberHelper.formatNumber(context, number, info.countryIso); in populateCacheEntry()
252 displayNumber = PhoneNumberHelper.formatNumber(context, number, info.countryIso); in populateCacheEntry()
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/
DBlockedNumbersAdapter.java69 PhoneNumberHelper.formatNumber(getContext(), number, countryIso), in bindView()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSuggestionViewHolder.java58 PhoneNumberHelper.formatNumber( in bind()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DLegacyVoicemailNotifier.java155 PhoneNumberHelper.formatNumber( in getNotificationText()
DCallLogNotificationsQueryHelper.java209 contactInfo.formattedNumber = PhoneNumberHelper.formatNumber(context, number, countryIso); in getContactInfo()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimCard.java110 return PhoneNumberUtils.formatNumber(mPhoneNumber, mCountryCode); in getFormattedPhone()
/packages/apps/Settings/src/com/android/settings/sim/
DSimPreferenceDialog.java145 numberView.setText(PhoneNumberUtils.formatNumber(rawNumber)); in createEditDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimPreferenceDialog.java145 numberView.setText(PhoneNumberUtils.formatNumber(rawNumber)); in createEditDialog()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DDisconnectedCallNotifier.java258 String formattedNumber = PhoneNumberUtils.formatNumber(number, in getNameForCallNotification()
DMissedCallNotifierImpl.java418 String formattedNumber = PhoneNumberUtils.formatNumber(handle, in getNameForMissedCallNotification()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamCallListListener.java268 PhoneNumberHelper.formatNumber( in getDisplayNumber()
DSpamNotificationActivity.java132 PhoneNumberHelper.formatNumber(context, number, GeoUtil.getCurrentCountryIso(context)); in getFormattedNumber()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java331 PhoneNumberUtils.formatNumber(numberWithPostDialDigits, countryIso); in handleInsertsAndUpdates()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java335 String formattedViaNumber = PhoneNumberUtils.formatNumber(call.getViaNumber(), in logCall()
/packages/services/Telephony/src/com/android/phone/
DCallForwardEditPreference.java211 if (mReplaceInvalidCFNumber && (PhoneNumberUtils.formatNumber(callForwardInfo.number, in handleCallForwardResult()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java129 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso); in getFormattedNumber()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java459 return PhoneNumberHelper.formatNumber(context, number, normalizedNumber, countryIso); in formatPhoneNumber()

12