Searched refs:PhoneNumberType (Results 1 – 7 of 7) sorted by relevance
19 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 …]
351 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 …]
20 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()
21 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()
398 public enum PhoneNumberType { enum in PhoneNumberUtil811 PhoneNumberType type = getNumberType(number);813 if (type == PhoneNumberType.MOBILE884 if (getNumberType(number) == PhoneNumberType.MOBILE) {1046 public boolean isNumberGeographical(PhoneNumberType numberType, int countryCallingCode) {1047 return numberType == PhoneNumberType.FIXED_LINE1048 || numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE1050 && numberType == PhoneNumberType.MOBILE);1289 PhoneNumberType numberType = getNumberType(numberNoExt);1290 boolean isValidNumber = (numberType != PhoneNumberType.UNKNOWN);[all …]
19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;137 PhoneNumberType numberType = PhoneNumberUtil.getInstance().getNumberType(number); in getTimeZonesForNumber()138 if (numberType == PhoneNumberType.UNKNOWN) { in getTimeZonesForNumber()
30 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()