Home
last modified time | relevance | path

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

12

/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;
155 PhoneNumberUtil.MAX_LENGTH_FOR_NSN + PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE;
161 String punctuation = "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]" + punctuationLimit;
165 String leadClassChars = openingParens + PhoneNumberUtil.PLUS_CHARS;
173 + "(?:" + PhoneNumberUtil.EXTN_PATTERNS_FOR_MATCHING + ")?",
174 PhoneNumberUtil.REGEX_FLAGS);
191 private final PhoneNumberUtil phoneUtil;
232 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher()
[all …]
DAsYouTypeFormatter.java58 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
76 Pattern.compile("[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*"
77 + "\\$1" + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*(\\$\\d"
78 + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*)*");
178 && PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats()
189 && !PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats()
416 && PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches()); in isDigitOrLeadingPlusSign()
438 String formattedNumberDigitsOnly = PhoneNumberUtil.normalizeDiallableCharsOnly(fullOutput); in attemptToFormatAccruedDigits()
576 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" in attemptToExtractIdd()
587 if (accruedInputWithoutFormatting.charAt(0) != PhoneNumberUtil.PLUS_SIGN) { in attemptToExtractIdd()
[all …]
DPhoneNumberUtil.java57 public class PhoneNumberUtil { class
58 private static final Logger logger = Logger.getLogger(PhoneNumberUtil.class.getName());
446 private static PhoneNumberUtil instance = null;
556 PhoneNumberUtil util, in verify()
572 PhoneNumberUtil util, in verify()
598 PhoneNumberUtil util, in verify()
610 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
635 PhoneNumberUtil util, in verify()
647 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
661 PhoneNumberUtil util,
[all …]
DShortNumberInfo.java449 CharSequence possibleNumber = PhoneNumberUtil.extractPossibleNumber(number); in matchesEmergencyNumberHelper()
450 if (PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(possibleNumber).lookingAt()) { in matchesEmergencyNumberHelper()
461 String normalizedNumber = PhoneNumberUtil.normalizeDigitsOnly(possibleNumber); in matchesEmergencyNumberHelper()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberMatcher.java20 import com.android.i18n.phonenumbers.PhoneNumberUtil.Leniency;
21 import com.android.i18n.phonenumbers.PhoneNumberUtil.MatchType;
22 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
156 PhoneNumberUtil.MAX_LENGTH_FOR_NSN + PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE;
162 String punctuation = "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]" + punctuationLimit;
166 String leadClassChars = openingParens + PhoneNumberUtil.PLUS_CHARS;
174 + "(?:" + PhoneNumberUtil.EXTN_PATTERNS_FOR_MATCHING + ")?",
175 PhoneNumberUtil.REGEX_FLAGS);
192 private final PhoneNumberUtil phoneUtil;
233 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher()
[all …]
DAsYouTypeFormatter.java60 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
78 Pattern.compile("[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*"
79 + "\\$1" + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*(\\$\\d"
80 + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*)*");
180 && PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats()
191 && !PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats()
421 && PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches()); in isDigitOrLeadingPlusSign()
443 String formattedNumberDigitsOnly = PhoneNumberUtil.normalizeDiallableCharsOnly(fullOutput); in attemptToFormatAccruedDigits()
582 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" in attemptToExtractIdd()
593 if (accruedInputWithoutFormatting.charAt(0) != PhoneNumberUtil.PLUS_SIGN) { in attemptToExtractIdd()
[all …]
DPhoneNumberUtil.java59 public class PhoneNumberUtil { class
60 private static final Logger logger = Logger.getLogger(PhoneNumberUtil.class.getName());
448 private static PhoneNumberUtil instance = null;
589 PhoneNumberUtil util, in verify()
605 PhoneNumberUtil util, in verify()
631 PhoneNumberUtil util, in verify()
643 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
668 PhoneNumberUtil util, in verify()
680 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
694 PhoneNumberUtil util,
[all …]
DShortNumberInfo.java452 CharSequence possibleNumber = PhoneNumberUtil.extractPossibleNumber(number); in matchesEmergencyNumberHelper()
453 if (PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(possibleNumber).lookingAt()) { in matchesEmergencyNumberHelper()
464 String normalizedNumber = PhoneNumberUtil.normalizeDigitsOnly(possibleNumber); in matchesEmergencyNumberHelper()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
22 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
23 import com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult;
131 private final PhoneNumberUtil phoneNumberUtilWithMissingMetadata =
132 new PhoneNumberUtil(mockedMetadataSource,
368 assertEquals("9", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken()
372 assertEquals("", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken()
447 assertEquals(expectedOutput, PhoneNumberUtil.convertAlphaCharactersInNumber(input)); in testConvertAlphaCharactersInNumber()
454 expectedOutput, PhoneNumberUtil.normalize(inputNumber).toString()); in testNormaliseRemovePunctuation()
461 expectedOutput, PhoneNumberUtil.normalize(inputNumber).toString()); in testNormaliseReplaceAlphaCharacters()
[all …]
DTestMetadataTestCase.java46 protected final PhoneNumberUtil phoneUtil;
49 phoneUtil = new PhoneNumberUtil( in TestMetadataTestCase()
59 PhoneNumberUtil.setInstance(phoneUtil); in setUp()
64 PhoneNumberUtil.setInstance(null); in tearDown()
DExampleNumbersTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
40 private final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance();
195 for (PhoneNumberUtil.PhoneNumberType type : PhoneNumberUtil.PhoneNumberType.values()) { in testEveryTypeHasAnExampleNumber()
/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;
38 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/repackaged/geocoder/src/com/android/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java21 import com.android.i18n.phonenumbers.PhoneNumberUtil;
22 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
40 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
95 || regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) in getRegionDisplayName()
121 String mobileToken = PhoneNumberUtil.getCountryMobileToken(number.getCountryCode()); in getDescriptionForValidNumber()
/external/libphonenumber/demo/src/main/java/com/google/phonenumbers/demo/render/
DResultFileRenderer.java22 import com.google.i18n.phonenumbers.PhoneNumberUtil;
23 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
31 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
DResultRenderer.java25 import com.google.i18n.phonenumbers.PhoneNumberUtil;
26 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
41 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
/external/robolectric/integration_tests/libphonenumber/src/test/java/org/robolectric/integrationtests/libphonenumber/
DClassloadingTest.java5 import com.google.i18n.phonenumbers.PhoneNumberUtil;
24 …String format = PhoneNumberUtil.getInstance().format(phoneNumber, PhoneNumberUtil.PhoneNumberForma… in getResourceAsStream()
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapper.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
34 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
/external/oss-fuzz/projects/libphonenumber/
Dphonefuzz.cc41 …i18n::phonenumbers::PhoneNumberUtil *phone_util = i18n::phonenumbers::PhoneNumberUtil::GetInstance… in LLVMFuzzerTestOneInput()
/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/repackaged/geocoder/src/com/android/i18n/phonenumbers/
DPhoneNumberToTimeZonesMapper.java20 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
139 PhoneNumberType numberType = PhoneNumberUtil.getInstance().getNumberType(number); in getTimeZonesForNumber()
142 } else if (!PhoneNumberUtil.getInstance().isNumberGeographical( in getTimeZonesForNumber()
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java20 import com.android.i18n.phonenumbers.PhoneNumberUtil;
41 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
DPrefixTimeZonesMap.java20 import com.android.i18n.phonenumbers.PhoneNumberUtil;
94 + PhoneNumberUtil.getInstance().getNationalSignificantNumber(number)); in lookupTimeZonesForNumber()
/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/main/java/com/google/phonenumbers/demo/
DResultServlet.java25 import com.google.i18n.phonenumbers.PhoneNumberUtil;
53 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();

12