Home
last modified time | relevance | path

Searched refs:countryCode (Results 1 – 25 of 37) sorted by relevance

12

/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DIsoCurrencyParser.java115 private String countryCode; field in IsoCurrencyParser.Data
119 public Data(String countryCode, String name, int numericCode, int minor_unit) { in Data() argument
120 this.countryCode = countryCode; in Data()
127 return countryCode; in getCountryCode()
144 return String.format("[%s,\t%s [%s],\t%d]", name, countryCode, in toString()
145 StandardCodes.make().getData("territory", countryCode), numericCode); in toString()
152 if (0 != (result = countryCode.compareTo(other.countryCode))) return result; in compareTo()
DUnlocode.java316 String countryCode = list[1]; in load() local
317 if (!countryCode.equals(oldCountryCode)) { in load()
319 oldCountryCode = countryCode; in load()
353 subdivision = countryCode + "-" + subdivision; in load()
366 String locode = countryCode + locSuffix; in load()
649 String countryCode = CountryCodeConverter.getCodeFromName(countryName, false); in add() local
650 if (countryCode == null) { in add()
657 countryName = ULocale.getDisplayCountry("und-" + countryCode, ULocale.ENGLISH); in add()
667 … errors2.add("** No matching record for\t" + countryName + "\t" + countryCode + "\t" + cityName); in add()
671 if (x.locode.startsWith(countryCode)) { in add()
[all …]
DTimezoneFormatter.java637 String countryCode = localizedCountry_countryCode.get(inputText); in parse() local
638 if (countryCode == null) countryCode = country; // if not, try raw code in parse()
639 return country_zone.get(countryCode); in parse()
703 String countryCode = matchesPart(path, countryPrefix, "\"]"); in buildParsingInfo() local
704 if (countryCode != null) { in buildParsingInfo()
706 if (name != null) localizedCountry_countryCode.put(name, countryCode); in buildParsingInfo()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DConvertLanguageData.java288 if (rowData.countryCode.equals("ZZ")) continue; in writeNewBasicData2()
298 status_territories.put(BasicLanguageData.Type.primary, rowData.countryCode); in writeNewBasicData2()
302 status_territories.put(BasicLanguageData.Type.secondary, rowData.countryCode); in writeNewBasicData2()
582 private final String countryCode; field in ConvertLanguageData.RowData
600 this.countryCode = country; in RowData()
604 countryGdp = roundToPartsPer(AddPopulationData.getGdp(countryCode).doubleValue(), 1000); in RowData()
605 countryLiteracy = AddPopulationData.getLiteracy(countryCode).doubleValue() / 100.0d; in RowData()
606 countryPopulation = AddPopulationData.getPopulation(countryCode).doubleValue(); in RowData()
612 countryCode = fixCountryCode(row.get(COUNTRY_CODE), row); in RowData()
614 if (!countryCodes.contains(countryCode)) { in RowData()
[all …]
DGenerateG2xG2.java90 for (String countryCode : worldBankInfo.keySet()) { in main()
91 … if (priorityMap.get(countryCode) == null) continue; // only use ones we already have: defaults G4 in main()
92 List<String> values = worldBankInfo.get(countryCode); in main()
95 addPriority("G0", countryCode); in main()
97 addPriority("G1", countryCode); in main()
99 addPriority("G2", countryCode); in main()
100 else if (euCodes.contains(countryCode)) addPriority("G3", countryCode); in main()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
DLocaleNameProviderICU.java21 public String getDisplayCountry(String countryCode, Locale locale) { in getDisplayCountry() argument
22 countryCode = AsciiUtil.toUpperString(countryCode); in getDisplayCountry()
24 .regionDisplayName(countryCode); in getDisplayCountry()
25 if (disp == null || disp.length() == 0 || disp.equals(countryCode)) { in getDisplayCountry()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1809 int countryCode = number.getCountryCode();
1810 if (!hasValidCountryCallingCode(countryCode)) {
1830 if (countryCode == NANPA_COUNTRY_CODE) {
1832 return countryCode + " " + rawInput;
1835 && countryCode == getCountryCodeForValidRegion(regionCallingFrom)) {
1868 String regionCode = getRegionCodeForCountryCode(countryCode);
1870 PhoneMetadata metadataForRegion = getMetadataForRegionOrCallingCode(countryCode, regionCode);
1874 formattedNumber.insert(0, " ").insert(0, countryCode).insert(0, " ")
1885 prefixNumberWithCountryCallingCode(countryCode,
2384 int countryCode = number.getCountryCode();
[all …]
DAsYouTypeFormatter.java607 int countryCode = phoneUtil.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode); in attemptToExtractCountryCallingCode() local
608 if (countryCode == 0) { in attemptToExtractCountryCallingCode()
613 String newRegionCode = phoneUtil.getRegionCodeForCountryCode(countryCode); in attemptToExtractCountryCallingCode()
615 currentMetadata = phoneUtil.getMetadataForNonGeographicalRegion(countryCode); in attemptToExtractCountryCallingCode()
619 String countryCodeString = Integer.toString(countryCode); in attemptToExtractCountryCallingCode()
DPhoneNumberMatcher.java465 String countryCode = Integer.toString(number.getCountryCode()); in allNumberGroupsRemainGrouped() local
466 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length(); in allNumberGroupsRemainGrouped()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java1845 int countryCode = number.getCountryCode();
1846 if (!hasValidCountryCallingCode(countryCode)) {
1866 if (countryCode == NANPA_COUNTRY_CODE) {
1868 return countryCode + " " + rawInput;
1871 && countryCode == getCountryCodeForValidRegion(regionCallingFrom)) {
1904 String regionCode = getRegionCodeForCountryCode(countryCode);
1906 PhoneMetadata metadataForRegion = getMetadataForRegionOrCallingCode(countryCode, regionCode);
1910 formattedNumber.insert(0, " ").insert(0, countryCode).insert(0, " ")
1921 prefixNumberWithCountryCallingCode(countryCode,
2423 int countryCode = number.getCountryCode();
[all …]
DAsYouTypeFormatter.java613 int countryCode = phoneUtil.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode); in attemptToExtractCountryCallingCode() local
614 if (countryCode == 0) { in attemptToExtractCountryCallingCode()
619 String newRegionCode = phoneUtil.getRegionCodeForCountryCode(countryCode); in attemptToExtractCountryCallingCode()
621 currentMetadata = phoneUtil.getMetadataForNonGeographicalRegion(countryCode); in attemptToExtractCountryCallingCode()
625 String countryCodeString = Integer.toString(countryCode); in attemptToExtractCountryCallingCode()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DLocaleUtils.java162 public static List<Locale> languagesByCountry(final String countryCode) { in languagesByCountry() argument
163 if (countryCode == null) { in languagesByCountry()
166 return cLanguagesByCountry.computeIfAbsent(countryCode, in languagesByCountry()
167 …k -> Collections.unmodifiableList(availableLocaleList(locale -> countryCode.equals(locale.getCount… in languagesByCountry()
/external/flatbuffers/dart/test/
Dflex_reader_test.dart577 expect(flx['address']['countryCode'].stringValue, 'XX');
586 () => flx['address']['countryCode'][0],
590 'Key: [0] is not applicable on: //address/countryCode of: ValueType.String')));
613 …'{"address":{"city":"Bla","countryCode":"XX","zip":"12345"},"age":35,"flags":[true,false,true,true…
845 // "countryCode": "XX",
/external/icu/icu4c/source/i18n/
Dtzgnames.cpp542 char countryCode[ULOC_COUNTRY_CAPACITY]; in getGenericLocationName() local
544 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getGenericLocationName()
545 countryCode[ccLen] = 0; in getGenericLocationName()
548 fLocaleDisplayNames->regionDisplayName(countryCode, country); in getGenericLocationName()
785 char countryCode[ULOC_COUNTRY_CAPACITY]; in getPartialLocationName() local
787 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getPartialLocationName()
788 countryCode[ccLen] = 0; in getPartialLocationName()
791 fTimeZoneNames->getReferenceZoneID(mzID, countryCode, regionalGolden); in getPartialLocationName()
794 fLocaleDisplayNames->regionDisplayName(countryCode, location); in getPartialLocationName()
/external/cronet/third_party/icu/source/i18n/
Dtzgnames.cpp542 char countryCode[ULOC_COUNTRY_CAPACITY]; in getGenericLocationName() local
544 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getGenericLocationName()
545 countryCode[ccLen] = 0; in getGenericLocationName()
548 fLocaleDisplayNames->regionDisplayName(countryCode, country); in getGenericLocationName()
785 char countryCode[ULOC_COUNTRY_CAPACITY]; in getPartialLocationName() local
787 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getPartialLocationName()
788 countryCode[ccLen] = 0; in getPartialLocationName()
791 fTimeZoneNames->getReferenceZoneID(mzID, countryCode, regionalGolden); in getPartialLocationName()
794 fLocaleDisplayNames->regionDisplayName(countryCode, location); in getPartialLocationName()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneGenericNames.java239 String countryCode = ZoneMeta.getCanonicalCountry(canonicalTzID, isPrimary); in getGenericLocationName() local
240 if (countryCode != null) { in getGenericLocationName()
243 String country = getLocaleDisplayNames().regionDisplayName(countryCode); in getGenericLocationName()
549 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName() local
550 if (countryCode != null) { in getPartialLocationName()
552 String regionalGolden = _tznames.getReferenceZoneID(mzID, countryCode); in getPartialLocationName()
555 location = getLocaleDisplayNames().regionDisplayName(countryCode); in getPartialLocationName()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTimeZoneGenericNames.java243 String countryCode = ZoneMeta.getCanonicalCountry(canonicalTzID, isPrimary); in getGenericLocationName() local
244 if (countryCode != null) { in getGenericLocationName()
247 String country = getLocaleDisplayNames().regionDisplayName(countryCode); in getGenericLocationName()
553 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName() local
554 if (countryCode != null) { in getPartialLocationName()
556 String regionalGolden = _tznames.getReferenceZoneID(mzID, countryCode); in getPartialLocationName()
559 location = getLocaleDisplayNames().regionDisplayName(countryCode); in getPartialLocationName()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DCeaUtil.java55 int countryCode = seiBuffer.readUnsignedByte(); in consume() local
66 countryCode == COUNTRY_CODE in consume()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DCeaUtil.java55 int countryCode = seiBuffer.readUnsignedByte(); in consume() local
66 countryCode == COUNTRY_CODE in consume()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeter.java180 public Builder setInitialBitrateEstimate(String countryCode) { in setInitialBitrateEstimate() argument
182 getInitialBitrateEstimatesForCountry(Ascii.toUpperCase(countryCode)); in setInitialBitrateEstimate()
223 private static Map<Integer, Long> getInitialBitrateEstimatesForCountry(String countryCode) { in getInitialBitrateEstimatesForCountry() argument
224 int[] groupIndices = getInitialBitrateCountryGroupAssignment(countryCode); in getInitialBitrateEstimatesForCountry()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeter.java180 public Builder setInitialBitrateEstimate(String countryCode) { in setInitialBitrateEstimate() argument
182 getInitialBitrateEstimatesForCountry(Ascii.toUpperCase(countryCode)); in setInitialBitrateEstimate()
223 private static Map<Integer, Long> getInitialBitrateEstimatesForCountry(String countryCode) { in getInitialBitrateEstimatesForCountry() argument
224 int[] groupIndices = getInitialBitrateCountryGroupAssignment(countryCode); in getInitialBitrateEstimatesForCountry()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DExternalTypeCustomResolverTest.java34 protected String countryCode; field in ExternalTypeCustomResolverTest.ClassesWithoutBuilder.CreditCardDetails
74 public void setCountryCode(String countryCode) { in setCountryCode() argument
75 this.countryCode = countryCode; in setCountryCode()
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/
DTelephonyLookup.java230 String countryCode = in processNetworks() local
232 if (countryCode == null) { in processNetworks()
238 processor.processNetwork(mcc, mnc, countryCode, debugInfo); in processNetworks()
/external/cronet/net/data/fuzzer_data/cookies/
Dde98b6c77ee3b3568754214cdc77dfd1d1cc1fb71 countryCode=US; Domain=.cnn.com; Path=/
/external/cldr/tools/cldr-rdf/src/main/java/org/unicode/cldr/tool/
DSubdivisionNode.java631 final String countryCode = entry.getKey(); in printEnglishComp() local
632 if (!countryCode.equals(lastCC)) { in printEnglishComp()
638 lastCC = countryCode; in printEnglishComp()
649 ENGLISH_ICU.regionDisplayName(countryCode) in printEnglishComp()
666 final String countryCode = entry.getKey(); in printEnglishCompFull() local
673 ENGLISH_ICU.regionDisplayName(countryCode) in printEnglishCompFull()

12