Home
last modified time | relevance | path

Searched refs:getSymbol (Results 1 – 11 of 11) 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()
256 if (currE.getSymbol(loc1[i]).equals(euro[j])) { in test_getSymbolLjava_util_Locale()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DCurrencyTest.java37 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); in test_getSymbol_fallback()
42 assertEquals("DEM", currency.getSymbol(Locale.FRANCE)); in test_getSymbol_locale()
43 assertEquals("DM", currency.getSymbol(Locale.GERMANY)); in test_getSymbol_locale()
44 assertEquals("DEM", currency.getSymbol(Locale.US)); in test_getSymbol_locale()
57 assertEquals("DM", currency.getSymbol()); in test_getSymbol_noLocaleArgument()
137 assertEquals("R$", Currency.getInstance(pt_BR).getSymbol(pt_BR)); in test_getSymbol_38622()
138 assertEquals("R$", Currency.getInstance(pt_BR).getSymbol(pt_PT)); in test_getSymbol_38622()
139 assertEquals("€", Currency.getInstance(pt_PT).getSymbol(pt_BR)); in test_getSymbol_38622()
140 assertEquals("€", Currency.getInstance(pt_PT).getSymbol(pt_PT)); in test_getSymbol_38622()
146 currency.getSymbol(null); in test_nullLocales()
/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/ojluni/src/main/java/java/util/
DCurrency.java530 public String getSymbol() { in getSymbol() method in Currency
531 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol()
546 public String getSymbol(Locale locale) { in getSymbol() method in Currency
565 return icuCurrency.getSymbol(locale); in getSymbol()
/libcore/luni/src/test/java/libcore/highmemorytest/java/text/
DDecimalFormatTest.java50 assertCurrencyFormat(currency.getSymbol(locale) + formattedZero, "\u00a40", dfs, in testCurrencySymbolSpacing()
52 assertCurrencyFormat(formattedZero + currency.getSymbol(locale), "0\u00a4", dfs, in testCurrencySymbolSpacing()
/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.java1919 assertEquals("Returned incorrect currency symbol", currency.getSymbol(locale), in test_setCurrency()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java471 currencySymbol = currency.getSymbol(locale); in setInternationalCurrencySymbol()
512 currencySymbol = currency.getSymbol(locale); in setCurrency()
962 currencySymbol = currency.getSymbol(locale);
DDecimalFormat.java4287 || !currency.getSymbol().equals(symbols.getCurrencySymbol())) { in setCurrency()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java428 String locale1Symbol = currency.getSymbol(locale1); in testSetCurrency_symbolOrigin()
429 String locale2Symbol = currency.getSymbol(locale2); in testSetCurrency_symbolOrigin()
/libcore/api/
Dcurrent.txt13727 method public String getSymbol();
13728 method public String getSymbol(java.util.Locale);