/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/ |
D | ICULocaleServiceProvider.java | 137 for (ULocale uloc : icuLocales) { in getLocales() 138 String language = uloc.getLanguage(); in getLocales() 142 addULocale(uloc, localeSet); in getLocales() 144 if (uloc.getScript().length() > 0 && uloc.getCountry().length() > 0) { in getLocales() 149 locBld.setLocale(uloc); in getLocales() 185 private static void addULocale(ULocale uloc, Set<Locale> locales) { in addULocale() argument 188 if (uloc.getLanguage().equals("nn") && uloc.getScript().length() == 0) { in addULocale() 189 Locale locNN = new Locale(uloc.getLanguage(), uloc.getCountry(), uloc.getVariant()); in addULocale() 194 locales.add(uloc.toLocale()); in addULocale() 198 StringBuilder var = new StringBuilder(uloc.getVariant()); in addULocale() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CurrencyPluralInfo.java | 251 private void initialize(ULocale uloc) { in initialize() argument 252 ulocale = uloc; in initialize() 253 pluralRules = PluralRules.forLocale(uloc); in initialize() 254 setupCurrencyPluralPattern(uloc); in initialize() 257 private void setupCurrencyPluralPattern(ULocale uloc) { in setupCurrencyPluralPattern() argument 260 String numberStylePattern = NumberFormat.getPattern(uloc, NumberFormat.NUMBERSTYLE); in setupCurrencyPluralPattern() 268 Map<String, String> map = CurrencyData.provider.getInstance(uloc, true).getUnitPatterns(); in setupCurrencyPluralPattern()
|
D | NumberFormatServiceShim.java | 102 ULocale uloc = actualLoc[0]; in createInstance() local 103 fmt.setLocale(uloc, uloc); // services make no distinction between actual & valid in createInstance()
|
D | BreakIteratorFactory.java | 163 ULocale uloc = ULocale.forLocale(rb.getLocale()); in createBreakInstance() local 164 iter.setLocale(uloc, uloc); in createBreakInstance()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CurrencyPluralInfo.java | 268 private void initialize(ULocale uloc) { in initialize() argument 269 ulocale = uloc; in initialize() 270 pluralRules = PluralRules.forLocale(uloc); in initialize() 271 setupCurrencyPluralPattern(uloc); in initialize() 274 private void setupCurrencyPluralPattern(ULocale uloc) { in setupCurrencyPluralPattern() argument 277 String numberStylePattern = NumberFormat.getPattern(uloc, NumberFormat.NUMBERSTYLE); in setupCurrencyPluralPattern() 285 Map<String, String> map = CurrencyData.provider.getInstance(uloc, true).getUnitPatterns(); in setupCurrencyPluralPattern()
|
D | NumberFormatServiceShim.java | 101 ULocale uloc = actualLoc[0]; in createInstance() local 102 fmt.setLocale(uloc, uloc); // services make no distinction between actual & valid in createInstance()
|
D | BreakIteratorFactory.java | 162 ULocale uloc = ULocale.forLocale(rb.getLocale()); in createBreakInstance() local 163 iter.setLocale(uloc, uloc); in createBreakInstance()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
D | FormatHandler.java | 715 private static DateFormatSymbols getCannedDateFormatSymbols(ULocale uloc) in getCannedDateFormatSymbols() argument 717 DateFormatSymbols dfs =new DateFormatSymbols(GregorianCalendar.class, uloc); in getCannedDateFormatSymbols() 718 String key = uloc.toString(); in getCannedDateFormatSymbols() 726 private static SimpleDateFormat getCannedSimpleDateFormat(String pattern, ULocale uloc) in getCannedSimpleDateFormat() argument 728 DateFormatSymbols dfs = getCannedDateFormatSymbols(uloc); in getCannedSimpleDateFormat() 732 SimpleDateFormat cannedSDF = new SimpleDateFormat(pattern, dfs, uloc); in getCannedSimpleDateFormat() 997 private static DecimalFormatSymbols getCannedDecimalFormatSymbols(ULocale uloc) in getCannedDecimalFormatSymbols() argument 999 DecimalFormatSymbols dfs = new DecimalFormatSymbols(uloc); in getCannedDecimalFormatSymbols() 1001 setSymbols(dfs, (String[]) cannedDecimalFormatSymbols.get(uloc.toString())); in getCannedDecimalFormatSymbols() 1006 private static DecimalFormat getCannedDecimalFormat(String pattern, ULocale uloc) in getCannedDecimalFormat() argument [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | FormatHandler.java | 714 private static DateFormatSymbols getCannedDateFormatSymbols(ULocale uloc) in getCannedDateFormatSymbols() argument 716 DateFormatSymbols dfs =new DateFormatSymbols(GregorianCalendar.class, uloc); in getCannedDateFormatSymbols() 717 String key = uloc.toString(); in getCannedDateFormatSymbols() 725 private static SimpleDateFormat getCannedSimpleDateFormat(String pattern, ULocale uloc) in getCannedSimpleDateFormat() argument 727 DateFormatSymbols dfs = getCannedDateFormatSymbols(uloc); in getCannedSimpleDateFormat() 731 SimpleDateFormat cannedSDF = new SimpleDateFormat(pattern, dfs, uloc); in getCannedSimpleDateFormat() 996 private static DecimalFormatSymbols getCannedDecimalFormatSymbols(ULocale uloc) in getCannedDecimalFormatSymbols() argument 998 DecimalFormatSymbols dfs = new DecimalFormatSymbols(uloc); in getCannedDecimalFormatSymbols() 1000 setSymbols(dfs, (String[]) cannedDecimalFormatSymbols.get(uloc.toString())); in getCannedDecimalFormatSymbols() 1005 private static DecimalFormat getCannedDecimalFormat(String pattern, ULocale uloc) in getCannedDecimalFormat() argument [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
D | GlobalizationPreferences.java | 828 ULocale uloc = inputLocales.get(i); in processLocales() local 830 String language = uloc.getLanguage(); in processLocales() 831 String script = uloc.getScript(); in processLocales() 832 String country = uloc.getCountry(); in processLocales() 833 String variant = uloc.getVariant(); in processLocales() 849 result.add(j, uloc); in processLocales() 854 result.add(j, uloc); in processLocales() 859 result.add(j, uloc); in processLocales() 867 result.add(j, uloc); in processLocales() 873 result.add(j, uloc); in processLocales() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GlobalizationPreferences.java | 797 ULocale uloc = inputLocales.get(i); in processLocales() local 799 String language = uloc.getLanguage(); in processLocales() 800 String script = uloc.getScript(); in processLocales() 801 String country = uloc.getCountry(); in processLocales() 802 String variant = uloc.getVariant(); in processLocales() 818 result.add(j, uloc); in processLocales() 823 result.add(j, uloc); in processLocales() 828 result.add(j, uloc); in processLocales() 836 result.add(j, uloc); in processLocales() 842 result.add(j, uloc); in processLocales() [all …]
|
D | UResourceBundle.java | 184 ULocale uloc = ULocale.getDefault(); in getBundleInstance() local 185 … return getBundleInstance(baseName, uloc.getBaseName(), ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 203 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); in getBundleInstance() local 205 return getBundleInstance(baseName, uloc.getBaseName(), in getBundleInstance() 244 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); in getBundleInstance() local 245 return getBundleInstance(baseName, uloc.getBaseName(), loader, false); in getBundleInstance()
|
D | ULocale.java | 3985 public static Locale toLocale(ULocale uloc) { in toLocale() argument 3986 return hasScriptsAndUnicodeExtensions ? toLocale7(uloc) : toLocale6(uloc); in toLocale() 4127 ULocale uloc = null; in toULocale6() local 4130 uloc = ULocale.ROOT; in toULocale6() 4140 uloc = new ULocale(getName(locStr), loc); in toULocale6() 4142 return uloc; in toULocale6() 4145 private static Locale toLocale7(ULocale uloc) { in toLocale7() argument 4147 String ulocStr = uloc.getName(); in toLocale7() 4148 if (uloc.getScript().length() > 0 || ulocStr.contains("@")) { in toLocale7() 4155 String tag = uloc.toLanguageTag(); in toLocale7() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ULocaleTest.java | 174 ULocale uloc = new ULocale("en_Latn_US"); in TestSetULocaleKeywords() local 175 uloc = uloc.setKeywordValue("Foo", "FooValue"); in TestSetULocaleKeywords() 176 if (!"en_Latn_US@foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 177 errln("failed to add foo keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() 179 uloc = uloc.setKeywordValue("Bar", "BarValue"); in TestSetULocaleKeywords() 180 if (!"en_Latn_US@bar=BarValue;foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 181 errln("failed to add bar keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() 183 uloc = uloc.setKeywordValue("BAR", "NewBarValue"); in TestSetULocaleKeywords() 184 if (!"en_Latn_US@bar=NewBarValue;foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 185 errln("failed to change bar keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ULocaleTest.java | 175 ULocale uloc = new ULocale("en_Latn_US"); in TestSetULocaleKeywords() local 176 uloc = uloc.setKeywordValue("Foo", "FooValue"); in TestSetULocaleKeywords() 177 if (!"en_Latn_US@foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 178 errln("failed to add foo keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() 180 uloc = uloc.setKeywordValue("Bar", "BarValue"); in TestSetULocaleKeywords() 181 if (!"en_Latn_US@bar=BarValue;foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 182 errln("failed to add bar keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() 184 uloc = uloc.setKeywordValue("BAR", "NewBarValue"); in TestSetULocaleKeywords() 185 if (!"en_Latn_US@bar=NewBarValue;foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 186 errln("failed to change bar keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() [all …]
|
/external/libvpx/libvpx/examples/ |
D | vp9cx_set_ref.c | 105 int uloc[4], int vloc[4]) { in find_mismatch() 141 uloc[0] = uloc[1] = uloc[2] = uloc[3] = -1; in find_mismatch() 153 uloc[0] = i + k; in find_mismatch() 154 uloc[1] = j + l; in find_mismatch() 155 uloc[2] = *(img1->planes[VPX_PLANE_U] + in find_mismatch() 157 uloc[3] = *(img2->planes[VPX_PLANE_U] + in find_mismatch()
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | TestUtil.java | 35 ULocale uloc = ULocale.forLocale(locale); in toICUExtendedLocale() local 36 if (uloc.getScript().length() == 0) { in toICUExtendedLocale() 45 locBld.setLocale(uloc); in toICUExtendedLocale()
|
D | DateFormatSymbolsTest.java | 195 ULocale uloc = ULocale.forLocale(loc); in TestCalendarKeyword() local 196 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword() 203 … com.ibm.icu.text.DateFormatSymbols icuDfs = com.ibm.icu.text.DateFormatSymbols.getInstance(uloc); in TestCalendarKeyword()
|
D | DecimalFormatSymbolsTest.java | 170 ULocale uloc = ULocale.forLocale(loc); in TestKeywords() local 171 String nsType = uloc.getKeywordValue("numbers"); in TestKeywords() 178 …m.icu.text.DecimalFormatSymbols icuDecfs = com.ibm.icu.text.DecimalFormatSymbols.getInstance(uloc); in TestKeywords()
|
D | NumberFormatTest.java | 301 ULocale uloc = ULocale.forLocale(loc); in TestKeywords() local 302 String nsType = uloc.getKeywordValue("numbers"); in TestKeywords() 309 … com.ibm.icu.text.NumberFormat icuNfmt = com.ibm.icu.text.NumberFormat.getCurrencyInstance(uloc); in TestKeywords()
|
D | CollatorTest.java | 143 ULocale uloc = ULocale.forLocale(loc); in TestCollationKeyword() local 144 String nsType = uloc.getKeywordValue("collation"); in TestCollationKeyword()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | UResourceBundle.java | 189 ULocale uloc = ULocale.getDefault(); in getBundleInstance() local 190 … return getBundleInstance(baseName, uloc.getBaseName(), ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 209 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); in getBundleInstance() local 211 return getBundleInstance(baseName, uloc.getBaseName(), in getBundleInstance() 252 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); in getBundleInstance() local 253 return getBundleInstance(baseName, uloc.getBaseName(), loader, false); in getBundleInstance()
|
D | ULocale.java | 4171 public static Locale toLocale(ULocale uloc) { in toLocale() argument 4172 return hasScriptsAndUnicodeExtensions ? toLocale7(uloc) : toLocale6(uloc); in toLocale() 4313 ULocale uloc = null; in toULocale6() local 4316 uloc = ULocale.ROOT; in toULocale6() 4326 uloc = new ULocale(getName(locStr), loc); in toULocale6() 4328 return uloc; in toULocale6() 4331 private static Locale toLocale7(ULocale uloc) { in toLocale7() argument 4333 String ulocStr = uloc.getName(); in toLocale7() 4334 if (uloc.getScript().length() > 0 || ulocStr.contains("@")) { in toLocale7() 4341 String tag = uloc.toLanguageTag(); in toLocale7() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Currency.java | 281 public String getSymbol(ULocale uloc) { in getSymbol() argument 282 return currency.getSymbol(uloc.toLocale()); in getSymbol()
|
D | ULocale.java | 3487 public static Locale toLocale(ULocale uloc) { in toLocale() argument 3488 return isJava7orNewer ? toLocale7(uloc) : toLocale6(uloc); in toLocale() 3629 ULocale uloc = null; in toULocale6() local 3632 uloc = ULocale.ROOT; in toULocale6() 3642 uloc = new ULocale(getName(locStr), loc); in toULocale6() 3644 return uloc; in toULocale6() 3647 private static Locale toLocale7(ULocale uloc) { in toLocale7() argument 3649 String ulocStr = uloc.getName(); in toLocale7() 3650 if (uloc.getScript().length() > 0 || ulocStr.contains("@")) { in toLocale7() 3657 String tag = uloc.toLanguageTag(); in toLocale7() [all …]
|