Searched refs:countryCallingCode (Results 1 – 6 of 6) sorted by relevance
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
D | MetadataManager.java | 67 private static void loadMetadataFromFile(int countryCallingCode) { in loadMetadataFromFile() argument 69 ALTERNATE_FORMATS_FILE_PREFIX + "_" + countryCallingCode); in loadMetadataFromFile() 85 static PhoneMetadata getAlternateFormatsForCountry(int countryCallingCode) { in getAlternateFormatsForCountry() argument 86 if (!countryCodeSet.contains(countryCallingCode)) { in getAlternateFormatsForCountry() 90 if (!callingCodeToAlternateFormatsMap.containsKey(countryCallingCode)) { in getAlternateFormatsForCountry() 91 loadMetadataFromFile(countryCallingCode); in getAlternateFormatsForCountry() 94 return callingCodeToAlternateFormatsMap.get(countryCallingCode); in getAlternateFormatsForCountry()
|
D | PhoneNumberUtil.java | 581 void loadMetadataFromFile(String filePrefix, String regionCode, int countryCallingCode) { 584 (isNonGeoRegion ? String.valueOf(countryCallingCode) : regionCode); 605 countryCodeToNonGeographicalMetadataMap.put(countryCallingCode, metadata); 989 private boolean hasValidCountryCallingCode(int countryCallingCode) { 990 return countryCallingCodeToRegionCodeMap.containsKey(countryCallingCode); 1032 int countryCallingCode = number.getCountryCode(); 1038 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164, 1042 if (!hasValidCountryCallingCode(countryCallingCode)) { 1049 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1053 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); [all …]
|
D | AsYouTypeFormatter.java | 136 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion() local 137 String mainCountry = phoneUtil.getRegionCodeForCountryCode(countryCallingCode); in getMetadataForRegion()
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/ |
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 | PhoneNumberOfflineGeocoder.java | 273 int countryCallingCode = number.getCountryCode(); in getAreaDescriptionForNumber() local 276 int phonePrefix = (countryCallingCode != 1) ? in getAreaDescriptionForNumber() 277 countryCallingCode : (1000 + (int) (number.getNationalNumber() / 10000000)); in getAreaDescriptionForNumber()
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 1511 int countryCallingCode = 1; in testMaybeExtractCountryCode() local 1513 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1514 countryCallingCode, in testMaybeExtractCountryCode() 1529 int countryCallingCode = 64; in testMaybeExtractCountryCode() local 1531 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1532 countryCallingCode, in testMaybeExtractCountryCode() 1543 int countryCallingCode = 800; in testMaybeExtractCountryCode() local 1545 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1546 countryCallingCode, in testMaybeExtractCountryCode() 1582 int countryCallingCode = 1; in testMaybeExtractCountryCode() local [all …]
|