Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatSymbolsTest.java39 DecimalFormatSymbols dfs; field in DecimalFormatSymbolsTest
55 DecimalFormatSymbols dfs = new DecimalFormatSymbols(new Locale("en", in test_ConstructorLjava_util_Locale() local
57 assertEquals("Returned incorrect symbols", '%', dfs.getPercent()); in test_ConstructorLjava_util_Locale()
107 assertTrue("Equal objects returned false", dfs.equals(dfs.clone())); in test_equalsLjava_lang_Object()
108 dfs.setDigit('B'); in test_equalsLjava_lang_Object()
109 assertTrue("Un-Equal objects returned true", !dfs in test_equalsLjava_lang_Object()
182 dfs.setDecimalSeparator('*'); in test_getDecimalSeparator()
183 assertEquals("Returned incorrect DecimalSeparator symbol", '*', dfs in test_getDecimalSeparator()
191 dfs.setDigit('*'); in test_getDigit()
192 assertEquals("Returned incorrect Digit symbol", '*', dfs.getDigit()); in test_getDigit()
[all …]
DDateFormatSymbolsTest.java29 private DateFormatSymbols dfs; field in DateFormatSymbolsTest
107 assertTrue("Equal object returned true", dfs.equals(dfs.clone())); in test_equalsLjava_lang_Object()
108 dfs.setLocalPatternChars("KKKKKKKKK"); in test_equalsLjava_lang_Object()
109 assertTrue("Un-Equal objects returned false", !dfs in test_equalsLjava_lang_Object()
119 String[] retVal = dfs.getAmPmStrings(); in test_getAmPmStrings()
133 String[] retVal = dfs.getEras(); in test_getEras()
147 String[] retVal = dfs.getMonths(); in test_getMonths()
162 String[] retVal = dfs.getShortMonths(); in test_getShortMonths()
176 String[] retVal = dfs.getShortWeekdays(); in test_getShortWeekdays()
190 String[] retVal = dfs.getWeekdays(); in test_getWeekdays()
[all …]
DDecimalFormatTest.java46 DecimalFormatSymbols dfs = new DecimalFormatSymbols(); in test_setNan_emptyString() local
47 dfs.setNaN(""); in test_setNan_emptyString()
49 df.setDecimalFormatSymbols(dfs); in test_setNan_emptyString()
834 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.CANADA); in testConstructor_stringAndSymbols() local
835 DecimalFormat format1 = new DecimalFormat("'$'1000.0000", dfs); in testConstructor_stringAndSymbols()
838 format2.setDecimalFormatSymbols(dfs); in testConstructor_stringAndSymbols()
1057 final DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in test_formatDouble_scientificNotation() local
1059 DecimalFormat df = new DecimalFormat("00.0#E0", dfs); in test_formatDouble_scientificNotation()
1092 df = new DecimalFormat("#00.0##E0", dfs); in test_formatDouble_scientificNotation()
1131 df = new DecimalFormat("#.0E0", dfs); in test_formatDouble_scientificNotation()
[all …]
DSimpleDateFormatTest.java519 DateFormatSymbols dfs = df.getDateFormatSymbols(); in test_getDateFormatSymbols() local
520 assertTrue("Symbols identical", dfs != df.getDateFormatSymbols()); in test_getDateFormatSymbols()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatSymbolsTest.java40 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale); in checkLocaleIsEquivalentToRoot() local
41 assertEquals(DecimalFormatSymbols.getInstance(Locale.ROOT), dfs); in checkLocaleIsEquivalentToRoot() local
64 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in testSetSameCurrency() local
65 dfs.setCurrency(Currency.getInstance("USD")); in testSetSameCurrency()
66 assertEquals("$", dfs.getCurrencySymbol()); in testSetSameCurrency()
67 dfs.setCurrencySymbol("poop"); in testSetSameCurrency()
68 assertEquals("poop", dfs.getCurrencySymbol()); in testSetSameCurrency()
69 dfs.setCurrency(Currency.getInstance("USD")); in testSetSameCurrency()
70 assertEquals("$", dfs.getCurrencySymbol()); in testSetSameCurrency()
76 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in testSetNulInternationalCurrencySymbol() local
[all …]
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 …]
DDateFormatSymbolsTest.java33 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); in assertLocaleIsEquivalentToRoot() local
34 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs); in assertLocaleIsEquivalentToRoot() local
79 private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { in formatDate() argument
81 sdf.setDateFormatSymbols(dfs); in formatDate()
DNumberFormatTest.java182 DecimalFormatSymbols dfs = ((DecimalFormat) nf).getDecimalFormatSymbols(); in test_customCurrencySymbol() local
183 dfs.setCurrencySymbol("SPECIAL"); in test_customCurrencySymbol()
184 ((DecimalFormat) nf).setDecimalFormatSymbols(dfs); in test_customCurrencySymbol()
192 dfs.setCurrencySymbol("NEW"); in test_customCurrencySymbol()
193 ((DecimalFormat) nf).setDecimalFormatSymbols(dfs); in test_customCurrencySymbol()
DDecimalFormatTest.java35 DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); in test_exponentSeparator() local
36 dfs.setExponentSeparator("-useless-api-"); in test_exponentSeparator()
37 df.setDecimalFormatSymbols(dfs); in test_exponentSeparator()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java719 android.icu.text.DecimalFormatSymbols dfs) { in fromIcuInstance() argument
720 DecimalFormatSymbols result = new DecimalFormatSymbols(dfs.getLocale()); in fromIcuInstance()
721 result.setZeroDigit(dfs.getZeroDigit()); in fromIcuInstance()
722 result.setDigit(dfs.getDigit()); in fromIcuInstance()
723 result.setDecimalSeparator(dfs.getDecimalSeparator()); in fromIcuInstance()
724 result.setGroupingSeparator(dfs.getGroupingSeparator()); in fromIcuInstance()
725 result.setPatternSeparator(dfs.getPatternSeparator()); in fromIcuInstance()
726 result.setPercent(dfs.getPercent()); in fromIcuInstance()
727 result.setPerMill(dfs.getPerMill()); in fromIcuInstance()
728 result.setMonetaryDecimalSeparator(dfs.getMonetaryDecimalSeparator()); in fromIcuInstance()
[all …]
DDateFormatSymbols.java404 DateFormatSymbols dfs = getProviderInstance(locale); in getInstance() local
405 if (dfs != null) { in getInstance()
406 return dfs; in getInstance()
418 DateFormatSymbols dfs = getProviderInstance(locale); in getInstanceRef() local
419 if (dfs != null) { in getInstanceRef()
420 return dfs; in getInstanceRef()
446 DateFormatSymbols dfs = null; in getCachedInstance() local
447 if (ref == null || (dfs = ref.get()) == null) { in getCachedInstance()
448 dfs = new DateFormatSymbols(locale); in getCachedInstance()
449 ref = new SoftReference<DateFormatSymbols>(dfs); in getCachedInstance()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java75 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in timeClonedDateFormatSymbols() local
77 dfs.clone(); in timeClonedDateFormatSymbols()
88 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in timeClonedDecimalFormatSymbols() local
90 dfs.clone(); in timeClonedDecimalFormatSymbols()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp400 icu::DecimalFormatSymbols dfs(locale, status); in setDecimalFormatSymbolsData() local
402 …setCharField(env, obj, "decimalSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kDecimalSepara… in setDecimalFormatSymbolsData()
403 …setCharField(env, obj, "groupingSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kGroupingSepa… in setDecimalFormatSymbolsData()
404 …setCharField(env, obj, "patternSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kPatternSepara… in setDecimalFormatSymbolsData()
405 setStringField(env, obj, "percent", dfs.getSymbol(icu::DecimalFormatSymbols::kPercentSymbol)); in setDecimalFormatSymbolsData()
406 setCharField(env, obj, "perMill", dfs.getSymbol(icu::DecimalFormatSymbols::kPerMillSymbol)); in setDecimalFormatSymbolsData()
407 …setCharField(env, obj, "monetarySeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kMonetarySepa… in setDecimalFormatSymbolsData()
408 …setStringField(env, obj, "minusSign", dfs.getSymbol(icu::DecimalFormatSymbols:: kMinusSignSymbol)); in setDecimalFormatSymbolsData()
409 …setStringField(env, obj, "exponentSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kExponentia… in setDecimalFormatSymbolsData()
410 setStringField(env, obj, "infinity", dfs.getSymbol(icu::DecimalFormatSymbols::kInfinitySymbol)); in setDecimalFormatSymbolsData()
[all …]
/libcore/ojluni/src/main/java/java/util/
DFormatter.java2254 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(l); in getZero() local
2255 return dfs.getZeroDigit(); in getZero()
3967 DateFormatSymbols dfs = DateFormatSymbols.getInstance(l);
3968 ampm = dfs.getAmPmStrings();
4013 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt);
4015 sb.append(dfs.getWeekdays()[i]);
4017 sb.append(dfs.getShortWeekdays()[i]);
4025 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt);
4027 sb.append(dfs.getMonths()[i]);
4029 sb.append(dfs.getShortMonths()[i]);
[all …]
DScanner.java1199 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale); in useLocale() local
1203 groupSeparator = "\\" + dfs.getGroupingSeparator(); in useLocale()
1204 decimalSeparator = "\\" + dfs.getDecimalSeparator(); in useLocale()
1208 nanString = "\\Q" + dfs.getNaN() + "\\E"; in useLocale()
1209 infinityString = "\\Q" + dfs.getInfinity() + "\\E"; in useLocale()