Home
last modified time | relevance | path

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

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
H A DExampleNumbersTest.java19 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> mobileType in testMobile()
[all...]
H A DPhoneNumberUtilTest.java22 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType;
169 .contains(PhoneNumberType.FIXED_LINE)); in testGetSupportedTypesForRegion()
172 .contains(PhoneNumberType.MOBILE)); in testGetSupportedTypesForRegion()
175 .contains(PhoneNumberType.UNKNOWN)); in testGetSupportedTypesForRegion()
179 .contains(PhoneNumberType.FIXED_LINE)); in testGetSupportedTypesForRegion()
181 .contains(PhoneNumberType.MOBILE)); in testGetSupportedTypesForRegion()
183 .contains(PhoneNumberType.FIXED_LINE_OR_MOBILE)); in testGetSupportedTypesForRegion()
193 Set<PhoneNumberType> typesFor979 = phoneUtil.getSupportedTypesForNonGeoEntity(979); in testGetSupportedTypesForNonGeoEntity()
194 assertTrue(typesFor979.contains(PhoneNumberType.PREMIUM_RATE)); in testGetSupportedTypesForNonGeoEntity()
195 assertFalse(typesFor979.contains(PhoneNumberType in testGetSupportedTypesForNonGeoEntity()
[all...]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
H A Ddemo.js30 goog.require('i18n.phonenumbers.PhoneNumberType');
180 case i18n.phonenumbers.PhoneNumberType.FIXED_LINE:
182 case i18n.phonenumbers.PhoneNumberType.MOBILE:
184 case i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE:
186 case i18n.phonenumbers.PhoneNumberType.TOLL_FREE:
188 case i18n.phonenumbers.PhoneNumberType.PREMIUM_RATE:
190 case i18n.phonenumbers.PhoneNumberType.SHARED_COST:
192 case i18n.phonenumbers.PhoneNumberType.VOIP:
194 case i18n.phonenumbers.PhoneNumberType.PERSONAL_NUMBER:
196 case i18n.phonenumbers.PhoneNumberType
[all...]
H A Dphonenumberutil.js31 goog.provide('i18n.phonenumbers.PhoneNumberType');
1059 i18n.phonenumbers.PhoneNumberType = {
1440 if (this.getNumberType(number) == i18n.phonenumbers.PhoneNumberType.MOBILE) {
1570 * @return {!Array.<i18n.phonenumbers.PhoneNumberType>} the types supported
1576 /** @type {!Array.<i18n.phonenumbers.PhoneNumberType>} */
1578 goog.object.forEach(i18n.phonenumbers.PhoneNumberType,
1580 if (type == i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE ||
1581 type == i18n.phonenumbers.PhoneNumberType.UNKNOWN) {
1607 * @return {!Array.<i18n.phonenumbers.PhoneNumberType>} the types for every
1632 * @return {!Array.<i18n.phonenumbers.PhoneNumberType>} th
[all...]
H A Dphonenumberutil_test.js38 goog.require('i18n.phonenumbers.PhoneNumberType');
489 var PNT = i18n.phonenumbers.PhoneNumberType;
510 var PNT = i18n.phonenumbers.PhoneNumberType;
558 var PNT = i18n.phonenumbers.PhoneNumberType;
1582 var PNT = i18n.phonenumbers.PhoneNumberType;
1610 var PNT = i18n.phonenumbers.PhoneNumberType;
1637 var PNT = i18n.phonenumbers.PhoneNumberType;
1651 var PNT = i18n.phonenumbers.PhoneNumberType;
1659 var PNT = i18n.phonenumbers.PhoneNumberType;
1672 var PNT = i18n.phonenumbers.PhoneNumberType;
[all...]
/third_party/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/
H A DPhoneNumberToCarrierMapper.java19 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/
H A DPhoneNumberUtil.java473 public enum PhoneNumberType { enum in PhoneNumberUtil
902 PhoneNumberType type = getNumberType(number); in getLengthOfGeographicalAreaCode()
904 if (type == PhoneNumberType.MOBILE in getLengthOfGeographicalAreaCode()
979 if (getNumberType(number) == PhoneNumberType.MOBILE) { in getLengthOfNationalDestinationCode()
1109 private Set<PhoneNumberType> getSupportedTypesForMetadata(PhoneMetadata metadata) { in getSupportedTypesForMetadata()
1110 Set<PhoneNumberType> types = new TreeSet<>(); in getSupportedTypesForMetadata()
1111 for (PhoneNumberType type : PhoneNumberType.values()) { in getSupportedTypesForMetadata()
1112 if (type == PhoneNumberType.FIXED_LINE_OR_MOBILE || type == PhoneNumberType in getSupportedTypesForMetadata()
[all...]
/third_party/libphonenumber/cpp/src/phonenumbers/
H A Dphonenumberutil.h95 enum PhoneNumberType { enum in i18n::phonenumbers::PhoneNumberUtil
126 static const PhoneNumberType kMaxNumberType = UNKNOWN;
203 std::set<PhoneNumberType>* types) const;
215 std::set<PhoneNumberType>* types) const;
444 PhoneNumberType GetNumberType(const PhoneNumber& number) const;
566 const PhoneNumber& number, PhoneNumberType type) const;
577 PhoneNumberType type) const;
616 bool IsNumberGeographical(PhoneNumberType phone_number_type,
643 PhoneNumberType type,
650 bool GetExampleNumberForType(PhoneNumberType typ
[all...]
H A Dphonenumberutil.cc140 PhoneNumberUtil::PhoneNumberType type) { in GetNumberDescByType()
386 std::set<PhoneNumberUtil::PhoneNumberType>* types) { in GetSupportedTypesForMetadata()
389 PhoneNumberUtil::PhoneNumberType type = in GetSupportedTypesForMetadata()
390 static_cast<PhoneNumberUtil::PhoneNumberType>(i); in GetSupportedTypesForMetadata()
408 PhoneNumberUtil::PhoneNumberType type) { in TestNumberLength()
964 std::set<PhoneNumberType>* types) const { in GetSupportedTypesForRegion()
976 std::set<PhoneNumberType>* types) const { in GetSupportedTypesForNonGeoEntity()
1300 PhoneNumberType number_type = GetNumberType(number_no_extension); in FormatNumberForMobileDialing()
2031 PhoneNumberUtil::PhoneNumberType type, in GetExampleNumberForType()
2054 PhoneNumberUtil::PhoneNumberType typ in GetExampleNumberForType()
[all...]
/third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/
H A 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()
/third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/
H A 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()
/third_party/libphonenumber/cpp/src/phonenumbers/geocoding/
H A Dphonenumber_offline_geocoder.cc165 PhoneNumberUtil::PhoneNumberType number_type = in GetDescriptionForNumber()
179 PhoneNumberUtil::PhoneNumberType number_type = in GetDescriptionForNumber()
/third_party/libphonenumber/cpp/test/phonenumbers/
H A Dphonenumberutil_test.cc210 std::set<PhoneNumberUtil::PhoneNumberType> types; in TEST_F()
233 std::set<PhoneNumberUtil::PhoneNumberType> types; in TEST_F()

Completed in 24 milliseconds