Searched refs:PhoneNumberUtil (Results 1 – 15 of 15) sorted by relevance
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberMatcher.java | 19 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 …]
|
D | AsYouTypeFormatter.java | 58 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance(); 85 Pattern.compile("[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*" + 86 "(\\$\\d" + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*)+"); 184 PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats() 422 PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches()); in isDigitOrLeadingPlusSign() 569 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" + in attemptToExtractIdd() 580 if (accruedInputWithoutFormatting.charAt(0) != PhoneNumberUtil.PLUS_SIGN) { in attemptToExtractIdd() 607 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode)) { in attemptToExtractCountryCallingCode() 627 if (nextChar == PhoneNumberUtil.PLUS_SIGN) { in normalizeAndAccrueDigitsAndPlusSign()
|
D | PhoneNumberUtil.java | 58 public class PhoneNumberUtil { class 63 return PhoneNumberUtil.class.getResourceAsStream(metadataFileName); 67 private static final Logger logger = Logger.getLogger(PhoneNumberUtil.class.getName()); 360 private static PhoneNumberUtil instance = null; 448 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify() 460 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify() 482 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify() 492 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify() 514 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify() 524 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify() [all …]
|
D | ShortNumberInfo.java | 517 number = PhoneNumberUtil.extractPossibleNumber(number); in matchesEmergencyNumberHelper() 518 if (PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) { in matchesEmergencyNumberHelper() 529 String normalizedNumber = PhoneNumberUtil.normalizeDigitsOnly(number); in matchesEmergencyNumberHelper()
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | TestMetadataTestCase.java | 33 protected final PhoneNumberUtil phoneUtil; 39 static PhoneNumberUtil initializePhoneUtilForTesting() { in initializePhoneUtilForTesting() 40 PhoneNumberUtil phoneUtil = new PhoneNumberUtil( in initializePhoneUtilForTesting() 41 TEST_META_DATA_FILE_PREFIX, PhoneNumberUtil.DEFAULT_METADATA_LOADER, in initializePhoneUtilForTesting() 43 PhoneNumberUtil.setInstance(phoneUtil); in initializePhoneUtilForTesting()
|
D | PhoneNumberUtilTest.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat; 141 "no/such/file", "XX", -1, PhoneNumberUtil.DEFAULT_METADATA_LOADER); in testMissingMetadataFileThrowsRuntimeException() 147 phoneUtil.loadMetadataFromFile("no/such/file", PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY, in testMissingMetadataFileThrowsRuntimeException() 148 123, PhoneNumberUtil.DEFAULT_METADATA_LOADER); in testMissingMetadataFileThrowsRuntimeException() 307 assertEquals("1", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken() 311 assertEquals("", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken() 332 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber() 335 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber() 339 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber() 341 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber() [all …]
|
D | ExampleNumbersTest.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 38 private PhoneNumberUtil phoneNumberUtil = 39 PhoneNumberUtil.createInstance(PhoneNumberUtil.DEFAULT_METADATA_LOADER);
|
D | PhoneNumberMatcherTest.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency;
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 20 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() 116 String mobileToken = PhoneNumberUtil.getCountryMobileToken(number.getCountryCode()); in getDescriptionForValidNumber()
|
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberToCarrierMapper.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil; 20 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 37 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
|
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
D | PhonePrefixMap.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil; 39 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
|
D | PrefixTimeZonesMap.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil; 92 PhoneNumberUtil.getInstance().getNationalSignificantNumber(number)); in lookupTimeZonesForNumber()
|
/external/libphonenumber/demo/src/com/google/phonenumbers/ |
D | PhoneNumberParserServlet.java | 25 import com.google.i18n.phonenumbers.PhoneNumberUtil; 26 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat; 27 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 55 private PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberToTimeZonesMapper.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 137 PhoneNumberType numberType = PhoneNumberUtil.getInstance().getNumberType(number); in getTimeZonesForNumber()
|
/external/libphonenumber/ |
D | release_notes.txt | 243 - New method in the PhoneNumberUtil API - isMobileNumberPortableRegion. 290 - New method in the PhoneNumberUtil API - getCountryMobileToken. 598 * Refactoring of the private formatting functions in PhoneNumberUtil to ensure names are more 769 - Enable PhoneNumberUtil to handle all digits, rather than a subset 973 it at startup; instead, do the initialization in PhoneNumberUtil.
|