/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 + "]*)+"); 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()
|
D | PhoneNumberUtil.java | 53 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 …]
|
D | ShortNumberInfo.java | 437 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()
|
D | MultiFileMetadataSourceImpl.java | 84 && PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCodes.get(0))); in isNonGeographical()
|
D | MetadataManager.java | 134 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode)) { in load()
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 19 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 …]
|
D | TestMetadataTestCase.java | 40 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()
|
D | ExampleNumbersTest.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 40 private PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); 191 for (PhoneNumberUtil.PhoneNumberType type : PhoneNumberUtil.PhoneNumberType.values()) { in testEveryTypeHasAnExampleNumber()
|
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() 118 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/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() 140 } else if (!PhoneNumberUtil.getInstance().isNumberGeographical( in getTimeZonesForNumber()
|
/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 | 28 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/ |
D | build.gradle | 17 'com/google/i18n/phonenumbers/PhoneNumberUtil.java',
|
D | release_notes.txt | 10 `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.
|