Home
last modified time | relevance | path

Searched refs:PhoneNumberFormat (Results 1 – 6 of 6) sorted by relevance

/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DPhoneNumberUtilTest.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
381 assertEquals("650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
382 assertEquals("+1 650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
384 assertEquals("800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
385 assertEquals("+1 800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
387 assertEquals("900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
388 assertEquals("+1 900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
389 assertEquals("tel:+1-900-253-0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.RFC3966)); in testFormatUSNumber()
393 phoneUtil.format(US_SPOOF_WITH_RAW_INPUT, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
394 assertEquals("0", phoneUtil.format(US_SPOOF, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
[all …]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dphonenumberutil.h87 enum PhoneNumberFormat { enum
289 PhoneNumberFormat number_format,
296 PhoneNumberFormat number_format,
699 PhoneNumberUtil::PhoneNumberFormat number_format,
706 PhoneNumberUtil::PhoneNumberFormat number_format,
727 PhoneNumberFormat number_format,
732 PhoneNumberFormat number_format,
739 PhoneNumberFormat number_format,
Dphonenumberutil.cc155 PhoneNumberUtil::PhoneNumberFormat number_format, in PrefixNumberWithCountryCallingCode()
868 PhoneNumberFormat number_format, in Format()
920 PhoneNumberFormat number_format, in FormatByPattern()
1473 PhoneNumberUtil::PhoneNumberFormat number_format, in FormatNsnUsingPatternWithCarrier()
1524 PhoneNumberUtil::PhoneNumberFormat number_format, in FormatNsnUsingPattern()
1533 PhoneNumberFormat number_format, in FormatNsn()
1546 PhoneNumberFormat number_format, in FormatNsnWithCarrier()
1571 PhoneNumberFormat number_format, in MaybeAppendFormattedExtension()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java391 public enum PhoneNumberFormat { enum in PhoneNumberUtil
853 PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL);
1007 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1028 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1034 if (numberFormat == PhoneNumberFormat.E164) {
1038 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164,
1071 PhoneNumberFormat numberFormat,
1149 PhoneNumberFormat.NATIONAL, carrierCode));
1150 maybeAppendFormattedExtension(number, metadata, PhoneNumberFormat.NATIONAL, formattedNumber);
1151 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.NATIONAL,
[all …]
DPhoneNumberMatcher.java21 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
529 String rfc3966Format = util.format(number, PhoneNumberFormat.RFC3966); in getNationalNumberGroups()
543 formattingPattern, PhoneNumberFormat.RFC3966).split("-"); in getNationalNumberGroups()
/external/chromium_org/components/autofill/core/browser/
Dphone_number_i18n.cc59 PhoneNumberUtil::PhoneNumberFormat format = in FormatValidatedNumber()