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;
409 assertEquals("650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
410 assertEquals("+1 650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
412 assertEquals("800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
413 assertEquals("+1 800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
415 assertEquals("900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
416 assertEquals("+1 900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
417 assertEquals("tel:+1-900-253-0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.RFC3966)); in testFormatUSNumber()
421 phoneUtil.format(US_SPOOF_WITH_RAW_INPUT, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
422 assertEquals("0", phoneUtil.format(US_SPOOF, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
[all …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java376 public enum PhoneNumberFormat { enum in PhoneNumberUtil
914 PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL);
1099 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1120 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1127 if (numberFormat == PhoneNumberFormat.E164) {
1131 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164,
1164 PhoneNumberFormat numberFormat,
1242 PhoneNumberFormat.NATIONAL, carrierCode));
1243 maybeAppendFormattedExtension(number, metadata, PhoneNumberFormat.NATIONAL, formattedNumber);
1244 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.java26 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
143 ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) in getOutputForFile()
221 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.E164) : "invalid", in getOutputForSingleNumber()
225 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output); in getOutputForSingleNumber()
228 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) : "invalid", in getOutputForSingleNumber()