Home
last modified time | relevance | path

Searched refs:languageCode (Results 1 – 22 of 22) sorted by relevance

/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java112 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForValidNumber() argument
113 String langStr = languageCode.getLanguage(); in getDescriptionForValidNumber()
115 String regionStr = languageCode.getCountry(); in getDescriptionForValidNumber()
139 ? areaDescription : getCountryNameForNumber(number, languageCode); in getDescriptionForValidNumber()
164 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, in getDescriptionForValidNumber() argument
171 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForValidNumber()
174 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber()
188 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForNumber() argument
193 return getCountryNameForNumber(number, languageCode); in getDescriptionForNumber()
195 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForNumber()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocalePriorityList.java86 public static Builder add(ULocale... languageCode) { in add() argument
87 return new Builder().add(languageCode); in add()
98 public static Builder add(ULocale languageCode, final double weight) { in add() argument
99 return new Builder().add(languageCode, weight); in add()
285 public Builder add(final ULocale languageCode) { in add() argument
286 return add(languageCode, D1); in add()
297 for (final ULocale languageCode : languageCodes) { in add()
298 add(languageCode, D1); in add()
312 public Builder add(final ULocale languageCode, in add() argument
314 if (languageToWeight.containsKey(languageCode)) { in add()
[all …]
DLocaleMatcher.java260 private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { in getBestMatchInternal() argument
261 languageCode = canonicalize(languageCode); in getBestMatchInternal()
262 final ULocale maximized = addLikelySubtags(languageCode); in getBestMatchInternal()
264 System.out.println("\ngetBestMatchInternal: " + languageCode + ";\t" + maximized); in getBestMatchInternal()
276 final double match = match(languageCode, maximized, tableKey, maxLocale); in getBestMatchInternal()
363 private ULocale addLikelySubtags(ULocale languageCode) { in addLikelySubtags() argument
371 if (languageCode.equals(UNKNOWN_LOCALE)) { in addLikelySubtags()
374 final ULocale result = ULocale.addLikelySubtags(languageCode); in addLikelySubtags()
376 if (result == null || result.equals(languageCode)) { in addLikelySubtags()
377 final String language = languageCode.getLanguage(); in addLikelySubtags()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocalePriorityList.java86 public static Builder add(ULocale... languageCode) { in add() argument
87 return new Builder().add(languageCode); in add()
97 public static Builder add(ULocale languageCode, final double weight) { in add() argument
98 return new Builder().add(languageCode, weight); in add()
272 public Builder add(final ULocale languageCode) { in add() argument
273 return add(languageCode, D1); in add()
283 for (final ULocale languageCode : languageCodes) { in add()
284 add(languageCode, D1); in add()
297 public Builder add(final ULocale languageCode, in add() argument
299 if (languageToWeight.containsKey(languageCode)) { in add()
[all …]
DLocaleMatcher.java253 private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { in getBestMatchInternal() argument
254 languageCode = canonicalize(languageCode); in getBestMatchInternal()
255 final ULocale maximized = addLikelySubtags(languageCode); in getBestMatchInternal()
257 System.out.println("\ngetBestMatchInternal: " + languageCode + ";\t" + maximized); in getBestMatchInternal()
269 final double match = match(languageCode, maximized, tableKey, maxLocale); in getBestMatchInternal()
356 private ULocale addLikelySubtags(ULocale languageCode) { in addLikelySubtags() argument
364 if (languageCode.equals(UNKNOWN_LOCALE)) { in addLikelySubtags()
367 final ULocale result = ULocale.addLikelySubtags(languageCode); in addLikelySubtags()
369 if (result == null || result.equals(languageCode)) { in addLikelySubtags()
370 final String language = languageCode.getLanguage(); in addLikelySubtags()
[all …]
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapper.java73 public String getNameForValidNumber(PhoneNumber number, Locale languageCode) { in getNameForValidNumber() argument
74 String langStr = languageCode.getLanguage(); in getNameForValidNumber()
76 String regionStr = languageCode.getCountry(); in getNameForValidNumber()
91 public String getNameForNumber(PhoneNumber number, Locale languageCode) { in getNameForNumber() argument
94 return getNameForValidNumber(number, languageCode); in getNameForNumber()
109 public String getSafeDisplayName(PhoneNumber number, Locale languageCode) { in getSafeDisplayName() argument
113 return getNameForNumber(number, languageCode); in getSafeDisplayName()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
DLocaleNameProviderICU.java32 public String getDisplayLanguage(String languageCode, Locale locale) { in getDisplayLanguage() argument
33 languageCode = AsciiUtil.toLowerString(languageCode); in getDisplayLanguage()
35 .languageDisplayName(languageCode); in getDisplayLanguage()
36 if (disp == null || disp.length() == 0 || disp.equals(languageCode)) { in getDisplayLanguage()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAndroidInterceptors.java167 static String adjustLanguageCode(String languageCode) {
168 String adjusted = languageCode.toLowerCase(Locale.US);
171 if (languageCode.equals("he")) {
173 } else if (languageCode.equals("id")) {
175 } else if (languageCode.equals("yi")) {
/external/icu/icu4c/source/test/letest/
Dxmlreader.cpp181 le_int32 languageCode = -1; in readTestFile() local
193 languageCode = getLanguageCode(lang); in readTestFile()
195 if (languageCode < 0) { in readTestFile()
240 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
Dgendata.cpp204 le_int32 languageCode = -1; in main() local
220 languageCode = getLanguageCode(lang); in main()
222 if (languageCode < 0) { in main()
309 … engine = LayoutEngine::layoutEngineFactory(font, scriptCode, languageCode, typoFlags, leStatus); in main()
Dxmlreader.h20 le_int32 languageCode,
Dletest.cpp613 le_int32 languageCode = -1; in DataDrivenTest() local
628 languageCode = getLanguageCode(lang); in DataDrivenTest()
630 if (languageCode < 0) { in DataDrivenTest()
693 … engine = LayoutEngine::layoutEngineFactory(font, scriptCode, languageCode, typoFlags, success); in DataDrivenTest()
Dcletest.c447 le_int32 languageCode, in doTestCase() argument
467 engine = le_create(font, scriptCode, languageCode, typoFlags, &status); in doTestCase()
/external/icu/icu4c/source/test/perf/leperf/
Dxmlreader.cpp185 le_int32 languageCode = -1; in readTestFile() local
197 languageCode = getLanguageCode(lang); in readTestFile()
199 if (languageCode < 0) { in readTestFile()
244 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
Dxmlreader.h21 le_int32 languageCode,
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DAndroidInterceptorsTest.java43 private Object adjust(String languageCode) { in adjust() argument
44 return AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor.adjustLanguageCode(languageCode); in adjust()
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DMappingFileProvider.java166 String languageCode = findBestMatchingLanguageCode(setOfLangs, language, script, region); in getFileName() local
167 if (languageCode.length() > 0) { in getFileName()
169 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
/external/libphonenumber/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java67 String languageCode = "en"; // Default languageCode to English if nothing is entered. in doPost() local
86 languageCode = languageEntered; in doPost()
108 Locale geocodingLocale = new Locale(languageCode, regionCode); in doPost()
/external/libphonenumber/demo/war/
Dphonenumberparser.jsp28 <input type="text" name="languageCode" size="2">-<input type="text" name="regionCode"
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTrieMapTest.java85 for (String languageCode : ULocale.getISOLanguages()) { in init()
86 localeName = ULocale.getDisplayName(languageCode, locale); in init()
87 if (!localeName.equals(languageCode)) { in init()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTrieMapTest.java88 for (String languageCode : ULocale.getISOLanguages()) { in init()
89 localeName = ULocale.getDisplayName(languageCode, locale); in init()
90 if (!localeName.equals(languageCode)) { in init()
/external/icu/icu4c/source/layoutex/
DParagraphLayout.cpp862 le_int32 languageCode; member
960 return languageMap[i].languageCode; in getLanguageCode()