Home
last modified time | relevance | path

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

/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/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/ojluni/src/main/java/java/util/
DCurrency.java205 public String getSymbol() { in getSymbol() method in Currency
206 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol()
220 public String getSymbol(Locale locale) { in getSymbol() method in Currency
225 return icuCurrency.getSymbol(locale); in getSymbol()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp422 …setCharField(env, obj, "decimalSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kDecimalSepara… in setDecimalFormatSymbolsData()
423 …setCharField(env, obj, "groupingSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kGroupingSepa… in setDecimalFormatSymbolsData()
424 …setCharField(env, obj, "patternSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kPatternSepara… in setDecimalFormatSymbolsData()
425 setStringField(env, obj, "percent", dfs.getSymbol(icu::DecimalFormatSymbols::kPercentSymbol)); in setDecimalFormatSymbolsData()
426 setCharField(env, obj, "perMill", dfs.getSymbol(icu::DecimalFormatSymbols::kPerMillSymbol)); in setDecimalFormatSymbolsData()
427 …setCharField(env, obj, "monetarySeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kMonetarySepa… in setDecimalFormatSymbolsData()
428 …setStringField(env, obj, "minusSign", dfs.getSymbol(icu::DecimalFormatSymbols:: kMinusSignSymbol)); in setDecimalFormatSymbolsData()
429 …setStringField(env, obj, "exponentSeparator", dfs.getSymbol(icu::DecimalFormatSymbols::kExponentia… in setDecimalFormatSymbolsData()
430 setStringField(env, obj, "infinity", dfs.getSymbol(icu::DecimalFormatSymbols::kInfinitySymbol)); in setDecimalFormatSymbolsData()
431 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.java1894 assertEquals("Returned incorrect currency symbol", currency.getSymbol(locale), in test_setCurrency()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java443 currencySymbol = currency.getSymbol(locale); in setInternationalCurrencySymbol()
480 currencySymbol = currency.getSymbol(locale); in setCurrency()
689 currencySymbol = currency.getSymbol(locale); in initialize()
DDecimalFormat.java1401 || !currency.getSymbol().equals(symbols.getCurrencySymbol())) { in setCurrency()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java299 String locale1Symbol = currency.getSymbol(locale1); in testSetCurrency_symbolOrigin()
300 String locale2Symbol = currency.getSymbol(locale2); in testSetCurrency_symbolOrigin()