Searched refs:dfs (Results 1 - 13 of 13) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DDecimalFormatSymbolsTest.java39 DecimalFormatSymbols dfs; field in class:DecimalFormatSymbolsTest
55 DecimalFormatSymbols dfs = new DecimalFormatSymbols(new Locale("en",
57 assertEquals("Returned incorrect symbols", '%', dfs.getPercent());
107 assertTrue("Equal objects returned false", dfs.equals(dfs.clone()));
108 dfs.setDigit('B');
109 assertTrue("Un-Equal objects returned true", !dfs
182 dfs.setDecimalSeparator('*');
183 assertEquals("Returned incorrect DecimalSeparator symbol", '*', dfs
191 dfs
500 assertDecimalFormatSymbolsRIFrance(DecimalFormatSymbols dfs) argument
[all...]
H A DDateFormatSymbolsTest.java29 private DateFormatSymbols dfs; field in class:DateFormatSymbolsTest
107 assertTrue("Equal object returned true", dfs.equals(dfs.clone()));
108 dfs.setLocalPatternChars("KKKKKKKKK");
109 assertTrue("Un-Equal objects returned false", !dfs
119 String[] retVal = dfs.getAmPmStrings();
133 String[] retVal = dfs.getEras();
147 String[] retVal = dfs.getMonths();
162 String[] retVal = dfs.getShortMonths();
176 String[] retVal = dfs
[all...]
H A DDecimalFormatTest.java46 DecimalFormatSymbols dfs = new DecimalFormatSymbols();
47 dfs.setNaN("");
49 df.setDecimalFormatSymbols(dfs);
834 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.CANADA);
835 DecimalFormat format1 = new DecimalFormat("'$'1000.0000", dfs);
838 format2.setDecimalFormatSymbols(dfs);
1057 final DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US);
1059 DecimalFormat df = new DecimalFormat("00.0#E0", dfs);
1092 df = new DecimalFormat("#00.0##E0", dfs);
1131 df = new DecimalFormat("#.0E0", dfs);
[all...]
H A DSimpleDateFormatTest.java521 DateFormatSymbols dfs = df.getDateFormatSymbols();
522 assertTrue("Symbols identical", dfs != df.getDateFormatSymbols());
/libcore/luni/src/test/java/libcore/java/text/
H A DDecimalFormatSymbolsTest.java40 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);
41 assertEquals(DecimalFormatSymbols.getInstance(Locale.ROOT), dfs);
64 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US);
65 dfs.setCurrency(Currency.getInstance("USD"));
66 assertEquals("$", dfs.getCurrencySymbol());
67 dfs.setCurrencySymbol("poop");
68 assertEquals("poop", dfs.getCurrencySymbol());
69 dfs.setCurrency(Currency.getInstance("USD"));
70 assertEquals("$", dfs.getCurrencySymbol());
76 DecimalFormatSymbols dfs
[all...]
H A DOldDecimalFormatSymbolsTest.java27 DecimalFormatSymbols dfs; field in class:OldDecimalFormatSymbolsTest
30 dfs = new DecimalFormatSymbols();
79 dfs.setMonetaryDecimalSeparator(',');
81 ',', dfs.getMonetaryDecimalSeparator());
115 dfs.setCurrencySymbol("$");
116 assertEquals("Returned incorrect CurrencySymbol symbol", "$", dfs.getCurrencySymbol());
120 dfs.setMonetaryDecimalSeparator('#');
122 '#', dfs.getMonetaryDecimalSeparator());
142 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.FRANCE);
143 assertEquals("EUR", dfs
[all...]
H A DDateFormatSymbolsTest.java33 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale);
34 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs);
79 private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { argument
81 sdf.setDateFormatSymbols(dfs);
H A DDecimalFormatTest.java35 DecimalFormatSymbols dfs = df.getDecimalFormatSymbols();
36 dfs.setExponentSeparator("-useless-api-");
37 df.setDecimalFormatSymbols(dfs);
/libcore/luni/src/main/java/libcore/icu/
H A DNativeDecimalFormat.java154 public NativeDecimalFormat(String pattern, DecimalFormatSymbols dfs) { argument
156 this.address = open(pattern, dfs.getCurrencySymbol(),
157 dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(),
158 dfs.getGroupingSeparator(), dfs.getInfinity(),
159 dfs.getInternationalCurrencySymbol(), dfs.getMinusSignString(),
160 dfs
267 setDecimalFormatSymbols(final DecimalFormatSymbols dfs) argument
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DExpensiveObjectsBenchmark.java73 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US);
75 dfs.clone();
86 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US);
88 dfs.clone();
/libcore/luni/src/main/java/java/util/
H A DCalendar.java1306 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale);
1309 return dfs.getAmPmStrings();
1311 return (style == LONG) ? dfs.getWeekdays() : dfs.getShortWeekdays();
1313 return dfs.getEras();
1315 return (style == LONG) ? dfs.getMonths() : dfs.getShortMonths();
H A DScanner.java1759 DecimalFormatSymbols dfs = decimalFormat.getDecimalFormatSymbols();
1765 String decimalSeparator = "\\" + dfs.getDecimalSeparator();
1776 String localNaN = dfs.getNaN();
1777 String localeInfinity = dfs.getInfinity();
1849 DecimalFormatSymbols dfs = decimalFormat.getDecimalFormatSymbols();
1854 String groupSeparator = String.valueOf(dfs.getGroupingSeparator());
1860 String decimalSeparator = String.valueOf(dfs.getDecimalSeparator());
1870 if (tokenBuilder.toString().equals(dfs.getNaN())) {
1872 } else if (tokenBuilder.toString().equals(dfs.getInfinity())) {
/libcore/luni/src/main/native/
H A Dlibcore_icu_ICU.cpp398 icu::DecimalFormatSymbols dfs(locale, status);
400 setCharField(env, obj, "decimalSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kDecimalSeparatorSymbol));
401 setCharField(env, obj, "groupingSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kGroupingSeparatorSymbol));
402 setCharField(env, obj, "patternSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kPatternSeparatorSymbol));
403 setStringField(env, obj, "percent", dfs.getSymbol(icu::DecimalFormatSymbols::kPercentSymbol));
404 setCharField(env, obj, "perMill", dfs.getSymbol(icu::DecimalFormatSymbols::kPerMillSymbol));
405 setCharField(env, obj, "monetarySeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kMonetarySeparatorSymbol));
406 setStringField(env, obj, "minusSign", dfs.getSymbol(icu::DecimalFormatSymbols:: kMinusSignSymbol));
407 setStringField(env, obj, "exponentSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kExponentialSymbol));
408 setStringField(env, obj, "infinity", dfs
[all...]

Completed in 236 milliseconds