/libcore/luni/src/test/java/libcore/java/util/ |
D | CurrencyTest.java | 19 import java.util.Currency; 35 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); in test_getSymbol_fallback() 39 Currency currency = Currency.getInstance("DEM"); in test_getSymbol_locale() 51 Currency currency = Currency.getInstance("DEM"); in test_getSymbol_noLocaleArgument() 64 Currency.getInstance("USD"); in test_getInstance_illegal_currency_code() 66 Currency.getInstance("BOGO-DOLLARS"); in test_getInstance_illegal_currency_code() 73 Set<Currency> all = Currency.getAvailableCurrencies(); in testGetAvailableCurrencies() 75 assertTrue(all.toString(), all.contains(Currency.getInstance("CHF"))); in testGetAvailableCurrencies() 76 assertTrue(all.toString(), all.contains(Currency.getInstance("EUR"))); in testGetAvailableCurrencies() 77 assertTrue(all.toString(), all.contains(Currency.getInstance("GBP"))); in testGetAvailableCurrencies() [all …]
|
D | OldAndroidLocaleTest.java | 22 import java.util.Currency; 103 Currency c = Currency.getInstance(l); in testICULocales()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CurrencyTest.java | 23 import java.util.Currency; 59 Currency c0 = Currency.getInstance("CAD"); in test_getInstanceLjava_util_Locale() 60 Currency c1 = Currency.getInstance(new Locale("en", "CA")); in test_getInstanceLjava_util_Locale() 64 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); in test_getInstanceLjava_util_Locale() 68 Currency c3 = Currency.getInstance(new Locale("", "CA")); in test_getInstanceLjava_util_Locale() 73 c0 = Currency.getInstance("JPY"); in test_getInstanceLjava_util_Locale() 74 c1 = Currency.getInstance(new Locale("ja", "JP")); in test_getInstanceLjava_util_Locale() 78 c2 = Currency.getInstance(new Locale("", "JP")); in test_getInstanceLjava_util_Locale() 82 c3 = Currency.getInstance(new Locale("bogus", "JP")); in test_getInstanceLjava_util_Locale() 88 Currency cGu = Currency.getInstance(localeGu); in test_getInstanceLjava_util_Locale() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Currency.java | 50 public final class Currency implements Serializable { class 76 private transient final android.icu.util.Currency icuCurrency; 82 private static ConcurrentMap<String, Currency> instances = new ConcurrentHashMap<>(7); 83 private static HashSet<Currency> available; 266 private Currency(android.icu.util.Currency icuCurrency) { in Currency() method in Currency 281 public static Currency getInstance(String currencyCode) { in getInstance() 284 Currency instance = instances.get(currencyCode); in getInstance() 288 android.icu.util.Currency icuInstance = in getInstance() 289 android.icu.util.Currency.getInstance(currencyCode); in getInstance() 293 Currency currencyVal = new Currency(icuInstance); in getInstance() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | ICUCurrencyTest.java | 22 import java.util.Currency; 37 Currency c = Currency.getInstance("XXX"); in test_fallbackCurrencySymbolForUnknownLocale() 41 android.icu.util.Currency ac = android.icu.util.Currency.getInstance("XXX"); in test_fallbackCurrencySymbolForUnknownLocale()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | NumberFormatTest.java | 26 import java.util.Currency; 158 nf.setCurrency(Currency.getInstance("EUR")); in test_issue79925() 166 nf.setCurrency(Currency.getInstance("SGD")); in test_issue79925() 169 nf.setCurrency(Currency.getInstance("SGD")); in test_issue79925() 172 nf.setCurrency(Currency.getInstance("USD")); in test_issue79925() 175 nf.setCurrency(Currency.getInstance("SGD")); in test_issue79925() 188 nf.setCurrency(Currency.getInstance("USD")); in test_customCurrencySymbol() 214 Currency jpy = Currency.getInstance("JPY"); in test_setCurrency() 229 nf.setCurrency(Currency.getInstance("EUR")); in test_setCurrency() 233 nf.setCurrency(Currency.getInstance("AMD")); in test_setCurrency() [all …]
|
D | DecimalFormatSymbolsTest.java | 24 import java.util.Currency; 65 dfs.setCurrency(Currency.getInstance("USD")); in testSetSameCurrency() 69 dfs.setCurrency(Currency.getInstance("USD")); in testSetSameCurrency() 74 Currency usd = Currency.getInstance("USD"); in testSetNulInternationalCurrencySymbol()
|
D | DecimalFormatTest.java | 28 import java.util.Currency; 200 df.setCurrency(Currency.getInstance("CHF")); in testBug9087737() 201 df.setCurrency(Currency.getInstance("GBP")); in testBug9087737() 288 numberFormat.setCurrency(Currency.getInstance("USD")); in testBug71369() 299 numberFormat.setCurrency(Currency.getInstance("EUR")); in testBug71369() 300 numberFormat.setCurrency(Currency.getInstance("USD")); in testBug71369() 309 Currency currency = Currency.getInstance(Locale.US); in testCurrencySymbolSpacing() 325 Currency currency, Locale locale) { in assertCurrencyFormat() 343 Currency currency = Currency.getInstance("CNY"); in testSetCurrency_symbolOrigin() 380 private String formatArbitraryCurrencyAmountInLocale(Currency currency, Locale locale) { in formatArbitraryCurrencyAmountInLocale()
|
D | OldNumberFormatTest.java | 25 import java.util.Currency; 80 Currency currA = Currency.getInstance("ARS"); in test_setCurrencyLjava_util_Currency()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatSymbolsTest.java | 29 import java.util.Currency; 118 Currency currency = Currency.getInstance("USD"); in test_getCurrency() 122 Currency currK = Currency.getInstance("KRW"); in test_getCurrency() 123 Currency currX = Currency.getInstance("XXX"); in test_getCurrency() 124 Currency currE = Currency.getInstance("EUR"); in test_getCurrency() 295 Currency currency = Currency.getInstance("JPY"); in test_setCurrencyLjava_util_Currency() 371 Currency currency = Currency.getInstance("JPY"); in test_setInternationalCurrencySymbolLjava_lang_String() 458 Currency currency = symbols.getCurrency(); in test_serialization()
|
D | NumberFormatTest.java | 26 import java.util.Currency; 206 Currency currH = Currency.getInstance("HUF"); in test_getCurrency() 235 Currency currA = Currency.getInstance("ARS"); in test_setCurrencyLjava_util_Currency()
|
D | DecimalFormatTest.java | 31 import java.util.Currency; 651 Currency c = Currency.getInstance(Locale.US); in test_equals() 1736 Currency currK = Currency.getInstance("KRW"); in test_getCurrency() 1737 Currency currX = Currency.getInstance("XXX"); in test_getCurrency() 1738 Currency currE = Currency.getInstance("EUR"); in test_getCurrency() 1915 Currency currency = Currency.getInstance("AED"); in test_setCurrency()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormatSymbols.java | 47 import java.util.Currency; 452 currency = Currency.getInstance(currencyCode); in setInternationalCurrencySymbol() 470 public Currency getCurrency() { in getCurrency() 486 public void setCurrency(Currency currency) { in setCurrency() 703 currency = Currency.getInstance(locale); in initialize() 721 currency = Currency.getInstance(intlCurrencySymbol); in initialize() 807 android.icu.util.Currency.getInstance(currency.getCurrencyCode())); in getIcuDecimalFormatSymbols() 809 currency = Currency.getInstance("XXX"); in getIcuDecimalFormatSymbols() 840 result.setCurrency(Currency.getInstance(dfs.getCurrency().getCurrencyCode())); in fromIcuInstance() 842 result.setCurrency(Currency.getInstance("XXX")); in fromIcuInstance() [all …]
|
D | NumberFormat.java | 48 import java.util.Currency; 768 public Currency getCurrency() { in getCurrency() 786 public void setCurrency(Currency currency) { in setCurrency()
|
D | DecimalFormat.java | 50 import java.util.Currency; 4072 public Currency getCurrency() { in getCurrency() 4089 public void setCurrency(Currency currency) { in setCurrency() 4182 Currency currency = symbols.getCurrency(); in adjustForCurrencyDefaultFractionDigits() 4185 currency = Currency.getInstance(symbols.getInternationalCurrencySymbol()); in adjustForCurrencyDefaultFractionDigits()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DecimalFormatSymbols.java | 172 public java.util.Currency getCurrency() { in getCurrency() 176 public void setCurrency(java.util.Currency currency) { in setCurrency() 246 private transient java.util.Currency currency;
|
D | NumberFormat.java | 188 public java.util.Currency getCurrency() { in getCurrency() 192 public void setCurrency(java.util.Currency currency) { in setCurrency()
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | NumberFormat.annotated.java | 44 import java.util.Currency; 122 @libcore.util.Nullable public java.util.Currency getCurrency() { throw new RuntimeException("Stub!"… in getCurrency() 124 public void setCurrency(@libcore.util.NonNull java.util.Currency currency) { throw new RuntimeExcep… in setCurrency()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 1684 objToSave = java.util.Currency.getInstance("AMD"); in test_writeObject_Currency()
|
/libcore/ |
D | openjdk_java_files.bp | 879 "ojluni/src/main/java/java/util/Currency.java",
|