/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | ExampleNumbersTest.java | 52 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in checkNumbersValidAndCorrectType() 54 phoneNumberUtil.getExampleNumberForType(regionCode, exampleNumberRequestedType); in checkNumbersValidAndCorrectType() 143 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testCanBeInternationallyDialled() 146 phoneNumberUtil.getMetadataForRegion(regionCode).getNoInternationalDialling(); in testCanBeInternationallyDialled() 149 exampleNumber = phoneNumberUtil.parse(desc.getExampleNumber(), regionCode); in testCanBeInternationallyDialled() 177 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testEveryRegionHasAnExampleNumber() 178 PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(regionCode); in testEveryRegionHasAnExampleNumber() 179 assertNotNull("No example number found for region " + regionCode, exampleNumber); in testEveryRegionHasAnExampleNumber() 184 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testEveryRegionHasAnInvalidExampleNumber() 185 PhoneNumber exampleNumber = phoneNumberUtil.getInvalidExampleNumber(regionCode); in testEveryRegionHasAnInvalidExampleNumber() [all …]
|
D | ShortNumberInfoTest.java | 365 private PhoneNumber parse(String number, String regionCode) { in parse() argument 367 return phoneUtil.parse(number, regionCode); in parse() 370 "Test input data should always parse correctly: " + number + " (" + regionCode + ")", e); in parse()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CompareIso3166_1Status.java | 49 final String regionCode = parts.get(0); in main() local 50 …isoStatus.put(regionCode, Iso3166Status.valueOf(parts.get(1).toLowerCase(Locale.ROOT).replace(' ',… in main() 51 isoDescription.put(regionCode, parts.get(1)); in main() 68 String regionCode = entry.getKey(); in main() local 70 String description = setStatus(regionCode, cldrData, cldrStatus, true); in main() 72 final Map<LstrField, String> bcp47Data = lstregRegionsRaw.get(regionCode); in main() 73 setStatus(regionCode, bcp47Data, bcp47Status, false); in main() 75 …final Iso3166Status isoStatus2 = CldrUtility.ifNull(isoStatus.get(regionCode), Iso3166Status.out_o… in main() 76 …ordered.put(cldrStatus.get(regionCode), bcp47Status.get(regionCode), isoStatus2, regionCode, Boole… in main() local 77 System.out.println(regionCode in main() [all …]
|
D | SubdivisionNode.java | 224 private boolean isKosher(String regionCode) { in isKosher() argument 225 if (regionCode.equals("001")) { in isKosher() 228 if (territoryAliases.containsKey(regionCode) in isKosher() 229 || containment.contains(regionCode) in isKosher() 230 || codeToData.get(regionCode).get(LstrField.Description).contains("Private use")) { in isKosher() 231 Set<String> rc = REGION_CONTAINS.get(regionCode); in isKosher() 233 throw new IllegalArgumentException("? " + regionCode + ": " + rc); in isKosher() 743 for (String regionCode : allRegions) { in printEnglish() 744 if (regionCode.equals("FR")) { in printEnglish() 747 if (!sdset.isKosher(regionCode)) { in printEnglish() [all …]
|
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/ |
D | ShortNumberInfo.java | 197 String regionCode = getRegionCodeForShortNumberFromRegionList(number, regionCodes); in isValidShortNumber() local 198 if (regionCodes.size() > 1 && regionCode != null) { in isValidShortNumber() 203 return isValidShortNumberForRegion(number, regionCode); in isValidShortNumber() 297 for (String regionCode : regionCodes) { in getExpectedCost() 298 ShortNumberCost costForRegion = getExpectedCostForRegion(number, regionCode); in getExpectedCost() 331 for (String regionCode : regionCodes) { in getRegionCodeForShortNumberFromRegionList() 332 PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionCode); in getRegionCodeForShortNumberFromRegionList() 336 return regionCode; in getRegionCodeForShortNumberFromRegionList() 357 String getExampleShortNumber(String regionCode) { in getExampleShortNumber() argument 358 PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionCode); in getExampleShortNumber() [all …]
|
D | PhoneNumberUtil.java | 1075 public Set<PhoneNumberType> getSupportedTypesForRegion(String regionCode) { 1076 if (!isValidRegionCode(regionCode)) { 1077 logger.log(Level.WARNING, "Invalid or unknown region code provided: " + regionCode); 1080 PhoneMetadata metadata = getMetadataForRegion(regionCode); 1191 private boolean isValidRegionCode(String regionCode) { 1192 return regionCode != null && supportedRegions.contains(regionCode); 1260 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1264 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); 1292 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1295 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); [all …]
|
D | MetadataManager.java | 88 static PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion() argument 89 if (!shortNumberMetadataRegionCodes.contains(regionCode)) { in getShortNumberMetadataForRegion() 92 return getMetadataFromMultiFilePrefix(regionCode, shortNumberMetadataMap, in getShortNumberMetadataForRegion() 134 String regionCode = metadata.getId(); in load() local 135 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode)) { in load() 139 regionCodeToMetadata.put(regionCode, metadata); in load() 163 PhoneMetadata get(String regionCode) { in get() argument 164 return regionCodeToMetadata.get(regionCode); in get()
|
D | SingleFileMetadataSourceImpl.java | 50 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 52 phoneNumberMetadataFileName, metadataLoader).get(regionCode); in getMetadataForRegion()
|
D | MultiFileMetadataSourceImpl.java | 64 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 65 return MetadataManager.getMetadataFromMultiFilePrefix(regionCode, geographicalRegions, in getMetadataForRegion()
|
D | AsYouTypeFormatter.java | 119 AsYouTypeFormatter(String regionCode) { in AsYouTypeFormatter() argument 120 defaultCountry = regionCode; in AsYouTypeFormatter() 127 private PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 128 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion()
|
D | MetadataSource.java | 32 PhoneMetadata getMetadataForRegion(String regionCode); in getMetadataForRegion() argument
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | ShortNumberInfo.java | 194 String regionCode = getRegionCodeForShortNumberFromRegionList(number, regionCodes); in isValidShortNumber() local 195 if (regionCodes.size() > 1 && regionCode != null) { in isValidShortNumber() 200 return isValidShortNumberForRegion(number, regionCode); in isValidShortNumber() 294 for (String regionCode : regionCodes) { in getExpectedCost() 295 ShortNumberCost costForRegion = getExpectedCostForRegion(number, regionCode); in getExpectedCost() 328 for (String regionCode : regionCodes) { in getRegionCodeForShortNumberFromRegionList() 329 PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionCode); in getRegionCodeForShortNumberFromRegionList() 333 return regionCode; in getRegionCodeForShortNumberFromRegionList() 354 String getExampleShortNumber(String regionCode) { in getExampleShortNumber() argument 355 PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionCode); in getExampleShortNumber() [all …]
|
D | PhoneNumberUtil.java | 1042 public Set<PhoneNumberType> getSupportedTypesForRegion(String regionCode) { 1043 if (!isValidRegionCode(regionCode)) { 1044 logger.log(Level.WARNING, "Invalid or unknown region code provided: " + regionCode); 1047 PhoneMetadata metadata = getMetadataForRegion(regionCode); 1157 private boolean isValidRegionCode(String regionCode) { 1158 return regionCode != null && supportedRegions.contains(regionCode); 1225 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1229 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); 1257 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1260 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); [all …]
|
D | MetadataManager.java | 87 static PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion() argument 88 if (!shortNumberMetadataRegionCodes.contains(regionCode)) { in getShortNumberMetadataForRegion() 91 return getMetadataFromMultiFilePrefix(regionCode, shortNumberMetadataMap, in getShortNumberMetadataForRegion() 133 String regionCode = metadata.getId(); in load() local 134 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode)) { in load() 138 regionCodeToMetadata.put(regionCode, metadata); in load() 162 PhoneMetadata get(String regionCode) { in get() argument 163 return regionCodeToMetadata.get(regionCode); in get()
|
D | SingleFileMetadataSourceImpl.java | 49 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 51 phoneNumberMetadataFileName, metadataLoader).get(regionCode); in getMetadataForRegion()
|
D | MultiFileMetadataSourceImpl.java | 63 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 64 return MetadataManager.getMetadataFromMultiFilePrefix(regionCode, geographicalRegions, in getMetadataForRegion()
|
D | AsYouTypeFormatter.java | 117 AsYouTypeFormatter(String regionCode) { in AsYouTypeFormatter() argument 118 defaultCountry = regionCode; in AsYouTypeFormatter() 125 private PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 126 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion()
|
D | MetadataSource.java | 31 PhoneMetadata getMetadataForRegion(String regionCode); in getMetadataForRegion() argument
|
/external/libphonenumber/repackaged/geocoder/src/com/android/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 76 for (String regionCode : regionCodes) { in getCountryNameForNumber() 77 if (phoneUtil.isValidNumberForRegion(number, regionCode)) { in getCountryNameForNumber() 83 regionWhereNumberIsValid = regionCode; in getCountryNameForNumber() 93 private String getRegionDisplayName(String regionCode, Locale language) { in getRegionDisplayName() argument 94 return (regionCode == null || regionCode.equals("ZZ") in getRegionDisplayName() 95 || regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) in getRegionDisplayName() 96 ? "" : new Locale("", regionCode).getDisplayCountry(language); in getRegionDisplayName() 172 String regionCode = phoneUtil.getRegionCodeForNumber(number); in getDescriptionForValidNumber() local 173 if (userRegion.equals(regionCode)) { in getDescriptionForValidNumber() 177 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber()
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 73 for (String regionCode : regionCodes) { in getCountryNameForNumber() 74 if (phoneUtil.isValidNumberForRegion(number, regionCode)) { in getCountryNameForNumber() 80 regionWhereNumberIsValid = regionCode; in getCountryNameForNumber() 90 private String getRegionDisplayName(String regionCode, Locale language) { in getRegionDisplayName() argument 91 return (regionCode == null || regionCode.equals("ZZ") in getRegionDisplayName() 92 || regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) in getRegionDisplayName() 93 ? "" : new Locale("", regionCode).getDisplayCountry(language); in getRegionDisplayName() 169 String regionCode = phoneUtil.getRegionCodeForNumber(number); in getDescriptionForValidNumber() local 170 if (userRegion.equals(regionCode)) { in getDescriptionForValidNumber() 174 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber()
|
/external/icu/icu4c/source/i18n/ |
D | uregion.cpp | 23 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status) in uregion_getRegionFromCode() argument 25 return (URegion*)Region::getInstance(regionCode, *status); in uregion_getRegionFromCode()
|
/external/libphonenumber/demo/src/com/google/phonenumbers/ |
D | PhoneNumberParserServlet.java | 68 String regionCode = ""; in doPost() local 89 regionCode = Streams.asString(in).toUpperCase(); in doPost() 108 Locale geocodingLocale = new Locale(languageCode, regionCode); in doPost()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | uregion.h | 137 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status);
|
/external/icu/libandroidicu/include/unicode/ |
D | uregion.h | 137 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status);
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | PathDescription.java | 189 String regionCode = ZONE2COUNTRY.get(attributes.get(0)); in getDescription() 190 String englishRegionName = english.getName(CLDRFile.TERRITORY_NAME, regionCode); in getDescription()
|