Home
last modified time | relevance | path

Searched refs:getSymbol (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCurrencyTest.java159 assertEquals("currK.getSymbol()", "\u20a9", currK.getSymbol()); in test_getSymbol()
161 assertEquals("currI.getSymbol()", "IEP", currI.getSymbol()); in test_getSymbol()
163 assertEquals("currUS.getSymbol()", "$", currUS.getSymbol()); in test_getSymbol()
167 assertEquals("currK.getSymbol()", "\u20a9", currK.getSymbol()); in test_getSymbol()
168 assertEquals("currI.getSymbol()", "IEP", currI.getSymbol()); in test_getSymbol()
169 assertEquals("currUS.getSymbol()", "US$", currUS.getSymbol()); in test_getSymbol()
178 assertEquals("currK.getSymbol()", "\u20a9", currK.getSymbol()); in test_getSymbol()
179 assertEquals("currI.getSymbol()", "IEP", currI.getSymbol()); in test_getSymbol()
180 assertEquals("currUS.getSymbol()", "US$", currUS.getSymbol()); in test_getSymbol()
255 if (currE.getSymbol(loc1[i]).equals(euro[j])) { in test_getSymbolLjava_util_Locale()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DCurrencyTest.java35 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); in test_getSymbol_fallback()
40 assertEquals("DEM", currency.getSymbol(Locale.FRANCE)); in test_getSymbol_locale()
41 assertEquals("DM", currency.getSymbol(Locale.GERMANY)); in test_getSymbol_locale()
42 assertEquals("DEM", currency.getSymbol(Locale.US)); in test_getSymbol_locale()
55 assertEquals("DM", currency.getSymbol()); in test_getSymbol_noLocaleArgument()
135 assertEquals("R$", Currency.getInstance(pt_BR).getSymbol(pt_BR)); in test_getSymbol_38622()
136 assertEquals("R$", Currency.getInstance(pt_BR).getSymbol(pt_PT)); in test_getSymbol_38622()
137 assertEquals("€", Currency.getInstance(pt_PT).getSymbol(pt_BR)); in test_getSymbol_38622()
138 assertEquals("€", Currency.getInstance(pt_PT).getSymbol(pt_PT)); in test_getSymbol_38622()
144 currency.getSymbol(null); in test_nullLocales()
/libcore/ojluni/src/main/java/java/util/
DCurrency.java464 public String getSymbol() { in getSymbol() method in Currency
465 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol()
479 public String getSymbol(Locale locale) { in getSymbol() method in Currency
497 return icuCurrency.getSymbol(locale); in getSymbol()
/libcore/luni/src/test/java/libcore/libcore/icu/
DICUCurrencyTest.java39 assertEquals(unknownCurrencySymbol, c.getSymbol(Locale.ROOT)); in test_fallbackCurrencySymbolForUnknownLocale()
43 assertEquals(unknownCurrencySymbol, ac.getSymbol(android.icu.util.ULocale.ROOT)); in test_fallbackCurrencySymbolForUnknownLocale()
/libcore/luni/src/test/native/
Dlibcore_libcore_icu_LocaleDataTest.cpp186 …setCharField(env, obj, "decimalSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kDecimalSepara… in setDecimalFormatSymbolsData()
187 …setCharField(env, obj, "groupingSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kGroupingSepa… in setDecimalFormatSymbolsData()
188 …setCharField(env, obj, "patternSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kPatternSepara… in setDecimalFormatSymbolsData()
189 setStringField(env, obj, "percent", dfs.getSymbol(icu::DecimalFormatSymbols::kPercentSymbol)); in setDecimalFormatSymbolsData()
190 setStringField(env, obj, "perMill", dfs.getSymbol(icu::DecimalFormatSymbols::kPerMillSymbol)); in setDecimalFormatSymbolsData()
191 …setCharField(env, obj, "monetarySeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kMonetarySepa… in setDecimalFormatSymbolsData()
192 …setStringField(env, obj, "minusSign", dfs.getSymbol(icu::DecimalFormatSymbols:: kMinusSignSymbol)); in setDecimalFormatSymbolsData()
193 …setStringField(env, obj, "exponentSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kExponentia… in setDecimalFormatSymbolsData()
194 setStringField(env, obj, "infinity", dfs.getSymbol(icu::DecimalFormatSymbols::kInfinitySymbol)); in setDecimalFormatSymbolsData()
195 setStringField(env, obj, "NaN", dfs.getSymbol(icu::DecimalFormatSymbols::kNaNSymbol)); in setDecimalFormatSymbolsData()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatSymbolsTest.java299 assertEquals("Returned incorrect currency symbol", currency.getSymbol( in test_setCurrencyLjava_util_Currency()
377 .getSymbol(locale), dfs.getCurrencySymbol()); in test_setInternationalCurrencySymbolLjava_lang_String()
DDecimalFormatTest.java1918 assertEquals("Returned incorrect currency symbol", currency.getSymbol(locale), in test_setCurrency()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java454 currencySymbol = currency.getSymbol(locale); in setInternationalCurrencySymbol()
492 currencySymbol = currency.getSymbol(locale); in setCurrency()
713 currencySymbol = currency.getSymbol(locale); in initialize()
DDecimalFormat.java4102 || !currency.getSymbol().equals(symbols.getCurrencySymbol())) { in setCurrency()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java316 assertCurrencyFormat(currency.getSymbol(locale) + formattedZero, "\u00a40", dfs, in testCurrencySymbolSpacing()
318 assertCurrencyFormat(formattedZero + currency.getSymbol(locale), "0\u00a4", dfs, in testCurrencySymbolSpacing()
346 String locale1Symbol = currency.getSymbol(locale1); in testSetCurrency_symbolOrigin()
347 String locale2Symbol = currency.getSymbol(locale2); in testSetCurrency_symbolOrigin()