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;
66 private void checkNumbersValidAndCorrectType(PhoneNumberType exampleNumberRequestedType, in checkNumbersValidAndCorrectType()
67 Set<PhoneNumberType> possibleExpectedTypes) { in checkNumbersValidAndCorrectType()
77 PhoneNumberType exampleNumberType = phoneNumberUtil.getNumberType(exampleNumber); in checkNumbersValidAndCorrectType()
84 for (PhoneNumberType type : possibleExpectedTypes) { in checkNumbersValidAndCorrectType()
94 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE, in testFixedLine()
95 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testFixedLine()
96 checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes); in testFixedLine()
102 Set<PhoneNumberType> mobileTypes = EnumSet.of(PhoneNumberType.MOBILE, in testMobile()
103 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testMobile()
[all …]
DPhoneNumberUtilTest.java312 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
315 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
319 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
321 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
324 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
962 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, phoneUtil.getNumberType(US_PREMIUM)); in testIsPremiumRate()
966 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
971 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
976 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
981 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
[all …]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java20 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
217 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getDescriptionForNumber()
218 if (numberType == PhoneNumberType.UNKNOWN) { in getDescriptionForNumber()
240 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getDescriptionForNumber()
241 if (numberType == PhoneNumberType.UNKNOWN) { in getDescriptionForNumber()
254 private boolean canBeGeocoded(PhoneNumberType numberType) { in canBeGeocoded()
255 return (numberType == PhoneNumberType.FIXED_LINE || in canBeGeocoded()
256 numberType == PhoneNumberType.MOBILE || in canBeGeocoded()
257 numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE); in canBeGeocoded()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java401 public enum PhoneNumberType { enum in PhoneNumberUtil
863 getNumberType(number) == PhoneNumberType.MOBILE) {
972 PhoneNumberType numberType = getNumberType(phoneNumber);
975 return numberType == PhoneNumberType.FIXED_LINE ||
976 numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE;
1211 PhoneNumberType numberType = getNumberType(numberNoExt);
1213 (numberType == PhoneNumberType.FIXED_LINE) || (numberType == PhoneNumberType.MOBILE) ||
1214 (numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE);
1216 if (regionCode.equals("CO") && numberType == PhoneNumberType.FIXED_LINE) {
1743 return getExampleNumberForType(regionCode, 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()