Lines Matching defs:countryCallingCode

611   void loadMetadataFromFile(String filePrefix, String regionCode, int countryCallingCode,
615 (isNonGeoRegion ? String.valueOf(countryCallingCode) : regionCode);
635 countryCodeToNonGeographicalMetadataMap.put(countryCallingCode, metadata);
939 * @param countryCallingCode the country calling code for which we want the mobile token
942 public static String getCountryMobileToken(int countryCallingCode) {
943 if (MOBILE_TOKEN_MAPPINGS.containsKey(countryCallingCode)) {
944 return MOBILE_TOKEN_MAPPINGS.get(countryCallingCode);
1078 private boolean hasValidCountryCallingCode(int countryCallingCode) {
1079 return countryCallingCodeToRegionCodeMap.containsKey(countryCallingCode);
1121 int countryCallingCode = number.getCountryCode();
1128 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164,
1132 if (!hasValidCountryCallingCode(countryCallingCode)) {
1139 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1143 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1146 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1163 int countryCallingCode = number.getCountryCode();
1165 if (!hasValidCountryCallingCode(countryCallingCode)) {
1171 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1174 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1208 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1224 int countryCallingCode = number.getCountryCode();
1226 if (!hasValidCountryCallingCode(countryCallingCode)) {
1233 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1235 PhoneMetadata metadata = getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1241 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.NATIONAL,
1247 int countryCallingCode, String regionCode) {
1249 ? getMetadataForNonGeographicalRegion(countryCallingCode)
1291 int countryCallingCode = number.getCountryCode();
1292 if (!hasValidCountryCallingCode(countryCallingCode)) {
1299 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1325 } else if (countryCallingCode == NANPA_COUNTRY_CODE) {
1395 int countryCallingCode = number.getCountryCode();
1397 if (!hasValidCountryCallingCode(countryCallingCode)) {
1400 if (countryCallingCode == NANPA_COUNTRY_CODE) {
1404 return countryCallingCode + " " + format(number, PhoneNumberFormat.NATIONAL);
1406 } else if (countryCallingCode == getCountryCodeForValidRegion(regionCallingFrom)) {
1429 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1432 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1439 formattedNumber.insert(0, " ").insert(0, countryCallingCode).insert(0, " ")
1442 prefixNumberWithCountryCallingCode(countryCallingCode,
1590 int countryCallingCode = number.getCountryCode();
1591 String phoneNumberRegion = getRegionCodeForCountryCode(countryCallingCode);
1593 getMetadataForRegionOrCallingCode(countryCallingCode, phoneNumberRegion);
1738 private void prefixNumberWithCountryCallingCode(int countryCallingCode,
1743 formattedNumber.insert(0, countryCallingCode).insert(0, PLUS_SIGN);
1746 formattedNumber.insert(0, " ").insert(0, countryCallingCode).insert(0, PLUS_SIGN);
1749 formattedNumber.insert(0, "-").insert(0, countryCallingCode).insert(0, PLUS_SIGN)
1896 * @param countryCallingCode the country calling code for a non-geographical entity
1901 public PhoneNumber getExampleNumberForNonGeoEntity(int countryCallingCode) {
1902 PhoneMetadata metadata = getMetadataForNonGeographicalRegion(countryCallingCode);
1907 return parse("+" + countryCallingCode + desc.getExampleNumber(), "ZZ");
1914 "Invalid or unknown country calling code provided: " + countryCallingCode);
2051 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) {
2053 if (!countryCallingCodeToRegionCodeMap.containsKey(countryCallingCode)) {
2056 if (!countryCodeToNonGeographicalMetadataMap.containsKey(countryCallingCode)) {
2058 currentFilePrefix, REGION_CODE_FOR_NON_GEO_ENTITY, countryCallingCode, metadataLoader);
2061 return countryCodeToNonGeographicalMetadataMap.get(countryCallingCode);
2177 * countryCallingCode entered is valid but doesn't match a specific region (such as in the case of
2181 public String getRegionCodeForCountryCode(int countryCallingCode) {
2182 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode);
2191 public List<String> getRegionCodesForCountryCode(int countryCallingCode) {
2192 List<String> regionCodes = countryCallingCodeToRegionCodeMap.get(countryCallingCode);
2281 boolean isLeadingZeroPossible(int countryCallingCode) {
2283 getMetadataForRegionOrCallingCode(countryCallingCode,
2284 getRegionCodeForCountryCode(countryCallingCode));