Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dphonenumberutil.cc61 const char PhoneNumberUtil::kPlusChars[] = "+\xEF\xBC\x8B"; /* "++" */
68 const char PhoneNumberUtil::kValidPunctuation[] =
75 const char PhoneNumberUtil::kCaptureUpToSecondNumberStart[] = "(.*)[\\\\/] *x";
78 const char PhoneNumberUtil::kRegionCodeForNonGeoEntity[] = "001";
124 PhoneNumberUtil::PhoneNumberType type) { in GetNumberDescByType()
126 case PhoneNumberUtil::PREMIUM_RATE: in GetNumberDescByType()
128 case PhoneNumberUtil::TOLL_FREE: in GetNumberDescByType()
130 case PhoneNumberUtil::MOBILE: in GetNumberDescByType()
132 case PhoneNumberUtil::FIXED_LINE: in GetNumberDescByType()
133 case PhoneNumberUtil::FIXED_LINE_OR_MOBILE: in GetNumberDescByType()
[all …]
Dphonenumbermatcher.h47 class PhoneNumberUtil; variable
77 PhoneNumberMatcher(const PhoneNumberUtil& util,
135 ResultCallback4<bool, const PhoneNumberUtil&, const PhoneNumber&,
144 const PhoneNumberUtil& util,
156 const PhoneNumberUtil& util);
171 const PhoneNumberUtil& phone_util_;
Dphonenumbermatcher.cc81 const PhoneNumberUtil& util) { in ContainsOnlyValidXChars()
101 != PhoneNumberUtil::NSN_MATCH) { in ContainsOnlyValidXChars()
118 const PhoneNumberUtil& util, in AllNumberGroupsRemainGrouped()
273 digit_block_limit_(PhoneNumberUtil::kMaxLengthForNsn + in PhoneNumberMatcherRegExps()
274 PhoneNumberUtil::kMaxLengthCountryCode), in PhoneNumberMatcherRegExps()
276 punctuation_(StrCat("[", PhoneNumberUtil::kValidPunctuation, "]", in PhoneNumberMatcherRegExps()
279 lead_class_chars_(StrCat(opening_parens_, PhoneNumberUtil::kPlusChars)), in PhoneNumberMatcherRegExps()
284 PhoneNumberUtil::GetInstance()->GetExtnPatternsForMatching(), in PhoneNumberMatcherRegExps()
307 PhoneNumberUtil::kCaptureUpToSecondNumberStart)), in PhoneNumberMatcherRegExps()
357 PhoneNumberMatcher::PhoneNumberMatcher(const PhoneNumberUtil& util, in PhoneNumberMatcher()
[all …]
Dphonenumberutil.h62 class PhoneNumberUtil : public Singleton<PhoneNumberUtil> {
72 friend class Singleton<PhoneNumberUtil>;
75 ~PhoneNumberUtil();
172 static PhoneNumberUtil* GetInstance();
642 PhoneNumberUtil();
699 PhoneNumberUtil::PhoneNumberFormat number_format,
706 PhoneNumberUtil::PhoneNumberFormat number_format,
794 DISALLOW_COPY_AND_ASSIGN(PhoneNumberUtil);
Dasyoutypeformatter.h52 class PhoneNumberUtil; variable
199 const PhoneNumberUtil& phone_util_;
230 friend class PhoneNumberUtil; variable
Dshortnumberinfo.h35 class PhoneNumberUtil; variable
59 const PhoneNumberUtil& phone_util_;
Dshortnumberinfo.cc48 : phone_util_(*PhoneNumberUtil::GetInstance()), in ShortNumberInfo()
Dasyoutypeformatter.cc138 phone_util_(*PhoneNumberUtil::GetInstance()), in AsYouTypeFormatter()
693 if (PhoneNumberUtil::kRegionCodeForNonGeoEntity == new_region_code) { in AttemptToExtractCountryCode()
/external/chromium_org/components/autofill/core/browser/
Dphone_number_i18n.cc17 using i18n::phonenumbers::PhoneNumberUtil;
33 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); in IsValidPhoneNumber()
59 PhoneNumberUtil::PhoneNumberFormat format = in FormatValidatedNumber()
61 PhoneNumberUtil::NATIONAL : in FormatValidatedNumber()
62 PhoneNumberUtil::INTERNATIONAL; in FormatValidatedNumber()
64 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); in FormatValidatedNumber()
111 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); in ParsePhoneNumber()
117 PhoneNumberUtil::NO_PARSING_ERROR) { in ParsePhoneNumber()
206 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); in PhoneNumbersMatch()
212 PhoneNumberUtil::NO_PARSING_ERROR) { in PhoneNumbersMatch()
[all …]
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DTestMetadataTestCase.java33 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()
DPhoneNumberUtilTest.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
130 "no/such/file", "XX", -1, PhoneNumberUtil.DEFAULT_METADATA_LOADER); in testMissingMetadataFileThrowsRuntimeException()
136 phoneUtil.loadMetadataFromFile("no/such/file", PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY, in testMissingMetadataFileThrowsRuntimeException()
137 123, PhoneNumberUtil.DEFAULT_METADATA_LOADER); in testMissingMetadataFileThrowsRuntimeException()
296 assertEquals("1", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken()
300 assertEquals("", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion( in testGetCountryMobileToken()
321 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
324 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
328 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
330 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
[all …]
DExampleNumbersTest.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
38 private PhoneNumberUtil phoneNumberUtil =
39 PhoneNumberUtil.createInstance(PhoneNumberUtil.DEFAULT_METADATA_LOADER);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhoneNumberMatcher.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil.Leniency;
20 import com.android.i18n.phonenumbers.PhoneNumberUtil.MatchType;
21 import com.android.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 + "]*)+");
184 PhoneNumberUtil.formattingRuleHasFirstGroupOnly( in getAvailableFormats()
419 PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches()); in isDigitOrLeadingPlusSign()
566 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" + in attemptToExtractIdd()
577 if (accruedInputWithoutFormatting.charAt(0) != PhoneNumberUtil.PLUS_SIGN) { in attemptToExtractIdd()
604 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode)) { in attemptToExtractCountryCallingCode()
624 if (nextChar == PhoneNumberUtil.PLUS_SIGN) { in normalizeAndAccrueDigitsAndPlusSign()
DShortNumberInfo.java43 new ShortNumberInfo(PhoneNumberUtil.getInstance());
68 private final PhoneNumberUtil phoneUtil;
71 ShortNumberInfo(PhoneNumberUtil util) { in ShortNumberInfo()
382 number = PhoneNumberUtil.extractPossibleNumber(number); in matchesEmergencyNumberHelper()
383 if (PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) { in matchesEmergencyNumberHelper()
395 String normalizedNumber = PhoneNumberUtil.normalizeDigitsOnly(number); in matchesEmergencyNumberHelper()
DPhoneNumberUtil.java58 public class PhoneNumberUtil { class
62 return PhoneNumberUtil.class.getResourceAsStream(metadataFileName);
66 private static final Logger logger = Logger.getLogger(PhoneNumberUtil.class.getName());
359 private static PhoneNumberUtil instance = null;
447 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
459 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
481 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
490 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
512 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
521 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
[all …]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java20 import com.android.i18n.phonenumbers.PhoneNumberUtil;
21 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
38 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
75 regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) in getRegionDisplayName()
99 String mobileToken = PhoneNumberUtil.getCountryMobileToken(number.getCountryCode()); in getDescriptionForValidNumber()
/external/chromium_org/content/renderer/android/
Dphone_number_detector.cc20 using i18n::phonenumbers::PhoneNumberUtil;
71 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); in FindContent()
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/geocoding/
Darea_code_map.h34 class PhoneNumberUtil; variable
66 const PhoneNumberUtil& phone_util_;
Dphonenumber_offline_geocoder.h37 class PhoneNumberUtil; variable
144 const PhoneNumberUtil* phone_util_;
Dphonenumber_offline_geocoder.cc70 phone_util_ = PhoneNumberUtil::GetInstance(); in Init()
132 PhoneNumberUtil::kRegionCodeForNonGeoEntity) == 0) { in GetRegionDisplayName()
Darea_code_map.cc30 : phone_util_(*PhoneNumberUtil::GetInstance()) { in AreaCodeMap()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil;
39 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
DPrefixTimeZonesMap.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil;
92 PhoneNumberUtil.getInstance().getNationalSignificantNumber(number)); in lookupTimeZonesForNumber()
/external/chromium_org/third_party/libphonenumber/
DREADME.chromium33 PhoneNumberUtil and the other singletons should be accessed from a single

12