/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/ |
D | MultiFileMetadataSourceImpl.java | 70 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument 71 if (!isNonGeographical(countryCallingCode)) { in getMetadataForNonGeographicalRegion() 75 … return MetadataManager.getMetadataFromMultiFilePrefix(countryCallingCode, nonGeographicalRegions, in getMetadataForNonGeographicalRegion() 81 private boolean isNonGeographical(int countryCallingCode) { in isNonGeographical() argument 83 CountryCodeToRegionCodeMap.getCountryCodeToRegionCodeMap().get(countryCallingCode); in isNonGeographical()
|
D | PhoneNumberUtil.java | 866 int countryCallingCode = number.getCountryCode(); 871 && GEO_MOBILE_COUNTRIES_WITHOUT_MOBILE_AREA_CODES.contains(countryCallingCode)) { 875 if (!isNumberGeographical(type, countryCallingCode)) { 964 public static String getCountryMobileToken(int countryCallingCode) { 965 if (MOBILE_TOKEN_MAPPINGS.containsKey(countryCallingCode)) { 966 return MOBILE_TOKEN_MAPPINGS.get(countryCallingCode); 1112 public Set<PhoneNumberType> getSupportedTypesForNonGeoEntity(int countryCallingCode) { 1113 PhoneMetadata metadata = getMetadataForNonGeographicalRegion(countryCallingCode); 1116 + "provided: " + countryCallingCode); 1200 public boolean isNumberGeographical(PhoneNumberType phoneNumberType, int countryCallingCode) { [all …]
|
D | MetadataManager.java | 80 static PhoneMetadata getAlternateFormatsForCountry(int countryCallingCode) { in getAlternateFormatsForCountry() argument 81 if (!alternateFormatsCountryCodes.contains(countryCallingCode)) { in getAlternateFormatsForCountry() 84 return getMetadataFromMultiFilePrefix(countryCallingCode, alternateFormatsMap, in getAlternateFormatsForCountry() 167 PhoneMetadata get(int countryCallingCode) { in get() argument 168 return countryCallingCodeToMetadata.get(countryCallingCode); in get()
|
D | SingleFileMetadataSourceImpl.java | 56 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument 64 phoneNumberMetadataFileName, metadataLoader).get(countryCallingCode); in getMetadataForNonGeographicalRegion()
|
D | MetadataSource.java | 39 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion() argument
|
D | ShortNumberInfo.java | 98 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument 99 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()
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
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 | PhoneNumberUtil.java | 833 int countryCallingCode = number.getCountryCode(); 838 && GEO_MOBILE_COUNTRIES_WITHOUT_MOBILE_AREA_CODES.contains(countryCallingCode)) { 842 if (!isNumberGeographical(type, countryCallingCode)) { 931 public static String getCountryMobileToken(int countryCallingCode) { 932 if (MOBILE_TOKEN_MAPPINGS.containsKey(countryCallingCode)) { 933 return MOBILE_TOKEN_MAPPINGS.get(countryCallingCode); 1079 public Set<PhoneNumberType> getSupportedTypesForNonGeoEntity(int countryCallingCode) { 1080 PhoneMetadata metadata = getMetadataForNonGeographicalRegion(countryCallingCode); 1083 + "provided: " + countryCallingCode); 1166 public boolean isNumberGeographical(PhoneNumberType phoneNumberType, int countryCallingCode) { [all …]
|
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 | 95 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument 96 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode); in getRegionCodesForCountryCode()
|
D | AsYouTypeFormatter.java | 126 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion() local 127 String mainCountry = phoneUtil.getRegionCodeForCountryCode(countryCallingCode); in getMetadataForRegion()
|
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/ |
D | MappingFileProvider.java | 79 for (int countryCallingCode : availableDataFiles.keySet()) { in readFileConfigs() 80 countryCallingCodes[index++] = countryCallingCode; in readFileConfigs() 81 availableLanguages.add(new HashSet<String>(availableDataFiles.get(countryCallingCode))); in readFileConfigs() 158 String getFileName(int countryCallingCode, String language, String script, String region) { in getFileName() argument 162 int index = Arrays.binarySearch(countryCallingCodes, countryCallingCode); in getFileName() 171 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
|
D | PrefixFileReader.java | 120 int countryCallingCode = number.getCountryCode(); in getDescriptionForNumber() local 123 int phonePrefix = (countryCallingCode != 1) in getDescriptionForNumber() 124 ? countryCallingCode : (1000 + (int) (number.getNationalNumber() / 10000000)); in getDescriptionForNumber()
|
/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() 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 | 118 int countryCallingCode = number.getCountryCode(); in getDescriptionForNumber() local 121 int phonePrefix = (countryCallingCode != 1) in getDescriptionForNumber() 122 ? countryCallingCode : (1000 + (int) (number.getNationalNumber() / 10000000)); in getDescriptionForNumber()
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 1931 int countryCallingCode = 1; in testMaybeExtractCountryCode() local 1933 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1934 countryCallingCode, in testMaybeExtractCountryCode() 1949 int countryCallingCode = 64; in testMaybeExtractCountryCode() local 1951 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1952 countryCallingCode, in testMaybeExtractCountryCode() 1963 int countryCallingCode = 800; in testMaybeExtractCountryCode() local 1965 assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.", in testMaybeExtractCountryCode() 1966 countryCallingCode, in testMaybeExtractCountryCode() 2002 int countryCallingCode = 1; in testMaybeExtractCountryCode() local [all …]
|