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

/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
H A DExampleNumbersTest.java19 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
49 private void checkNumbersValidAndCorrectType(PhoneNumberType exampleNumberRequestedType,
50 Set<PhoneNumberType> possibleExpectedTypes) {
60 PhoneNumberType exampleNumberType = phoneNumberUtil.getNumberType(exampleNumber);
67 for (PhoneNumberType type : possibleExpectedTypes) {
77 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE,
78 PhoneNumberType.FIXED_LINE_OR_MOBILE);
79 checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes);
85 Set<PhoneNumberType> mobileType
[all...]
H A DPhoneNumberUtilTest.java321 PhoneNumberUtil.PhoneNumberType.FIXED_LINE));
324 PhoneNumberUtil.PhoneNumberType.MOBILE));
328 PhoneNumberUtil.PhoneNumberType.FIXED_LINE));
330 PhoneNumberUtil.PhoneNumberType.MOBILE));
333 PhoneNumberUtil.PhoneNumberType.MOBILE));
1019 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, phoneUtil.getNumberType(US_PREMIUM));
1023 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
1028 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
1033 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
1038 assertEquals(PhoneNumberUtil.PhoneNumberType
[all...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
H A DPhoneNumberOfflineGeocoder.java21 import com.android.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
169 PhoneNumberType numberType = phoneUtil.getNumberType(number);
170 if (numberType == PhoneNumberType.UNKNOWN) {
192 PhoneNumberType numberType = phoneUtil.getNumberType(number);
193 if (numberType == PhoneNumberType.UNKNOWN) {
206 private boolean canBeGeocoded(PhoneNumberType numberType) {
207 return (numberType == PhoneNumberType.FIXED_LINE ||
208 numberType == PhoneNumberType.MOBILE ||
209 numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
H A DPhoneNumberUtil.java385 public enum PhoneNumberType { enum in class: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
[all...]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
H A Dphonenumberutil.h95 enum PhoneNumberType { enum in class:i18n::phonenumbers::PhoneNumberUtil
386 PhoneNumberType GetNumberType(const PhoneNumber& number) const;
494 PhoneNumberType type,
H A Dphonenumberutil.cc124 PhoneNumberUtil::PhoneNumberType type) {
199 PhoneNumberUtil::PhoneNumberType GetNumberTypeHelper(
1044 PhoneNumberType number_type = GetNumberType(number_no_extension);
1707 PhoneNumberUtil::PhoneNumberType type,
2062 PhoneNumberUtil::PhoneNumberType PhoneNumberUtil::GetNumberType(
2116 PhoneNumberType number_type = GetNumberType(phone_number);

Completed in 126 milliseconds