Home
last modified time | relevance | path

Searched refs:dfs (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatSymbolsTest.java27 DecimalFormatSymbols dfs; field in OldDecimalFormatSymbolsTest
30 dfs = new DecimalFormatSymbols(); in setUp()
79 dfs.setMonetaryDecimalSeparator(','); in test_getMonetaryDecimalSeparator()
81 ',', dfs.getMonetaryDecimalSeparator()); in test_getMonetaryDecimalSeparator()
115 dfs.setCurrencySymbol("$"); in test_setCurrencySymbolLjava_lang_String()
116 assertEquals("Returned incorrect CurrencySymbol symbol", "$", dfs.getCurrencySymbol()); in test_setCurrencySymbolLjava_lang_String()
120 dfs.setMonetaryDecimalSeparator('#'); in test_setMonetaryDecimalSeparatorC()
122 '#', dfs.getMonetaryDecimalSeparator()); in test_setMonetaryDecimalSeparatorC()
142 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.FRANCE); in test_DecimalFormatSymbols_France() local
143 assertEquals("EUR", dfs.getCurrency().getCurrencyCode()); in test_DecimalFormatSymbols_France()
[all …]
DDecimalFormatSymbolsTest.java28 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale); in checkLocaleIsEquivalentToRoot() local
29 assertEquals(DecimalFormatSymbols.getInstance(Locale.ROOT), dfs); in checkLocaleIsEquivalentToRoot() local
DDateFormatSymbolsTest.java33 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); in assertLocaleIsEquivalentToRoot() local
34 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs); in assertLocaleIsEquivalentToRoot() local
76 private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { in formatDate() argument
78 sdf.setDateFormatSymbols(dfs); in formatDate()
DOldDecimalFormatTest.java444 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.CANADA); in test_ConstructorLjava_lang_StringLjava_text_DecimalFormatSymbols() local
445 DecimalFormat format1 = new DecimalFormat("'$'1000.0000", dfs); in test_ConstructorLjava_lang_StringLjava_text_DecimalFormatSymbols()
448 format2.setDecimalFormatSymbols(dfs); in test_ConstructorLjava_lang_StringLjava_text_DecimalFormatSymbols()
621 final DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() local
623 DecimalFormat df = new DecimalFormat("00.0#E0", dfs); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
650 df = new DecimalFormat("##0.0E0", dfs); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
664 df = new DecimalFormat("#00.0##E0", dfs); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
701 df = new DecimalFormat("#.0E0", dfs); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
710 df = new DecimalFormat("0.#E0", dfs); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
719 df = new DecimalFormat(".0E0", dfs); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
[all …]
DDecimalFormatTest.java33 DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); in test_exponentSeparator() local
34 dfs.setExponentSeparator("-useless-api-"); in test_exponentSeparator()
35 df.setDecimalFormatSymbols(dfs); in test_exponentSeparator()
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java121 public NativeDecimalFormat(String pattern, DecimalFormatSymbols dfs) { in NativeDecimalFormat() argument
123 this.address = open(pattern, dfs.getCurrencySymbol(), in NativeDecimalFormat()
124 dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), in NativeDecimalFormat()
125 dfs.getGroupingSeparator(), dfs.getInfinity(), in NativeDecimalFormat()
126 dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), in NativeDecimalFormat()
127 dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), in NativeDecimalFormat()
128 dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); in NativeDecimalFormat()
217 public void setDecimalFormatSymbols(final DecimalFormatSymbols dfs) { in setDecimalFormatSymbols() argument
218 setDecimalFormatSymbols(this.address, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), in setDecimalFormatSymbols()
219 dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), in setDecimalFormatSymbols()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java73 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in timeClonedDateFormatSymbols() local
75 dfs.clone(); in timeClonedDateFormatSymbols()
86 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in timeClonedDecimalFormatSymbols() local
88 dfs.clone(); in timeClonedDecimalFormatSymbols()
/libcore/luni/src/main/java/java/util/
DCalendar.java1292 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); in getDisplayNameArray() local
1295 return dfs.getAmPmStrings(); in getDisplayNameArray()
1297 return (style == LONG) ? dfs.getWeekdays() : dfs.getShortWeekdays(); in getDisplayNameArray()
1299 return dfs.getEras(); in getDisplayNameArray()
1301 return (style == LONG) ? dfs.getMonths() : dfs.getShortMonths(); in getDisplayNameArray()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp364 DecimalFormatSymbols dfs(locale, status); in setDecimalFormatSymbolsData() local
366 …setCharField(env, obj, "decimalSeparator", dfs.getSymbol(DecimalFormatSymbols::kDecimalSeparatorSy… in setDecimalFormatSymbolsData()
367 …setCharField(env, obj, "groupingSeparator", dfs.getSymbol(DecimalFormatSymbols::kGroupingSeparator… in setDecimalFormatSymbolsData()
368 …setCharField(env, obj, "patternSeparator", dfs.getSymbol(DecimalFormatSymbols::kPatternSeparatorSy… in setDecimalFormatSymbolsData()
369 setCharField(env, obj, "percent", dfs.getSymbol(DecimalFormatSymbols::kPercentSymbol)); in setDecimalFormatSymbolsData()
370 setCharField(env, obj, "perMill", dfs.getSymbol(DecimalFormatSymbols::kPerMillSymbol)); in setDecimalFormatSymbolsData()
371 …setCharField(env, obj, "monetarySeparator", dfs.getSymbol(DecimalFormatSymbols::kMonetarySeparator… in setDecimalFormatSymbolsData()
372 setCharField(env, obj, "minusSign", dfs.getSymbol(DecimalFormatSymbols:: kMinusSignSymbol)); in setDecimalFormatSymbolsData()
373 …setStringField(env, obj, "exponentSeparator", dfs.getSymbol(DecimalFormatSymbols::kExponentialSymb… in setDecimalFormatSymbolsData()
374 setStringField(env, obj, "infinity", dfs.getSymbol(DecimalFormatSymbols::kInfinitySymbol)); in setDecimalFormatSymbolsData()
[all …]