Home
last modified time | relevance | path

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

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DExampleNumbersTest.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
50 private void checkNumbersValidAndCorrectType(PhoneNumberType exampleNumberRequestedType, in checkNumbersValidAndCorrectType()
51 Set<PhoneNumberType> possibleExpectedTypes) { in checkNumbersValidAndCorrectType()
61 PhoneNumberType exampleNumberType = phoneNumberUtil.getNumberType(exampleNumber); in checkNumbersValidAndCorrectType()
68 for (PhoneNumberType type : possibleExpectedTypes) { in checkNumbersValidAndCorrectType()
78 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE, in testFixedLine()
79 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testFixedLine()
80 checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes); in testFixedLine()
86 Set<PhoneNumberType> mobileTypes = EnumSet.of(PhoneNumberType.MOBILE, in testMobile()
87 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testMobile()
[all …]
DPhoneNumberUtilTest.java351 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
354 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
356 PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
358 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
361 PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumber()
384 assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.FIXED_LINE)); in testGetExampleNumberWithoutRegion()
385 assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.MOBILE)); in testGetExampleNumberWithoutRegion()
386 assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE)); in testGetExampleNumberWithoutRegion()
1069 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, phoneUtil.getNumberType(US_PREMIUM)); in testIsPremiumRate()
1073 assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, in testIsPremiumRate()
[all …]
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapper.java20 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
92 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getNameForNumber()
119 private boolean isMobile(PhoneNumberType numberType) { in isMobile()
120 return (numberType == PhoneNumberType.MOBILE in isMobile()
121 || numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE in isMobile()
122 || numberType == PhoneNumberType.PAGER); in isMobile()
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
189 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getDescriptionForNumber()
190 if (numberType == PhoneNumberType.UNKNOWN) { in getDescriptionForNumber()
212 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getDescriptionForNumber()
213 if (numberType == PhoneNumberType.UNKNOWN) { in getDescriptionForNumber()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java398 public enum PhoneNumberType { enum in PhoneNumberUtil
811 PhoneNumberType type = getNumberType(number);
813 if (type == PhoneNumberType.MOBILE
884 if (getNumberType(number) == PhoneNumberType.MOBILE) {
1046 public boolean isNumberGeographical(PhoneNumberType numberType, int countryCallingCode) {
1047 return numberType == PhoneNumberType.FIXED_LINE
1048 || numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE
1050 && numberType == PhoneNumberType.MOBILE);
1289 PhoneNumberType numberType = getNumberType(numberNoExt);
1290 boolean isValidNumber = (numberType != PhoneNumberType.UNKNOWN);
[all …]
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/
DPhoneNumberToTimeZonesMapper.java19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
137 PhoneNumberType numberType = PhoneNumberUtil.getInstance().getNumberType(number); in getTimeZonesForNumber()
138 if (numberType == PhoneNumberType.UNKNOWN) { in getTimeZonesForNumber()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java30 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
290 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getOutputForSingleNumber()
406 if (numberType == PhoneNumberType.MOBILE || in getOutputForSingleNumber()
407 numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE || in getOutputForSingleNumber()
408 numberType == PhoneNumberType.PAGER) { in getOutputForSingleNumber()