Home
last modified time | relevance | path

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

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java812 int countryCallingCode = number.getCountryCode();
817 && GEO_MOBILE_COUNTRIES_WITHOUT_MOBILE_AREA_CODES.contains(countryCallingCode)) {
821 if (!isNumberGeographical(type, countryCallingCode)) {
906 public static String getCountryMobileToken(int countryCallingCode) {
907 if (MOBILE_TOKEN_MAPPINGS.containsKey(countryCallingCode)) {
908 return MOBILE_TOKEN_MAPPINGS.get(countryCallingCode);
1046 public boolean isNumberGeographical(PhoneNumberType numberType, int countryCallingCode) {
1049 || (GEO_MOBILE_COUNTRIES.contains(countryCallingCode)
1063 private boolean hasValidCountryCallingCode(int countryCallingCode) {
1064 return countryCallingCodeToRegionCodeMap.containsKey(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.java95 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument
96 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode); in getRegionCodesForCountryCode()
DAsYouTypeFormatter.java136 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion() local
137 String mainCountry = phoneUtil.getRegionCodeForCountryCode(countryCallingCode); in getMetadataForRegion()
/external/libphonenumber/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()
154 String getFileName(int countryCallingCode, String language, String script, String region) { in getFileName() argument
158 int index = Arrays.binarySearch(countryCallingCodes, countryCallingCode); in getFileName()
167 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
DPrefixFileReader.java116 int countryCallingCode = number.getCountryCode(); in getDescriptionForNumber() local
119 int phonePrefix = (countryCallingCode != 1) in getDescriptionForNumber()
120 ? countryCallingCode : (1000 + (int) (number.getNationalNumber() / 10000000)); in getDescriptionForNumber()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java1606 int countryCallingCode = 1; in testMaybeExtractCountryCode() local
1608 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode()
1609 countryCallingCode, in testMaybeExtractCountryCode()
1624 int countryCallingCode = 64; in testMaybeExtractCountryCode() local
1626 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode()
1627 countryCallingCode, in testMaybeExtractCountryCode()
1638 int countryCallingCode = 800; in testMaybeExtractCountryCode() local
1640 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode()
1641 countryCallingCode, in testMaybeExtractCountryCode()
1677 int countryCallingCode = 1; in testMaybeExtractCountryCode() local
[all …]