/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
TestMetadataTestCase.java | 22 * Root class for PhoneNumberUtil tests that depend on the test metadata file. 34 protected final PhoneNumberUtil phoneUtil; 40 static PhoneNumberUtil initializePhoneUtilForTesting() { 41 PhoneNumberUtil.resetInstance(); 42 PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance(
|
PhoneNumberUtilTest.java | 19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat; 30 * Unit tests for PhoneNumberUtil.java 137 "no/such/file", PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY, 123); 312 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); 315 PhoneNumberUtil.PhoneNumberType.MOBILE)); 319 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); 321 PhoneNumberUtil.PhoneNumberType.MOBILE)); 324 PhoneNumberUtil.PhoneNumberType.MOBILE)); 339 assertEquals(expectedOutput, PhoneNumberUtil.convertAlphaCharactersInNumber(input)); 347 PhoneNumberUtil.normalize(inputNumber)) [all...] |
ExampleNumbersTest.java | 19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 40 private PhoneNumberUtil phoneNumberUtil; 45 PhoneNumberUtil.resetInstance(); 46 phoneNumberUtil = PhoneNumberUtil.getInstance(); 68 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { 70 phoneNumberUtil.getExampleNumberForType(regionCode, exampleNumberRequestedType); 72 if (!phoneNumberUtil.isValidNumber(exampleNumber)) { 77 PhoneNumberType exampleNumberType = phoneNumberUtil.getNumberType(exampleNumber) [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/geocoding/ |
area_code_map.h | 34 class PhoneNumberUtil; 66 const PhoneNumberUtil& phone_util_;
|
phonenumber_offline_geocoder.h | 37 class PhoneNumberUtil; 144 const PhoneNumberUtil* phone_util_;
|
area_code_map.cc | 23 #include "phonenumbers/phonenumberutil.h" 30 : phone_util_(*PhoneNumberUtil::GetInstance()) {
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
ShortNumberUtil.java | 25 * most commercial short numbers are not handled here, but by the PhoneNumberUtil. 31 private final PhoneNumberUtil phoneUtil; 34 phoneUtil = PhoneNumberUtil.getInstance(); 38 ShortNumberUtil(PhoneNumberUtil util) { 73 number = PhoneNumberUtil.extractPossibleNumber(number); 74 if (PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) { 86 String normalizedNumber = PhoneNumberUtil.normalizeDigitsOnly(number);
|
PhoneNumberMatcher.java | 19 import com.android.i18n.phonenumbers.PhoneNumberUtil.Leniency; 20 import com.android.i18n.phonenumbers.PhoneNumberUtil.MatchType; 21 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat; 35 * Instances can be created using the {@linkplain PhoneNumberUtil#findNumbers factory methods} in 36 * {@link PhoneNumberUtil}. 48 * {@code PhoneNumberUtil.VALID_PHONE_NUMBER}, but with the following differences: 134 PhoneNumberUtil.MAX_LENGTH_FOR_NSN + PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE; 140 String punctuation = "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]" + punctuationLimit; 144 String leadClassChars = openingParens + PhoneNumberUtil.PLUS_CHARS [all...] |
AsYouTypeFormatter.java | 32 * {@link PhoneNumberUtil#getAsYouTypeFormatter}. After that, digits can be added by invoking 58 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance(); 85 Pattern.compile("[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*" + 86 "(\\$\\d" + "[" + PhoneNumberUtil.VALID_PUNCTUATION + "]*)+"); 123 * PhoneNumberUtil#getAsYouTypeFormatter}. 411 PhoneNumberUtil.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches()); 550 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" + 561 if (accruedInputWithoutFormatting.charAt(0) != PhoneNumberUtil.PLUS_SIGN) { 588 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode)) [all...] |
/external/chromium_org/components/autofill/core/browser/ |
phone_number_i18n.cc | 17 using i18n::phonenumbers::PhoneNumberUtil; 33 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); 59 PhoneNumberUtil::PhoneNumberFormat format = 61 PhoneNumberUtil::NATIONAL : 62 PhoneNumberUtil::INTERNATIONAL; 64 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance(); 98 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance() [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
phonenumbermatcher.h | 47 class PhoneNumberUtil; 77 PhoneNumberMatcher(const PhoneNumberUtil& util, 126 // Parses a phone number from the candidate using PhoneNumberUtil::Parse() and 135 ResultCallback4<bool, const PhoneNumberUtil&, const PhoneNumber&, 144 const PhoneNumberUtil& util, 156 const PhoneNumberUtil& util); 171 const PhoneNumberUtil& phone_util_;
|
shortnumberinfo.h | 17 // but by the phonenumberutil. 35 class PhoneNumberUtil; 59 const PhoneNumberUtil& phone_util_;
|
phonenumberutil.cc | 18 #include "phonenumbers/phonenumberutil.h" 61 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) { 126 case PhoneNumberUtil::PREMIUM_RATE: 128 case PhoneNumberUtil::TOLL_FREE: 130 case PhoneNumberUtil::MOBILE: 132 case PhoneNumberUtil::FIXED_LINE [all...] |
asyoutypeformatter.h | 18 // method of the PhoneNumberUtil. After that digits can be added by invoking the 52 class PhoneNumberUtil; 85 // PhoneNumberUtil::GetAsYouTypeFormatter(). 199 const PhoneNumberUtil& phone_util_; 230 friend class PhoneNumberUtil;
|
phonenumbermatcher.cc | 49 #include "phonenumbers/phonenumberutil.h" 81 const PhoneNumberUtil& util) { 101 != PhoneNumberUtil::NSN_MATCH) { 118 const PhoneNumberUtil& util, 273 digit_block_limit_(PhoneNumberUtil::kMaxLengthForNsn + 274 PhoneNumberUtil::kMaxLengthCountryCode), 276 punctuation_(StrCat("[", PhoneNumberUtil::kValidPunctuation, "]", 279 lead_class_chars_(StrCat(opening_parens_, PhoneNumberUtil::kPlusChars)), 284 PhoneNumberUtil::GetInstance()->GetExtnPatternsForMatching(), 307 PhoneNumberUtil::kCaptureUpToSecondNumberStart)) [all...] |
phonenumberutil.h | 62 class PhoneNumberUtil : public Singleton<PhoneNumberUtil> { 72 friend class Singleton<PhoneNumberUtil>; 75 ~PhoneNumberUtil(); 165 // Gets a PhoneNumberUtil instance to carry out international phone number 170 // The PhoneNumberUtil is implemented as a singleton. Therefore, calling 172 static PhoneNumberUtil* GetInstance(); 207 // const PhoneNumberUtil& phone_util(*PhoneNumberUtil::GetInstance()); 250 // const PhoneNumberUtil& phone_util(*PhoneNumberUtil::GetInstance()) [all...] |
/external/chromium_org/content/renderer/android/ |
phone_number_detector.cc | 20 using i18n::phonenumbers::PhoneNumberUtil; 71 PhoneNumberUtil* phone_util = PhoneNumberUtil::GetInstance();
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GeoUtil.java | 24 import com.android.i18n.phonenumbers.PhoneNumberUtil; 54 final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); 59 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context));
|
MoreContactUtils.java | 20 import com.android.i18n.phonenumbers.PhoneNumberUtil; 74 final PhoneNumberUtil util = PhoneNumberUtil.getInstance(); 85 final PhoneNumberUtil.MatchType result = util.isNumberMatch(dataPart1, dataPart2);
|
/packages/apps/Mms/src/com/android/mms/util/ |
AddressUtils.java | 27 import com.android.i18n.phonenumbers.PhoneNumberUtil; 36 private static PhoneNumberUtil mPhoneNumberUtil; 81 mPhoneNumberUtil = PhoneNumberUtil.getInstance();
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
PhoneNumberTestService.java | 27 import com.android.i18n.phonenumbers.PhoneNumberUtil; 28 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat; 100 final PhoneNumberUtil util = PhoneNumberUtil.getInstance(); 109 Log.i(TAG, " PhoneNumberUtil.format(parse(" + number + ", " + country + "), " + format
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DefaultCallLogInsertionHelper.java | 24 import com.android.i18n.phonenumbers.PhoneNumberUtil; 47 private PhoneNumberUtil mPhoneNumberUtil; 83 private synchronized PhoneNumberUtil getPhoneNumberUtil() { 85 mPhoneNumberUtil = PhoneNumberUtil.getInstance();
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/ |
PhoneNumberOfflineGeocoder.java | 19 import com.android.i18n.phonenumbers.PhoneNumberUtil; 20 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 43 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance(); 142 regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) 250 * A similar method is implemented as PhoneNumberUtil.isNumberGeographical, which performs a
|
AreaCodeMap.java | 19 import com.android.i18n.phonenumbers.PhoneNumberUtil; 39 private final PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
|
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberFormattingTextWatcher.java | 20 import com.android.i18n.phonenumbers.PhoneNumberUtil; 73 mFormatter = PhoneNumberUtil.getInstance().getAsYouTypeFormatter(countryCode);
|