Searched refs:countryCallingCode (Results 1 – 7 of 7) sorted by relevance
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | MetadataManager.java | 74 private static void loadAlternateFormatsMetadataFromFile(int countryCallingCode) { in loadAlternateFormatsMetadataFromFile() argument 76 ALTERNATE_FORMATS_FILE_PREFIX + "_" + countryCallingCode); in loadAlternateFormatsMetadataFromFile() 92 static PhoneMetadata getAlternateFormatsForCountry(int countryCallingCode) { in getAlternateFormatsForCountry() argument 93 if (!countryCodeSet.contains(countryCallingCode)) { in getAlternateFormatsForCountry() 97 if (!callingCodeToAlternateFormatsMap.containsKey(countryCallingCode)) { in getAlternateFormatsForCountry() 98 loadAlternateFormatsMetadataFromFile(countryCallingCode); in getAlternateFormatsForCountry() 101 return callingCodeToAlternateFormatsMap.get(countryCallingCode); in getAlternateFormatsForCountry()
|
D | PhoneNumberUtil.java | 614 void loadMetadataFromFile(String filePrefix, String regionCode, int countryCallingCode, 618 (isNonGeoRegion ? String.valueOf(countryCallingCode) : regionCode); 638 countryCodeToNonGeographicalMetadataMap.put(countryCallingCode, metadata); 945 public static String getCountryMobileToken(int countryCallingCode) { 946 if (MOBILE_TOKEN_MAPPINGS.containsKey(countryCallingCode)) { 947 return MOBILE_TOKEN_MAPPINGS.get(countryCallingCode); 1081 private boolean hasValidCountryCallingCode(int countryCallingCode) { 1082 return countryCallingCodeToRegionCodeMap.containsKey(countryCallingCode); 1124 int countryCallingCode = number.getCountryCode(); 1131 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164, [all …]
|
D | ShortNumberInfo.java | 97 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument 98 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode); in getRegionCodesForCountryCode()
|
D | AsYouTypeFormatter.java | 136 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/ |
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() 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()
|
D | PrefixFileReader.java | 116 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/ |
D | PhoneNumberUtilTest.java | 1567 int countryCallingCode = 1; in testMaybeExtractCountryCode() local 1569 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1570 countryCallingCode, in testMaybeExtractCountryCode() 1585 int countryCallingCode = 64; in testMaybeExtractCountryCode() local 1587 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1588 countryCallingCode, in testMaybeExtractCountryCode() 1599 int countryCallingCode = 800; in testMaybeExtractCountryCode() local 1601 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1602 countryCallingCode, in testMaybeExtractCountryCode() 1638 int countryCallingCode = 1; in testMaybeExtractCountryCode() local [all …]
|