Home
last modified time | relevance | path

Searched refs:PhoneNumberUtil (Results 1 – 18 of 18) sorted by relevance

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
20 import com.google.i18n.phonenumbers.PhoneNumberUtil.MatchType;
21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
154 PhoneNumberUtil.MAX_LENGTH_FOR_NSN + PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE;
160 String punctuation = "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]" + punctuationLimit;
164 String leadClassChars = openingParens + PhoneNumberUtil.PLUS_CHARS;
172 + "(?:" + PhoneNumberUtil.EXTN_PATTERNS_FOR_MATCHING + ")?",
173 PhoneNumberUtil.REGEX_FLAGS);
190 private final PhoneNumberUtil phoneUtil;
225 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher()
[all …]
DAsYouTypeFormatter.java58 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
85 Pattern.compile("[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*"
86 + "(\\$\\d" + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*)+");
185 || PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats()
424 && PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches()); in isDigitOrLeadingPlusSign()
572 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" in attemptToExtractIdd()
583 if (accruedInputWithoutFormatting.charAt(0) != PhoneNumberUtil.PLUS_SIGN) { in attemptToExtractIdd()
610 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode)) { in attemptToExtractCountryCallingCode()
630 if (nextChar == PhoneNumberUtil.PLUS_SIGN) { in normalizeAndAccrueDigitsAndPlusSign()
DPhoneNumberUtil.java53 public class PhoneNumberUtil { class
54 private static final Logger logger = Logger.getLogger(PhoneNumberUtil.class.getName());
372 private static PhoneNumberUtil instance = null;
476 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
488 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
510 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
520 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
542 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
552 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
563 abstract boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util);
[all …]
DShortNumberInfo.java437 number = PhoneNumberUtil.extractPossibleNumber(number); in matchesEmergencyNumberHelper()
438 if (PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) { in matchesEmergencyNumberHelper()
449 String normalizedNumber = PhoneNumberUtil.normalizeDigitsOnly(number); in matchesEmergencyNumberHelper()
DMultiFileMetadataSourceImpl.java84 && PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCodes.get(0))); in isNonGeographical()
DMetadataManager.java134 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode)) { in load()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
313 assertEquals("1", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken()
317 assertEquals("", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken()
351 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
354 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
356 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
358 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
361 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
384 assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumberWithoutRegion()
385 assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumberWithoutRegion()
[all …]
DTestMetadataTestCase.java40 protected final PhoneNumberUtil phoneUtil;
43 phoneUtil = new PhoneNumberUtil(new MultiFileMetadataSourceImpl(TEST_METADATA_FILE_PREFIX, in TestMetadataTestCase()
51 PhoneNumberUtil.setInstance(phoneUtil); in setUp()
56 PhoneNumberUtil.setInstance(null); in tearDown()
DExampleNumbersTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
40 private PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance();
191 for (PhoneNumberUtil.PhoneNumberType type : PhoneNumberUtil.PhoneNumberType.values()) { in testEveryTypeHasAnExampleNumber()
DPhoneNumberMatcherTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java20 import com.google.i18n.phonenumbers.PhoneNumberUtil;
21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
39 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
92 || regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) in getRegionDisplayName()
118 String mobileToken = PhoneNumberUtil.getCountryMobileToken(number.getCountryCode()); in getDescriptionForValidNumber()
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapper.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil;
20 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
37 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/
DPhoneNumberToTimeZonesMapper.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
137 PhoneNumberType numberType = PhoneNumberUtil.getInstance().getNumberType(number); in getTimeZonesForNumber()
140 } else if (!PhoneNumberUtil.getInstance().isNumberGeographical( in getTimeZonesForNumber()
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil;
39 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
DPrefixTimeZonesMap.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil;
92 + PhoneNumberUtil.getInstance().getNationalSignificantNumber(number)); in lookupTimeZonesForNumber()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java28 import com.google.i18n.phonenumbers.PhoneNumberUtil;
29 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
30 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
62 private PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
/external/libphonenumber/
Dbuild.gradle17 'com/google/i18n/phonenumbers/PhoneNumberUtil.java',
Drelease_notes.txt10 `PhoneNumberUtil.createInstance(MetadataSource)` to `private`. MetadataSource
706 - New method in the PhoneNumberUtil API - isMobileNumberPortableRegion.
753 - New method in the PhoneNumberUtil API - getCountryMobileToken.
1061 * Refactoring of the private formatting functions in PhoneNumberUtil to ensure names are more
1232 - Enable PhoneNumberUtil to handle all digits, rather than a subset
1436 it at startup; instead, do the initialization in PhoneNumberUtil.