Home
last modified time | relevance | path

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

/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DMultiFileMetadataSourceImpl.java70 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()
DPhoneNumberUtil.java866 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 …]
DMetadataManager.java80 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()
DSingleFileMetadataSourceImpl.java56 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion() argument
64 phoneNumberMetadataFileName, metadataLoader).get(countryCallingCode); in getMetadataForNonGeographicalRegion()
DMetadataSource.java39 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion() argument
DShortNumberInfo.java98 private List<String> getRegionCodesForCountryCode(int countryCallingCode) { in getRegionCodesForCountryCode() argument
99 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()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
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()
DPhoneNumberUtil.java833 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 …]
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.java126 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/
DMappingFileProvider.java79 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()
DPrefixFileReader.java120 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/
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.java118 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/
DPhoneNumberUtilTest.java1931 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 …]