/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/ |
D | ICULocaleServiceProvider.java | 135 for (ULocale uloc : icuLocales) { in getLocales() 136 String language = uloc.getLanguage(); in getLocales() 140 addULocale(uloc, localeSet); in getLocales() 142 if (uloc.getScript().length() > 0 && uloc.getCountry().length() > 0) { in getLocales() 147 locBld.setLocale(uloc); in getLocales() 183 private static void addULocale(ULocale uloc, Set<Locale> locales) { in addULocale() argument 186 if (uloc.getLanguage().equals("nn") && uloc.getScript().length() == 0) { in addULocale() 187 Locale locNN = new Locale(uloc.getLanguage(), uloc.getCountry(), uloc.getVariant()); in addULocale() 192 locales.add(uloc.toLocale()); in addULocale() 196 StringBuilder var = new StringBuilder(uloc.getVariant()); in addULocale() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CurrencyPluralInfo.java | 266 private void initialize(ULocale uloc) { in initialize() argument 267 ulocale = uloc; in initialize() 268 pluralRules = PluralRules.forLocale(uloc); in initialize() 269 setupCurrencyPluralPattern(uloc); in initialize() 272 private void setupCurrencyPluralPattern(ULocale uloc) { in setupCurrencyPluralPattern() argument 275 String numberStylePattern = NumberFormat.getPattern(uloc, NumberFormat.NUMBERSTYLE); in setupCurrencyPluralPattern() 283 Map<String, String> map = CurrencyData.provider.getInstance(uloc, true).getUnitPatterns(); in setupCurrencyPluralPattern()
|
D | NumberFormatServiceShim.java | 99 ULocale uloc = actualLoc[0]; in createInstance() local 100 fmt.setLocale(uloc, uloc); // services make no distinction between actual & valid in createInstance()
|
D | BreakIteratorFactory.java | 153 ULocale uloc = ULocale.forLocale(rb.getLocale()); in createBreakInstance() local 154 iter.setLocale(uloc, uloc); in createBreakInstance()
|
D | NumberFormat.java | 1262 ULocale uloc = getLocale(ULocale.VALID_LOCALE); in getEffectiveCurrency() local 1263 if (uloc == null) { in getEffectiveCurrency() 1264 uloc = ULocale.getDefault(Category.FORMAT); in getEffectiveCurrency() 1266 c = Currency.getInstance(uloc); in getEffectiveCurrency()
|
D | DecimalFormatSymbols.java | 926 ULocale uloc = r.getULocale(); in initialize() local 927 setLocale(uloc, uloc); in initialize()
|
D | RuleBasedNumberFormat.java | 784 ULocale uloc = bundle.getULocale(); in RuleBasedNumberFormat() local 785 setLocale(uloc, uloc); in RuleBasedNumberFormat()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | FormatTests.java | 712 private static DateFormatSymbols getCannedDateFormatSymbols(ULocale uloc) in getCannedDateFormatSymbols() argument 714 DateFormatSymbols dfs =new DateFormatSymbols(GregorianCalendar.class, uloc); in getCannedDateFormatSymbols() 715 String key = uloc.toString(); in getCannedDateFormatSymbols() 723 private static SimpleDateFormat getCannedSimpleDateFormat(String pattern, ULocale uloc) in getCannedSimpleDateFormat() argument 725 DateFormatSymbols dfs = getCannedDateFormatSymbols(uloc); in getCannedSimpleDateFormat() 727 return new SimpleDateFormat(pattern, dfs, uloc); in getCannedSimpleDateFormat() 990 private static DecimalFormatSymbols getCannedDecimalFormatSymbols(ULocale uloc) in getCannedDecimalFormatSymbols() argument 992 DecimalFormatSymbols dfs = new DecimalFormatSymbols(uloc); in getCannedDecimalFormatSymbols() 994 setSymbols(dfs, (String[]) cannedDecimalFormatSymbols.get(uloc.toString())); in getCannedDecimalFormatSymbols() 999 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 | 826 ULocale uloc = inputLocales.get(i); in processLocales() local 828 String language = uloc.getLanguage(); in processLocales() 829 String script = uloc.getScript(); in processLocales() 830 String country = uloc.getCountry(); in processLocales() 831 String variant = uloc.getVariant(); in processLocales() 847 result.add(j, uloc); in processLocales() 852 result.add(j, uloc); in processLocales() 857 result.add(j, uloc); in processLocales() 865 result.add(j, uloc); in processLocales() 871 result.add(j, uloc); in processLocales() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ULocaleTest.java | 157 ULocale uloc = new ULocale("en_Latn_US"); in TestSetULocaleKeywords() local 158 uloc = uloc.setKeywordValue("Foo", "FooValue"); in TestSetULocaleKeywords() 159 if (!"en_Latn_US@foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 160 errln("failed to add foo keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() 162 uloc = uloc.setKeywordValue("Bar", "BarValue"); in TestSetULocaleKeywords() 163 if (!"en_Latn_US@bar=BarValue;foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 164 errln("failed to add bar keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() 166 uloc = uloc.setKeywordValue("BAR", "NewBarValue"); in TestSetULocaleKeywords() 167 if (!"en_Latn_US@bar=NewBarValue;foo=FooValue".equals(uloc.getName())) { in TestSetULocaleKeywords() 168 errln("failed to change bar keyword, got: " + uloc.getName()); in TestSetULocaleKeywords() [all …]
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | TestUtil.java | 31 ULocale uloc = ULocale.forLocale(locale); in toICUExtendedLocale() local 32 if (uloc.getScript().length() == 0) { in toICUExtendedLocale() 41 locBld.setLocale(uloc); in toICUExtendedLocale()
|
D | DateFormatSymbolsTest.java | 190 ULocale uloc = ULocale.forLocale(loc); in TestCalendarKeyword() local 191 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword() 198 … com.ibm.icu.text.DateFormatSymbols icuDfs = com.ibm.icu.text.DateFormatSymbols.getInstance(uloc); in TestCalendarKeyword()
|
D | DecimalFormatSymbolsTest.java | 166 ULocale uloc = ULocale.forLocale(loc); in TestKeywords() local 167 String nsType = uloc.getKeywordValue("numbers"); in TestKeywords() 174 …m.icu.text.DecimalFormatSymbols icuDecfs = com.ibm.icu.text.DecimalFormatSymbols.getInstance(uloc); in TestKeywords()
|
D | NumberFormatTest.java | 298 ULocale uloc = ULocale.forLocale(loc); in TestKeywords() local 299 String nsType = uloc.getKeywordValue("numbers"); in TestKeywords() 306 … com.ibm.icu.text.NumberFormat icuNfmt = com.ibm.icu.text.NumberFormat.getCurrencyInstance(uloc); in TestKeywords()
|
D | CollatorTest.java | 140 ULocale uloc = ULocale.forLocale(loc); in TestCollationKeyword() local 141 String nsType = uloc.getKeywordValue("collation"); in TestCollationKeyword()
|
D | DateFormatTest.java | 205 ULocale uloc = ULocale.forLocale(loc); in TestCalendarKeyword() local 206 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | UResourceBundle.java | 185 ULocale uloc = ULocale.getDefault(); in getBundleInstance() local 186 … return getBundleInstance(baseName, uloc.toString(), ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 205 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); in getBundleInstance() local 207 … return getBundleInstance(baseName, uloc.toString(), ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 248 ULocale uloc = locale == null ? ULocale.getDefault() : ULocale.forLocale(locale); in getBundleInstance() local 249 return getBundleInstance(baseName, uloc.toString(), loader, false); in getBundleInstance()
|
D | ULocale.java | 4124 public static Locale toLocale(ULocale uloc) { in toLocale() argument 4125 return hasScriptsAndUnicodeExtensions ? toLocale7(uloc) : toLocale6(uloc); in toLocale() 4266 ULocale uloc = null; in toULocale6() local 4269 uloc = ULocale.ROOT; in toULocale6() 4279 uloc = new ULocale(getName(locStr), loc); in toULocale6() 4281 return uloc; in toULocale6() 4284 private static Locale toLocale7(ULocale uloc) { in toLocale7() argument 4286 String ulocStr = uloc.getName(); in toLocale7() 4287 if (uloc.getScript().length() > 0 || ulocStr.contains("@")) { in toLocale7() 4294 String tag = uloc.toLanguageTag(); in toLocale7() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | CollatorServiceShim.java | 128 protected Object handleCreate(ULocale uloc, int kind, ICUService srvc) { in CService() argument 129 return makeInstance(uloc); in CService()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | BreakIteratorTest.java | 855 ULocale uloc = null; in TestNullLocale() local 866 brk = BreakIterator.getCharacterInstance(uloc); in TestNullLocale() 876 brk = BreakIterator.getLineInstance(uloc); in TestNullLocale() 886 brk = BreakIterator.getSentenceInstance(uloc); in TestNullLocale() 896 brk = BreakIterator.getTitleInstance(uloc); in TestNullLocale() 906 brk = BreakIterator.getWordInstance(uloc); in TestNullLocale()
|
/external/libvpx/libvpx/ |
D | vpxenc.c | 452 int yloc[4], int uloc[4], int vloc[4]) { in find_mismatch() 488 uloc[0] = uloc[1] = uloc[2] = uloc[3] = -1; in find_mismatch() 500 uloc[0] = i + k; in find_mismatch() 501 uloc[1] = j + l; in find_mismatch() 502 uloc[2] = *(img1->planes[VPX_PLANE_U] + in find_mismatch() 504 uloc[3] = *(img2->planes[VPX_PLANE_U] + in find_mismatch()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICULocaleService.java | 375 ULocale uloc = lkey.currentLocale(); in create() local 376 return handleCreate(uloc, kind, service); in create()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateTimeGeneratorTest.java | 1241 ULocale uloc = new ULocale(testOptionsData[i].locale); in TestOptions() local 1242 DateTimePatternGenerator dtpgen = DateTimePatternGenerator.getInstance(uloc); in TestOptions() 1328 ULocale uloc = new ULocale(localeName); in TestAllFieldPatterns() local 1329 DateTimePatternGenerator dtpgen = DateTimePatternGenerator.getInstance(uloc); in TestAllFieldPatterns()
|
D | TimeZoneFormatTest.java | 881 ULocale uloc = new ULocale((String)testCase[0]); in TestFormat() local 882 TimeZoneFormat tzfmt = TimeZoneFormat.getInstance(uloc); in TestFormat() 892 Locale loc = uloc.toLocale(); in TestFormat()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 725 ULocale uloc = new ULocale(localeString); in TestSearchCollatorElements() local 728 col = (RuleBasedCollator)Collator.getInstance(uloc); in TestSearchCollatorElements()
|