/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 886 int countryCallingCode = number.getCountryCode(); 891 && GEO_MOBILE_COUNTRIES_WITHOUT_MOBILE_AREA_CODES.contains(countryCallingCode)) { 895 if (!isNumberGeographical(type, countryCallingCode)) { 984 public static String getCountryMobileToken(int countryCallingCode) { 985 if (MOBILE_TOKEN_MAPPINGS.containsKey(countryCallingCode)) { 986 return MOBILE_TOKEN_MAPPINGS.get(countryCallingCode); 1132 public Set<PhoneNumberType> getSupportedTypesForNonGeoEntity(int countryCallingCode) { 1133 PhoneMetadata metadata = getMetadataForNonGeographicalRegion(countryCallingCode); 1136 + "provided: " + countryCallingCode); 1225 public boolean isNumberGeographical(PhoneNumberType phoneNumberType, int countryCallingCode) { [all …]
|
D | MultiFileMetadataSourceImpl.java | 69 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument 70 if (!isNonGeographical(countryCallingCode)) { in getMetadataForNonGeographicalRegion() 74 … return MetadataManager.getMetadataFromMultiFilePrefix(countryCallingCode, nonGeographicalRegions, in getMetadataForNonGeographicalRegion() 80 private boolean isNonGeographical(int countryCallingCode) { in isNonGeographical() argument 82 CountryCodeToRegionCodeMap.getCountryCodeToRegionCodeMap().get(countryCallingCode); in isNonGeographical()
|
D | MetadataManager.java | 79 static PhoneMetadata getAlternateFormatsForCountry(int countryCallingCode) { in getAlternateFormatsForCountry() argument 80 if (!alternateFormatsCountryCodes.contains(countryCallingCode)) { in getAlternateFormatsForCountry() 83 return getMetadataFromMultiFilePrefix(countryCallingCode, alternateFormatsMap, in getAlternateFormatsForCountry() 166 PhoneMetadata get(int countryCallingCode) { in get() argument 167 return countryCallingCodeToMetadata.get(countryCallingCode); in get()
|
D | SingleFileMetadataSourceImpl.java | 55 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument 63 phoneNumberMetadataFileName, metadataLoader).get(countryCallingCode); in getMetadataForNonGeographicalRegion()
|
D | MetadataSource.java | 38 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion() argument
|
D | ShortNumberInfo.java | 102 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument 103 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode); in getRegionCodesForCountryCode()
|
D | AsYouTypeFormatter.java | 128 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion() local 129 String mainCountry = phoneUtil.getRegionCodeForCountryCode(countryCallingCode); in getMetadataForRegion()
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/source/ |
D | MetadataSourceImpl.java | 53 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument 54 if (GeoEntityUtility.isGeoEntity(countryCallingCode)) { in getMetadataForNonGeographicalRegion() 56 countryCallingCode + " calling code belongs to a geo entity"); in getMetadataForNonGeographicalRegion() 59 .getOrBootstrap(phoneMetadataFileNameProvider.getFor(countryCallingCode)) in getMetadataForNonGeographicalRegion() 60 .getMetadataBy(countryCallingCode); in getMetadataForNonGeographicalRegion()
|
D | FormattingMetadataSourceImpl.java | 52 public PhoneMetadata getFormattingMetadataForCountryCallingCode(int countryCallingCode) { in getFormattingMetadataForCountryCallingCode() argument 54 .getOrBootstrap(phoneMetadataFileNameProvider.getFor(countryCallingCode)) in getFormattingMetadataForCountryCallingCode() 55 .getMetadataBy(countryCallingCode); in getFormattingMetadataForCountryCallingCode()
|
D | CompositeMetadataContainer.java | 47 PhoneMetadata getMetadataBy(int countryCallingCode) { in getMetadataBy() argument 48 return metadataByCountryCode.getMetadataBy(countryCallingCode); in getMetadataBy()
|
D | NonGeographicalEntityMetadataSource.java | 46 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion() argument
|
D | FormattingMetadataSource.java | 36 PhoneMetadata getFormattingMetadataForCountryCallingCode(int countryCallingCode); in getFormattingMetadataForCountryCallingCode() argument
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | phonenumberutil.js | 1395 function(countryCallingCode) { argument 1397 countryCallingCode] || ''; 1562 function(countryCallingCode) { argument 1564 var metadata = this.getMetadataForNonGeographicalRegion(countryCallingCode); 1683 function(countryCallingCode) { argument 1685 return countryCallingCode in 1723 var countryCallingCode = number.getCountryCodeOrDefault(); 1731 countryCallingCode, i18n.phonenumbers.PhoneNumberFormat.E164, 1734 if (!this.hasValidCountryCallingCode_(countryCallingCode)) { 1742 var regionCode = this.getRegionCodeForCountryCode(countryCallingCode); [all …]
|
D | shortnumberinfo.js | 93 function(countryCallingCode) { argument 95 .countryCodeToRegionCodeMap[countryCallingCode];
|
D | phonenumberutil_test.js | 461 countryCallingCode) { argument 464 phoneUtil.getRegionCodeForCountryCode(countryCallingCode)); 2605 var countryCallingCode = 1; 2609 'Did not extract country calling code ' + countryCallingCode + 2611 countryCallingCode, 2627 countryCallingCode = 64; 2630 'Did not extract country calling code ' + countryCallingCode + 2632 countryCallingCode, 2644 countryCallingCode = 800; 2647 'Did not extract country calling code ' + countryCallingCode + [all …]
|
D | asyoutypeformatter.js | 264 var countryCallingCode = this.phoneUtil_.getCountryCodeForRegion(regionCode); 267 this.phoneUtil_.getRegionCodeForCountryCode(countryCallingCode);
|
/third_party/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
D | MappingFileProvider.java | 77 for (int countryCallingCode : availableDataFiles.keySet()) { in readFileConfigs() 78 countryCallingCodes[index++] = countryCallingCode; in readFileConfigs() 79 availableLanguages.add(new HashSet<String>(availableDataFiles.get(countryCallingCode))); in readFileConfigs() 156 String getFileName(int countryCallingCode, String language, String script, String region) { in getFileName() argument 160 int index = Arrays.binarySearch(countryCallingCodes, countryCallingCode); in getFileName() 169 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
|
D | PrefixFileReader.java | 119 int countryCallingCode = number.getCountryCode(); in getDescriptionForNumber() local 122 int phonePrefix = (countryCallingCode != 1) in getDescriptionForNumber() 123 ? countryCallingCode : (1000 + (int) (number.getNationalNumber() / 10000000)); in getDescriptionForNumber()
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/ |
D | GeoEntityUtility.java | 47 public static boolean isGeoEntity(int countryCallingCode) { in isGeoEntity() argument 49 CountryCodeToRegionCodeMap.getCountryCodeToRegionCodeMap().get(countryCallingCode); in isGeoEntity()
|
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/ |
D | BuildMetadataProtoFromXml.java | 266 int countryCallingCode = entry.getKey(); in writeMap() local 273 writer.addToBody(" countryCodeToRegionCodeMap.put(" + countryCallingCode + in writeMap() 315 for (int countryCallingCode : countryCodeSet) { in writeCountryCodeSet() 316 writer.addToBody(" countryCodeSet.add(" + countryCallingCode + ");\n"); in writeCountryCodeSet()
|
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 1954 int countryCallingCode = 1; in testMaybeExtractCountryCode() local 1956 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1957 countryCallingCode, in testMaybeExtractCountryCode() 1972 int countryCallingCode = 64; in testMaybeExtractCountryCode() local 1974 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1975 countryCallingCode, in testMaybeExtractCountryCode() 1986 int countryCallingCode = 800; in testMaybeExtractCountryCode() local 1988 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1989 countryCallingCode, in testMaybeExtractCountryCode() 2025 int countryCallingCode = 1; in testMaybeExtractCountryCode() local [all …]
|