Home
last modified time | relevance | path

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

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
443 assertEquals("650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
444 assertEquals("+1 650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
446 assertEquals("800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
447 assertEquals("+1 800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
449 assertEquals("900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
450 assertEquals("+1 900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
451 assertEquals("tel:+1-900-253-0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.RFC3966)); in testFormatUSNumber()
455 phoneUtil.format(US_SPOOF_WITH_RAW_INPUT, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
456 assertEquals("0", phoneUtil.format(US_SPOOF, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
[all …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java388 public enum PhoneNumberFormat { enum in PhoneNumberUtil
875 PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL);
1081 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1102 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1109 if (numberFormat == PhoneNumberFormat.E164) {
1113 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164,
1146 PhoneNumberFormat numberFormat,
1224 PhoneNumberFormat.NATIONAL, carrierCode));
1225 maybeAppendFormattedExtension(number, metadata, PhoneNumberFormat.NATIONAL, formattedNumber);
1226 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.NATIONAL,
[all …]
DPhoneNumberMatcher.java21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
556 String rfc3966Format = util.format(number, PhoneNumberFormat.RFC3966); in getNationalNumberGroups()
570 formattingPattern, PhoneNumberFormat.RFC3966).split("-"); in getNationalNumberGroups()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java29 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
165 ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) in getOutputForFile()
349 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.E164) : "invalid", in getOutputForSingleNumber()
353 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output); in getOutputForSingleNumber()
356 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) : "invalid", in getOutputForSingleNumber()