Home
last modified time | relevance | path

Searched refs:countryCallingCode (Results 1 – 21 of 21) sorted by relevance

/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java886 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 …]
DMultiFileMetadataSourceImpl.java69 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()
DMetadataManager.java79 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()
DSingleFileMetadataSourceImpl.java55 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument
63 phoneNumberMetadataFileName, metadataLoader).get(countryCallingCode); in getMetadataForNonGeographicalRegion()
DMetadataSource.java38 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion() argument
DShortNumberInfo.java102 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument
103 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode); in getRegionCodesForCountryCode()
DAsYouTypeFormatter.java128 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/
DMetadataSourceImpl.java53 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()
DFormattingMetadataSourceImpl.java52 public PhoneMetadata getFormattingMetadataForCountryCallingCode(int countryCallingCode) { in getFormattingMetadataForCountryCallingCode() argument
54 .getOrBootstrap(phoneMetadataFileNameProvider.getFor(countryCallingCode)) in getFormattingMetadataForCountryCallingCode()
55 .getMetadataBy(countryCallingCode); in getFormattingMetadataForCountryCallingCode()
DCompositeMetadataContainer.java47 PhoneMetadata getMetadataBy(int countryCallingCode) { in getMetadataBy() argument
48 return metadataByCountryCode.getMetadataBy(countryCallingCode); in getMetadataBy()
DNonGeographicalEntityMetadataSource.java46 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion() argument
DFormattingMetadataSource.java36 PhoneMetadata getFormattingMetadataForCountryCallingCode(int countryCallingCode); in getFormattingMetadataForCountryCallingCode() argument
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil.js1395 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 …]
Dshortnumberinfo.js93 function(countryCallingCode) { argument
95 .countryCodeToRegionCodeMap[countryCallingCode];
Dphonenumberutil_test.js461 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 …]
Dasyoutypeformatter.js264 var countryCallingCode = this.phoneUtil_.getCountryCodeForRegion(regionCode);
267 this.phoneUtil_.getRegionCodeForCountryCode(countryCallingCode);
/third_party/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DMappingFileProvider.java77 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()
DPrefixFileReader.java119 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/
DGeoEntityUtility.java47 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/
DBuildMetadataProtoFromXml.java266 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/
DPhoneNumberUtilTest.java1954 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 …]