Lines Matching refs:PhoneNumberType

19 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> mobileTypes = EnumSet.of(PhoneNumberType.MOBILE,
86 PhoneNumberType.FIXED_LINE_OR_MOBILE);
87 checkNumbersValidAndCorrectType(PhoneNumberType.MOBILE, mobileTypes);
93 Set<PhoneNumberType> tollFreeTypes = EnumSet.of(PhoneNumberType.TOLL_FREE);
94 checkNumbersValidAndCorrectType(PhoneNumberType.TOLL_FREE, tollFreeTypes);
100 Set<PhoneNumberType> premiumRateTypes = EnumSet.of(PhoneNumberType.PREMIUM_RATE);
101 checkNumbersValidAndCorrectType(PhoneNumberType.PREMIUM_RATE, premiumRateTypes);
107 Set<PhoneNumberType> voipTypes = EnumSet.of(PhoneNumberType.VOIP);
108 checkNumbersValidAndCorrectType(PhoneNumberType.VOIP, voipTypes);
114 Set<PhoneNumberType> pagerTypes = EnumSet.of(PhoneNumberType.PAGER);
115 checkNumbersValidAndCorrectType(PhoneNumberType.PAGER, pagerTypes);
121 Set<PhoneNumberType> uanTypes = EnumSet.of(PhoneNumberType.UAN);
122 checkNumbersValidAndCorrectType(PhoneNumberType.UAN, uanTypes);
128 Set<PhoneNumberType> voicemailTypes = EnumSet.of(PhoneNumberType.VOICEMAIL);
129 checkNumbersValidAndCorrectType(PhoneNumberType.VOICEMAIL, voicemailTypes);
135 Set<PhoneNumberType> sharedCostTypes = EnumSet.of(PhoneNumberType.SHARED_COST);
136 checkNumbersValidAndCorrectType(PhoneNumberType.SHARED_COST, sharedCostTypes);