/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | ExampleNumbersTest.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 54 private void checkNumbersValidAndCorrectType(PhoneNumberType exampleNumberRequestedType, in checkNumbersValidAndCorrectType() 55 Set<PhoneNumberType> possibleExpectedTypes) { in checkNumbersValidAndCorrectType() 65 PhoneNumberType exampleNumberType = phoneNumberUtil.getNumberType(exampleNumber); in checkNumbersValidAndCorrectType() 72 for (PhoneNumberType type : possibleExpectedTypes) { in checkNumbersValidAndCorrectType() 82 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE, in testFixedLine() 83 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testFixedLine() 84 checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes); in testFixedLine() 90 Set<PhoneNumberType> mobileTypes = EnumSet.of(PhoneNumberType.MOBILE, in testMobile() 91 PhoneNumberType.FIXED_LINE_OR_MOBILE); in testMobile() [all …]
|
D | PhoneNumberUtilTest.java | 22 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 167 .contains(PhoneNumberType.FIXED_LINE)); in testGetSupportedTypesForRegion() 170 .contains(PhoneNumberType.MOBILE)); in testGetSupportedTypesForRegion() 173 .contains(PhoneNumberType.UNKNOWN)); in testGetSupportedTypesForRegion() 177 .contains(PhoneNumberType.FIXED_LINE)); in testGetSupportedTypesForRegion() 179 .contains(PhoneNumberType.MOBILE)); in testGetSupportedTypesForRegion() 181 .contains(PhoneNumberType.FIXED_LINE_OR_MOBILE)); in testGetSupportedTypesForRegion() 191 Set<PhoneNumberType> typesFor979 = phoneUtil.getSupportedTypesForNonGeoEntity(979); in testGetSupportedTypesForNonGeoEntity() 192 assertTrue(typesFor979.contains(PhoneNumberType.PREMIUM_RATE)); in testGetSupportedTypesForNonGeoEntity() 193 assertFalse(typesFor979.contains(PhoneNumberType.MOBILE)); in testGetSupportedTypesForNonGeoEntity() [all …]
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | demo.js | 169 case i18n.phonenumbers.PhoneNumberType.FIXED_LINE: 171 case i18n.phonenumbers.PhoneNumberType.MOBILE: 173 case i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE: 175 case i18n.phonenumbers.PhoneNumberType.TOLL_FREE: 177 case i18n.phonenumbers.PhoneNumberType.PREMIUM_RATE: 179 case i18n.phonenumbers.PhoneNumberType.SHARED_COST: 181 case i18n.phonenumbers.PhoneNumberType.VOIP: 183 case i18n.phonenumbers.PhoneNumberType.PERSONAL_NUMBER: 185 case i18n.phonenumbers.PhoneNumberType.PAGER: 187 case i18n.phonenumbers.PhoneNumberType.UAN: [all …]
|
D | phonenumberutil.js | 985 i18n.phonenumbers.PhoneNumberType = { 1366 if (this.getNumberType(number) == i18n.phonenumbers.PhoneNumberType.MOBILE) { 1504 goog.object.forEach(i18n.phonenumbers.PhoneNumberType, 1506 if (type == i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE || 1507 type == i18n.phonenumbers.PhoneNumberType.UNKNOWN) { 1643 return numberType == i18n.phonenumbers.PhoneNumberType.FIXED_LINE || 1644 numberType == i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE || 1647 numberType == i18n.phonenumbers.PhoneNumberType.MOBILE); 1980 var isValidNumber = (numberType != i18n.phonenumbers.PhoneNumberType.UNKNOWN); 1984 (numberType == i18n.phonenumbers.PhoneNumberType.FIXED_LINE) || [all …]
|
D | phonenumberutil_test.js | 485 var PNT = i18n.phonenumbers.PhoneNumberType; 506 var PNT = i18n.phonenumbers.PhoneNumberType; 554 var PNT = i18n.phonenumbers.PhoneNumberType; 1575 var PNT = i18n.phonenumbers.PhoneNumberType; 1603 var PNT = i18n.phonenumbers.PhoneNumberType; 1630 var PNT = i18n.phonenumbers.PhoneNumberType; 1644 var PNT = i18n.phonenumbers.PhoneNumberType; 1652 var PNT = i18n.phonenumbers.PhoneNumberType; 1665 var PNT = i18n.phonenumbers.PhoneNumberType; 1674 var PNT = i18n.phonenumbers.PhoneNumberType; [all …]
|
/third_party/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberToCarrierMapper.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 90 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getNameForNumber() 117 private boolean isMobile(PhoneNumberType numberType) { in isMobile() 118 return (numberType == PhoneNumberType.MOBILE in isMobile() 119 || numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE in isMobile() 120 || numberType == PhoneNumberType.PAGER); in isMobile()
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 456 public enum PhoneNumberType { enum in PhoneNumberUtil 885 PhoneNumberType type = getNumberType(number); 887 if (type == PhoneNumberType.MOBILE 962 if (getNumberType(number) == PhoneNumberType.MOBILE) { 1092 private Set<PhoneNumberType> getSupportedTypesForMetadata(PhoneMetadata metadata) { 1093 Set<PhoneNumberType> types = new TreeSet<>(); 1094 for (PhoneNumberType type : PhoneNumberType.values()) { 1095 if (type == PhoneNumberType.FIXED_LINE_OR_MOBILE || type == PhoneNumberType.UNKNOWN) { 1114 public Set<PhoneNumberType> getSupportedTypesForRegion(String regionCode) { 1117 return Collections.unmodifiableSet(new TreeSet<PhoneNumberType>()); [all …]
|
/third_party/libphonenumber/cpp/src/phonenumbers/ |
D | phonenumberutil.h | 91 enum PhoneNumberType { enum 122 static const PhoneNumberType kMaxNumberType = UNKNOWN; 199 std::set<PhoneNumberType>* types) const; 211 std::set<PhoneNumberType>* types) const; 440 PhoneNumberType GetNumberType(const PhoneNumber& number) const; 562 const PhoneNumber& number, PhoneNumberType type) const; 573 PhoneNumberType type) const; 612 bool IsNumberGeographical(PhoneNumberType phone_number_type, 639 PhoneNumberType type, 646 bool GetExampleNumberForType(PhoneNumberType type, [all …]
|
D | phonenumberutil.cc | 138 PhoneNumberUtil::PhoneNumberType type) { in GetNumberDescByType() 384 std::set<PhoneNumberUtil::PhoneNumberType>* types) { in GetSupportedTypesForMetadata() 387 PhoneNumberUtil::PhoneNumberType type = in GetSupportedTypesForMetadata() 388 static_cast<PhoneNumberUtil::PhoneNumberType>(i); in GetSupportedTypesForMetadata() 406 PhoneNumberUtil::PhoneNumberType type) { in TestNumberLength() 929 std::set<PhoneNumberType>* types) const { in GetSupportedTypesForRegion() 941 std::set<PhoneNumberType>* types) const { in GetSupportedTypesForNonGeoEntity() 1265 PhoneNumberType number_type = GetNumberType(number_no_extension); in FormatNumberForMobileDialing() 2000 PhoneNumberUtil::PhoneNumberType type, in GetExampleNumberForType() 2023 PhoneNumberUtil::PhoneNumberType type, in GetExampleNumberForType() [all …]
|
/third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 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()
|
/third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberToTimeZonesMapper.java | 19 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 137 PhoneNumberType numberType = PhoneNumberUtil.getInstance().getNumberType(number); in getTimeZonesForNumber() 138 if (numberType == PhoneNumberType.UNKNOWN) { in getTimeZonesForNumber()
|
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/ |
D | PhoneNumberParserServlet.java | 30 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType; 278 PhoneNumberType numberType = phoneUtil.getNumberType(number); in getOutputForSingleNumber() 409 if (numberType == PhoneNumberType.MOBILE in getOutputForSingleNumber() 410 || numberType == PhoneNumberType.FIXED_LINE_OR_MOBILE in getOutputForSingleNumber() 411 || numberType == PhoneNumberType.PAGER) { in getOutputForSingleNumber()
|
/third_party/libphonenumber/cpp/src/phonenumbers/geocoding/ |
D | phonenumber_offline_geocoder.cc | 164 PhoneNumberUtil::PhoneNumberType number_type = in GetDescriptionForNumber() 178 PhoneNumberUtil::PhoneNumberType number_type = in GetDescriptionForNumber()
|
/third_party/libphonenumber/cpp/test/phonenumbers/ |
D | phonenumberutil_test.cc | 200 std::set<PhoneNumberUtil::PhoneNumberType> types; in TEST_F() 223 std::set<PhoneNumberUtil::PhoneNumberType> types; in TEST_F()
|