Home
last modified time | relevance | path

Searched refs:phoneNumberUtil (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java746 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getValidE164Number() local
748 final PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getValidE164Number()
749 if (phoneNumber != null && phoneNumberUtil.isValidNumber(phoneNumber)) { in getValidE164Number()
750 return phoneNumberUtil.format(phoneNumber, PhoneNumberFormat.E164); in getValidE164Number()
841 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getSimNumberNoCountryCode() local
843 final PhoneNumber phoneNumber = phoneNumberUtil.parse(selfNumber, country); in getSimNumberNoCountryCode()
844 if (phoneNumber != null && phoneNumberUtil.isValidNumber(phoneNumber)) { in getSimNumberNoCountryCode()
845 return phoneNumberUtil in getSimNumberNoCountryCode()
871 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in formatForDisplay() local
873 final int systemCountryCode = phoneNumberUtil.getCountryCodeForRegion(systemCountry); in formatForDisplay()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DPhoneUtils.java45 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getNationalNumber() local
46 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); in getNationalNumber()
50 return phoneNumberUtil in getNationalNumber()
56 private static Phonenumber.PhoneNumber getParsedNumber(PhoneNumberUtil phoneNumberUtil, in getParsedNumber() argument
59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getParsedNumber()
60 if (phoneNumberUtil.isValidNumber(phoneNumber)) { in getParsedNumber()
/packages/apps/Messaging/src/android/support/v7/mms/
DPhoneNumberHelper.java40 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getNumberNoCountryCode() local
42 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(number, country); in getNumberNoCountryCode()
43 if (phoneNumber != null && phoneNumberUtil.isValidNumber(phoneNumber)) { in getNumberNoCountryCode()
44 return phoneNumberUtil in getNumberNoCountryCode()
/packages/apps/Dialer/java/com/android/dialer/location/
DGeoUtil.java37 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getGeocodedLocationFor() local
40 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context)); in getGeocodedLocationFor()
/packages/apps/Contacts/src/com/android/contacts/
DGeoUtil.java50 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getGeocodedLocationFor() local
53 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context)); in getGeocodedLocationFor()
/packages/apps/Dialer/java/com/android/contacts/common/
DGeoUtil.java45 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in getGeocodedLocationFor() local
48 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context)); in getGeocodedLocationFor()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java143 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in createTtsSpanLollipop() local
149 phoneNumber = phoneNumberUtil.parse(phoneNumberString, /* defaultRegion */ null); in createTtsSpanLollipop()
/packages/apps/Dialer/java/com/android/contacts/common/compat/
DPhoneNumberUtilsCompat.java133 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); in createTtsSpanLollipop() local
139 phoneNumber = phoneNumberUtil.parse(phoneNumberString, /* defaultRegion */ null); in createTtsSpanLollipop()