Home
last modified time | relevance | path

Searched refs:regionCode (Results 1 – 21 of 21) sorted by relevance

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DExampleNumbersTest.java51 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in checkNumbersValidAndCorrectType()
53 phoneNumberUtil.getExampleNumberForType(regionCode, exampleNumberRequestedType); in checkNumbersValidAndCorrectType()
142 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testCanBeInternationallyDialled()
145 phoneNumberUtil.getMetadataForRegion(regionCode).getNoInternationalDialling(); in testCanBeInternationallyDialled()
148 exampleNumber = phoneNumberUtil.parse(desc.getExampleNumber(), regionCode); in testCanBeInternationallyDialled()
176 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testEveryRegionHasAnExampleNumber()
177 PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(regionCode); in testEveryRegionHasAnExampleNumber()
178 assertNotNull("None found for region " + regionCode, exampleNumber); in testEveryRegionHasAnExampleNumber()
184 for (String regionCode : shortNumberInfo.getSupportedRegions()) { in testShortNumbersValidAndCorrectCost()
185 String exampleShortNumber = shortNumberInfo.getExampleShortNumber(regionCode); in testShortNumbersValidAndCorrectCost()
[all …]
DShortNumberInfoTest.java347 private PhoneNumber parse(String number, String regionCode) { in parse() argument
349 return phoneUtil.parse(number, regionCode); in parse()
352 "Test input data should always parse correctly: " + number + " (" + regionCode + ")", e); in parse()
DPhoneNumberMatcherTest.java1080 NumberTest(String rawString, String regionCode) { in NumberTest() argument
1082 this.region = regionCode; in NumberTest()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java249 String regionCode = getRegionCodeForShortNumberFromRegionList(number, regionCodes); in isValidShortNumber() local
250 if (regionCodes.size() > 1 && regionCode != null) { in isValidShortNumber()
255 return isValidShortNumberForRegion(number, regionCode); in isValidShortNumber()
396 for (String regionCode : regionCodes) { in getExpectedCost()
397 ShortNumberCost costForRegion = getExpectedCostForRegion(number, regionCode); in getExpectedCost()
430 for (String regionCode : regionCodes) { in getRegionCodeForShortNumberFromRegionList()
431 PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionCode); in getRegionCodeForShortNumberFromRegionList()
435 return regionCode; in getRegionCodeForShortNumberFromRegionList()
456 String getExampleShortNumber(String regionCode) { in getExampleShortNumber() argument
457 PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionCode); in getExampleShortNumber()
[all …]
DPhoneNumberUtil.java1008 private boolean isValidRegionCode(String regionCode) {
1009 return regionCode != null && supportedRegions.contains(regionCode);
1076 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1080 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1108 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1111 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1170 String regionCode = getRegionCodeForCountryCode(countryCallingCode);
1172 PhoneMetadata metadata = getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1184 int countryCallingCode, String regionCode) {
1185 return REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode)
[all …]
DMetadataManager.java104 private static void loadShortNumberMetadataFromFile(String regionCode) { in loadShortNumberMetadataFromFile() argument
106 SHORT_NUMBER_METADATA_FILE_PREFIX + "_" + regionCode); in loadShortNumberMetadataFromFile()
113 regionCodeToShortNumberMetadataMap.put(regionCode, metadata); in loadShortNumberMetadataFromFile()
127 static PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion() argument
128 if (!regionCodeSet.contains(regionCode)) { in getShortNumberMetadataForRegion()
132 if (!regionCodeToShortNumberMetadataMap.containsKey(regionCode)) { in getShortNumberMetadataForRegion()
133 loadShortNumberMetadataFromFile(regionCode); in getShortNumberMetadataForRegion()
136 return regionCodeToShortNumberMetadataMap.get(regionCode); in getShortNumberMetadataForRegion()
DMultiFileMetadataSourceImpl.java75 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument
77 if (!regionToMetadataMap.containsKey(regionCode)) { in getMetadataForRegion()
80 loadMetadataFromFile(currentFilePrefix, regionCode, 0, metadataLoader); in getMetadataForRegion()
83 return regionToMetadataMap.get(regionCode); in getMetadataForRegion()
98 void loadMetadataFromFile(String filePrefix, String regionCode, int countryCallingCode, in loadMetadataFromFile() argument
100 boolean isNonGeoRegion = PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode); in loadMetadataFromFile()
102 (isNonGeoRegion ? String.valueOf(countryCallingCode) : regionCode); in loadMetadataFromFile()
124 regionToMetadataMap.put(regionCode, metadata); in loadMetadataFromFile()
DShortNumberUtil.java63 public boolean connectsToEmergencyNumber(String number, String regionCode) { in connectsToEmergencyNumber() argument
64 return ShortNumberInfo.getInstance().connectsToEmergencyNumber(number, regionCode); in connectsToEmergencyNumber()
77 public boolean isEmergencyNumber(String number, String regionCode) { in isEmergencyNumber() argument
78 return ShortNumberInfo.getInstance().isEmergencyNumber(number, regionCode); in isEmergencyNumber()
DAsYouTypeFormatter.java127 AsYouTypeFormatter(String regionCode) { in AsYouTypeFormatter() argument
128 defaultCountry = regionCode; in AsYouTypeFormatter()
135 private PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument
136 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion()
DMetadataSource.java30 PhoneMetadata getMetadataForRegion(String regionCode); in getMetadataForRegion() argument
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java73 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()
166 String regionCode = phoneUtil.getRegionCodeForNumber(number); in getDescriptionForValidNumber() local
167 if (userRegion.equals(regionCode)) { in getDescriptionForValidNumber()
171 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java60 String regionCode = ""; in doPost() local
81 regionCode = Streams.asString(in).toUpperCase(); in doPost()
97 output = getOutputForSingleNumber(phoneNumber, defaultCountry, languageCode, regionCode); in doPost()
109 (regionCode.length() == 0 ? "" : " (" + regionCode + ")" + "<br>")); in doPost()
170 String phoneNumber, String defaultCountry, String languageCode, String regionCode) { in getOutputForSingleNumber() argument
263 number, new Locale(languageCode, regionCode)), in getOutputForSingleNumber()
287 number, new Locale(languageCode, regionCode)), in getOutputForSingleNumber()
/external/icu/icu4c/source/i18n/
Duregion.cpp21 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status) in uregion_getRegionFromCode() argument
23 return (URegion*)Region::getInstance(regionCode, *status); in uregion_getRegionFromCode()
/external/icu/icu4c/source/i18n/unicode/
Duregion.h133 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status);
/external/libphonenumber/demo/war/
Dphonenumberparser.jsp28 <input type="text" name="languageCode" size="2">-<input type="text" name="regionCode"
/external/robolectric/v3/runtime/
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...