Home
last modified time | relevance | path

Searched refs:PhoneNumberType (Results 1 – 6 of 6) sorted by relevance

/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DExampleNumbersTest.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
49 private void checkNumbersValidAndCorrectType(PhoneNumberType exampleNumberRequestedType, in checkNumbersValidAndCorrectType()
50 Set<PhoneNumberType> possibleExpectedTypes) { in checkNumbersValidAndCorrectType()
60 PhoneNumberType exampleNumberType = phoneNumberUtil.getNumberType(exampleNumber); in checkNumbersValidAndCorrectType()
67 for (PhoneNumberType type : possibleExpectedTypes) { in checkNumbersValidAndCorrectType()
77 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE, in testFixedLine()
78 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testFixedLine()
79 checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes); in testFixedLine()
85 Set<PhoneNumberType> mobileTypes = EnumSet.of(PhoneNumberType.MOBILE, in testMobile()
86 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testMobile()
[all …]
DPhoneNumberUtilTest.java321 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()
333 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
1019 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, phoneUtil.getNumberType(US_PREMIUM)); in testIsPremiumRate()
1023 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
1028 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
1033 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
1038 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
[all …]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java21 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
169 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getDescriptionForNumber()
170 if (numberType == PhoneNumberType.UNKNOWN) { in getDescriptionForNumber()
192 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getDescriptionForNumber()
193 if (numberType == PhoneNumberType.UNKNOWN) { in getDescriptionForNumber()
206 private boolean canBeGeocoded(PhoneNumberType numberType) { in canBeGeocoded()
207 return (numberType == PhoneNumberType.FIXED_LINE || in canBeGeocoded()
208 numberType == PhoneNumberType.MOBILE || in canBeGeocoded()
209 numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE); in canBeGeocoded()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java385 public enum PhoneNumberType { enum in PhoneNumberUtil
920 if (getNumberType(number) == PhoneNumberType.MOBILE) {
1061 PhoneNumberType numberType = getNumberType(phoneNumber);
1064 return numberType == PhoneNumberType.FIXED_LINE ||
1065 numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE;
1300 PhoneNumberType numberType = getNumberType(numberNoExt);
1301 boolean isValidNumber = (numberType != PhoneNumberType.UNKNOWN);
1304 (numberType == PhoneNumberType.FIXED_LINE) || (numberType == PhoneNumberType.MOBILE) ||
1305 (numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE);
1307 if (regionCode.equals("CO") && numberType == PhoneNumberType.FIXED_LINE) {
[all …]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dphonenumberutil.h95 enum PhoneNumberType { enum
386 PhoneNumberType GetNumberType(const PhoneNumber& number) const;
494 PhoneNumberType type,
Dphonenumberutil.cc124 PhoneNumberUtil::PhoneNumberType type) { in GetNumberDescByType()
199 PhoneNumberUtil::PhoneNumberType GetNumberTypeHelper( in GetNumberTypeHelper()
1044 PhoneNumberType number_type = GetNumberType(number_no_extension); in FormatNumberForMobileDialing()
1707 PhoneNumberUtil::PhoneNumberType type, in GetExampleNumberForType()
2062 PhoneNumberUtil::PhoneNumberType PhoneNumberUtil::GetNumberType( in GetNumberType()
2116 PhoneNumberType number_type = GetNumberType(phone_number); in IsNumberGeographical()