/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | DecimalFormatSymbolsTest.java | 39 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 D | DateFormatSymbolsTest.java | 29 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 D | DecimalFormatTest.java | 46 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 D | SimpleDateFormatTest.java | 519 DateFormatSymbols dfs = df.getDateFormatSymbols(); 520 assertTrue("Symbols identical", dfs != df.getDateFormatSymbols());
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldDecimalFormatSymbolsTest.java | 27 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 D | DecimalFormatSymbolsTest.java | 40 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 150 fromIcuInstance( android.icu.text.DecimalFormatSymbols dfs) argument 156 compareDfs(DecimalFormatSymbols dfs, android.icu.text.DecimalFormatSymbols icuSymb) argument [all...] |
H A D | DateFormatSymbolsTest.java | 34 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); 35 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs); 80 private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { argument 82 sdf.setDateFormatSymbols(dfs); 167 DateFormatSymbols dfs = DateFormatSymbols.getInstance(); 168 String[][] zoneStrings = dfs.getZoneStrings(); 171 dfs.setZoneStrings(zoneStrings); 179 DateFormatSymbols dfs = DateFormatSymbols.getInstance(); 181 assertFalse("Newly created DFS should have no zoneStrings", hasZoneStringsFieldValue(dfs)); 182 dfs 199 hasZoneStringsFieldValue(DateFormatSymbols dfs) argument [all...] |
H A D | NumberFormatTest.java | 182 DecimalFormatSymbols dfs = ((DecimalFormat) nf).getDecimalFormatSymbols(); 183 dfs.setCurrencySymbol("SPECIAL"); 184 ((DecimalFormat) nf).setDecimalFormatSymbols(dfs); 192 dfs.setCurrencySymbol("NEW"); 193 ((DecimalFormat) nf).setDecimalFormatSymbols(dfs);
|
H A D | DecimalFormatTest.java | 35 DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); 36 dfs.setExponentSeparator("-useless-api-"); 37 df.setDecimalFormatSymbols(dfs);
|
H A D | SimpleDateFormatTest.java | 572 DateFormatSymbols dfs = dateFormat.getDateFormatSymbols(); 573 dfs.setZoneStrings(dfs.getZoneStrings()); 574 dateFormat.setDateFormatSymbols(dfs);
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | DecimalFormatSymbols.java | 786 android.icu.text.DecimalFormatSymbols dfs) { 787 DecimalFormatSymbols result = new DecimalFormatSymbols(dfs.getLocale()); 788 result.setZeroDigit(dfs.getZeroDigit()); 789 result.setDigit(dfs.getDigit()); 790 result.setDecimalSeparator(dfs.getDecimalSeparator()); 791 result.setGroupingSeparator(dfs.getGroupingSeparator()); 792 result.setPatternSeparator(dfs.getPatternSeparator()); 793 result.setPercent(dfs.getPercent()); 794 result.setPerMill(dfs.getPerMill()); 795 result.setMonetaryDecimalSeparator(dfs 785 fromIcuInstance( android.icu.text.DecimalFormatSymbols dfs) argument [all...] |
H A D | DateFormatSymbols.java | 421 DateFormatSymbols dfs = null; 422 if (ref == null || (dfs = ref.get()) == null) { 423 dfs = new DateFormatSymbols(locale); 424 ref = new SoftReference<DateFormatSymbols>(dfs); 429 dfs = y; 436 return dfs; 782 DateFormatSymbols dfs; 783 if (ref != null && (dfs = ref.get()) != null) { 784 copyMembers(dfs, this);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | ExpensiveObjectsBenchmark.java | 75 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); 77 dfs.clone(); 88 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); 90 dfs.clone();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Formatter.java | 2286 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(l); 2287 return dfs.getZeroDigit(); 3998 DateFormatSymbols dfs = DateFormatSymbols.getInstance(l); 3999 ampm = dfs.getAmPmStrings(); 4044 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt); 4046 sb.append(dfs.getWeekdays()[i]); 4048 sb.append(dfs.getShortWeekdays()[i]); 4056 DateFormatSymbols dfs = DateFormatSymbols.getInstance(lt); 4058 sb.append(dfs.getMonths()[i]); 4060 sb.append(dfs [all...] |
H A D | Scanner.java | 168 * <tt>dfs</tt>. 173 * <i>i.e.,</i> <tt>dfs.</tt>{@link 178 * <i>i.e.,</i> <tt>dfs.</tt>{@link 204 * <i>i.e.,</i> <tt>dfs.</tt>{@link 209 * values, <i>i.e.,</i> <tt>dfs.</tt>{@link 1199 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale); 1203 groupSeparator = "\\" + dfs.getGroupingSeparator(); 1204 decimalSeparator = "\\" + dfs.getDecimalSeparator(); 1208 nanString = "\\Q" + dfs.getNaN() + "\\E"; 1209 infinityString = "\\Q" + dfs [all...] |
/libcore/luni/src/main/native/ |
H A D | libcore_icu_ICU.cpp | 420 icu::DecimalFormatSymbols dfs(locale, status); 422 setCharField(env, obj, "decimalSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kDecimalSeparatorSymbol)); 423 setCharField(env, obj, "groupingSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kGroupingSeparatorSymbol)); 424 setCharField(env, obj, "patternSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kPatternSeparatorSymbol)); 425 setStringField(env, obj, "percent", dfs.getSymbol(icu::DecimalFormatSymbols::kPercentSymbol)); 426 setCharField(env, obj, "perMill", dfs.getSymbol(icu::DecimalFormatSymbols::kPerMillSymbol)); 427 setCharField(env, obj, "monetarySeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kMonetarySeparatorSymbol)); 428 setStringField(env, obj, "minusSign", dfs.getSymbol(icu::DecimalFormatSymbols:: kMinusSignSymbol)); 429 setStringField(env, obj, "exponentSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kExponentialSymbol)); 430 setStringField(env, obj, "infinity", dfs [all...] |