/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | EnumBiMapTest.java | 52 private enum Currency { enum in EnumBiMapTest 68 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> { 71 public BiMap<Country, Currency> create(Object... entries) { in create() 72 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); in create() 74 Entry<Country, Currency> entry = (Entry<Country, Currency>) object; in create() 81 public SampleElements<Entry<Country, Currency>> samples() { in samples() 83 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR), in samples() 84 Helpers.mapEntry(Country.CHILE, Currency.PESO), in samples() 85 Helpers.mapEntry(Country.UK, Currency.POUND), in samples() 86 Helpers.mapEntry(Country.JAPAN, Currency.YEN), in samples() [all …]
|
D | EnumHashBiMapTest.java | 45 private enum Currency { enum in EnumHashBiMapTest 124 EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class); in testCreate() 128 bimap.put(Currency.DOLLAR, "dollar"); in testCreate() 129 assertEquals("dollar", bimap.get(Currency.DOLLAR)); in testCreate() 130 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); in testCreate() 135 Map<Currency, String> map = in testCreateFromMap() 137 Currency.DOLLAR, "dollar", in testCreateFromMap() 138 Currency.PESO, "peso", in testCreateFromMap() 139 Currency.FRANC, "franc"); in testCreateFromMap() 140 EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(map); in testCreateFromMap() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | EnumBiMapTest.java | 52 private enum Currency { enum in EnumBiMapTest 68 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> { 71 public BiMap<Country, Currency> create(Object... entries) { in create() 72 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); in create() 74 Entry<Country, Currency> entry = (Entry<Country, Currency>) object; in create() 81 public SampleElements<Entry<Country, Currency>> samples() { in samples() 83 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR), in samples() 84 Helpers.mapEntry(Country.CHILE, Currency.PESO), in samples() 85 Helpers.mapEntry(Country.UK, Currency.POUND), in samples() 86 Helpers.mapEntry(Country.JAPAN, Currency.YEN), in samples() [all …]
|
D | EnumHashBiMapTest.java | 45 private enum Currency { enum in EnumHashBiMapTest 124 EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class); in testCreate() 128 bimap.put(Currency.DOLLAR, "dollar"); in testCreate() 129 assertEquals("dollar", bimap.get(Currency.DOLLAR)); in testCreate() 130 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); in testCreate() 135 Map<Currency, String> map = in testCreateFromMap() 137 Currency.DOLLAR, "dollar", in testCreateFromMap() 138 Currency.PESO, "peso", in testCreateFromMap() 139 Currency.FRANC, "franc"); in testCreateFromMap() 140 EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(map); in testCreateFromMap() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | CurrencyTest.java | 36 import com.ibm.icu.util.Currency; 52 Currency usd = Currency.getInstance("USD"); in TestAPI() 54 Currency jpy = Currency.getInstance("JPY"); in TestAPI() 55 Currency jpy2 = Currency.getInstance("jpy"); in TestAPI() 76 Currency nullCurrency = Currency.getInstance((String)null); in TestAPI() 84 Currency bogusCurrency = Currency.getInstance("BOGUS"); in TestAPI() 91 Locale[] avail = Currency.getAvailableLocales(); in TestAPI() 110 final Currency jpy = Currency.getInstance("JPY"); in TestRegistration() 111 final Currency usd = Currency.getInstance(Locale.US); in TestRegistration() 114 Currency.unregister(null); // should fail, coverage in TestRegistration() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | CurrencyTest.java | 37 import android.icu.util.Currency; 55 Currency usd = Currency.getInstance("USD"); in TestAPI() 57 Currency jpy = Currency.getInstance("JPY"); in TestAPI() 58 Currency jpy2 = Currency.getInstance("jpy"); in TestAPI() 79 Currency nullCurrency = Currency.getInstance((String)null); in TestAPI() 87 Currency bogusCurrency = Currency.getInstance("BOGUS"); in TestAPI() 94 Locale[] avail = Currency.getAvailableLocales(); in TestAPI() 113 final Currency jpy = Currency.getInstance("JPY"); in TestRegistration() 114 final Currency usd = Currency.getInstance(Locale.US); in TestRegistration() 117 Currency.unregister(null); // should fail, coverage in TestRegistration() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | CompactDecimalFormatTest.java | 38 import com.ibm.icu.util.Currency; 171 {new CurrencyAmount(1f, Currency.getInstance("CNY")), "¥1"}, 172 {new CurrencyAmount(12f, Currency.getInstance("CNY")), "¥12"}, 173 {new CurrencyAmount(123f, Currency.getInstance("CNY")), "¥120"}, 174 {new CurrencyAmount(1234f, Currency.getInstance("CNY")), "¥1200"}, 175 {new CurrencyAmount(12345f, Currency.getInstance("CNY")), "¥1.2万"}, 176 {new CurrencyAmount(123456f, Currency.getInstance("CNY")), "¥12万"}, 177 {new CurrencyAmount(1234567f, Currency.getInstance("CNY")), "¥120万"}, 178 {new CurrencyAmount(12345678f, Currency.getInstance("CNY")), "¥1200万"}, 179 {new CurrencyAmount(123456789f, Currency.getInstance("CNY")), "¥1.2亿"}, [all …]
|
D | PluralRangesTest.java | 27 import com.ibm.icu.util.Currency; 87 … {0.0, 1.0, ULocale.ENGLISH, UnitWidth.NARROW, Currency.getInstance("EUR"), "€0.00 – €1.00"}, in TestFormatting() 88 … {0.0, 1.0, ULocale.FRENCH, UnitWidth.NARROW, Currency.getInstance("EUR"), "0,00–1,00 €"}, in TestFormatting() 89 … {0.0, 100.0, ULocale.FRENCH, UnitWidth.NARROW, Currency.getInstance("JPY"), "0–100\u00a0¥"}, in TestFormatting() 91 … {0.0, 1.0, ULocale.ENGLISH, UnitWidth.SHORT, Currency.getInstance("EUR"), "€0.00 – €1.00"}, in TestFormatting() 92 … {0.0, 1.0, ULocale.FRENCH, UnitWidth.SHORT, Currency.getInstance("EUR"), "0,00–1,00\u00a0€"}, in TestFormatting() 93 … {0.0, 100.0, ULocale.FRENCH, UnitWidth.SHORT, Currency.getInstance("JPY"), "0–100\u00a0JPY"}, in TestFormatting() 95 … {0.0, 1.0, ULocale.ENGLISH, UnitWidth.FULL_NAME, Currency.getInstance("EUR"), "0.00–1.00 euros"}, in TestFormatting() 96 … {0.0, 1.0, ULocale.FRENCH, UnitWidth.FULL_NAME, Currency.getInstance("EUR"), "0,00–1,00 euro"}, in TestFormatting() 97 … {0.0, 2.0, ULocale.FRENCH, UnitWidth.FULL_NAME, Currency.getInstance("EUR"), "0,00–2,00 euros"}, in TestFormatting() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | CompactDecimalFormatTest.java | 39 import android.icu.util.Currency; 174 {new CurrencyAmount(1f, Currency.getInstance("CNY")), "¥1"}, 175 {new CurrencyAmount(12f, Currency.getInstance("CNY")), "¥12"}, 176 {new CurrencyAmount(123f, Currency.getInstance("CNY")), "¥120"}, 177 {new CurrencyAmount(1234f, Currency.getInstance("CNY")), "¥1200"}, 178 {new CurrencyAmount(12345f, Currency.getInstance("CNY")), "¥1.2万"}, 179 {new CurrencyAmount(123456f, Currency.getInstance("CNY")), "¥12万"}, 180 {new CurrencyAmount(1234567f, Currency.getInstance("CNY")), "¥120万"}, 181 {new CurrencyAmount(12345678f, Currency.getInstance("CNY")), "¥1200万"}, 182 {new CurrencyAmount(123456789f, Currency.getInstance("CNY")), "¥1.2亿"}, [all …]
|
D | PluralRangesTest.java | 28 import android.icu.util.Currency; 90 … {0.0, 1.0, ULocale.ENGLISH, UnitWidth.NARROW, Currency.getInstance("EUR"), "€0.00 – €1.00"}, in TestFormatting() 91 … {0.0, 1.0, ULocale.FRENCH, UnitWidth.NARROW, Currency.getInstance("EUR"), "0,00–1,00 €"}, in TestFormatting() 92 … {0.0, 100.0, ULocale.FRENCH, UnitWidth.NARROW, Currency.getInstance("JPY"), "0–100\u00a0¥"}, in TestFormatting() 94 … {0.0, 1.0, ULocale.ENGLISH, UnitWidth.SHORT, Currency.getInstance("EUR"), "€0.00 – €1.00"}, in TestFormatting() 95 … {0.0, 1.0, ULocale.FRENCH, UnitWidth.SHORT, Currency.getInstance("EUR"), "0,00–1,00\u00a0€"}, in TestFormatting() 96 … {0.0, 100.0, ULocale.FRENCH, UnitWidth.SHORT, Currency.getInstance("JPY"), "0–100\u00a0JPY"}, in TestFormatting() 98 … {0.0, 1.0, ULocale.ENGLISH, UnitWidth.FULL_NAME, Currency.getInstance("EUR"), "0.00–1.00 euros"}, in TestFormatting() 99 … {0.0, 1.0, ULocale.FRENCH, UnitWidth.FULL_NAME, Currency.getInstance("EUR"), "0,00–1,00 euro"}, in TestFormatting() 100 … {0.0, 2.0, ULocale.FRENCH, UnitWidth.FULL_NAME, Currency.getInstance("EUR"), "0,00–2,00 euros"}, in TestFormatting() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/data/external/ |
D | eu_member_states_raw.txt | 6 Currency: Euro. Member of the eurozone since 1 January 1999 14 Currency: Euro. Member of the eurozone since 1 January 1999 22 Currency: Bulgarian lev BGN 29 Currency: Croatian Kuna HRK 36 Currency: Euro. Member of the eurozone since 1 January 2008 43 Currency: Czech koruna (CZK) 50 Currency: Danish krone DKK 57 Currency: Euro. Member of the eurozone since 1 January 2011 64 Currency: Euro. Member of the eurozone since 1 January 1999 71 Currency: Euro. Member of the eurozone since 1 January 1999 [all …]
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | CurrencyNameTest.java | 13 import java.util.Currency; 27 private static final Set<Currency> AVAILABLE_CURRENCIES; 32 Set<Currency> currencies = null; 34 … mGetDisplayName = Currency.class.getMethod("getDisplayName", new Class[] {Locale.class}); 35 …Method mGetAvailableCurrencies = Currency.class.getMethod("getAvailableCurrencies", (Class[]) null… 36 currencies = (Set<Currency>)mGetAvailableCurrencies.invoke(null, (Object[]) null); 43 currencies = new HashSet<Currency>(); 49 Currency currency = Currency.getInstance(l); 64 for (Currency currency : AVAILABLE_CURRENCIES) { in TestCurrencySymbols() 66 … com.ibm.icu.util.Currency currencyIcu = com.ibm.icu.util.Currency.getInstance(currencyCode); in TestCurrencySymbols() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | CurrencyAmount.java | 32 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() 41 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() 50 public CurrencyAmount(Number number, java.util.Currency currency) { in CurrencyAmount() 51 this(number, Currency.fromJavaCurrency(currency)); in CurrencyAmount() 59 public CurrencyAmount(double number, java.util.Currency currency) { in CurrencyAmount() 60 this(number, Currency.fromJavaCurrency(currency)); in CurrencyAmount() 67 public Currency getCurrency() { in getCurrency() 68 return (Currency) getUnit(); in getCurrency()
|
D | CurrencyServiceShim.java | 26 final class CurrencyServiceShim extends Currency.ServiceShim { 42 Currency createInstance(ULocale loc) { in createInstance() 46 return Currency.createCurrency(loc); in createInstance() 48 Currency curr = (Currency)service.get(loc); in createInstance() 52 Object registerInstance(Currency currency, ULocale locale) { in registerInstance() 66 return Currency.createCurrency(loc); in CFService()
|
D | Currency.java | 61 public class Currency extends MeasureUnit { class 141 abstract Currency createInstance(ULocale l); in createInstance() 142 abstract Object registerInstance(Currency c, ULocale l); in registerInstance() 173 public static Currency getInstance(Locale locale) { in getInstance() 181 public static Currency getInstance(ULocale locale) { in getInstance() 236 public static Set<Currency> getAvailableCurrencies() { in getAvailableCurrencies() 239 HashSet<Currency> resultSet = new HashSet<>(list.size()); in getAvailableCurrencies() 246 private static final CacheBase<String, Currency, Void> regionCurrencyCache = 247 new SoftCache<String, Currency, Void>() { 249 protected Currency createInstance(String key, Void unused) { [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | CurrencyAmount.java | 33 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() 43 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() 53 public CurrencyAmount(Number number, java.util.Currency currency) { in CurrencyAmount() 54 this(number, Currency.fromJavaCurrency(currency)); in CurrencyAmount() 63 public CurrencyAmount(double number, java.util.Currency currency) { in CurrencyAmount() 64 this(number, Currency.fromJavaCurrency(currency)); in CurrencyAmount() 72 public Currency getCurrency() { in getCurrency() 73 return (Currency) getUnit(); in getCurrency()
|
D | CurrencyServiceShim.java | 25 final class CurrencyServiceShim extends Currency.ServiceShim { 41 Currency createInstance(ULocale loc) { in createInstance() 45 return Currency.createCurrency(loc); in createInstance() 47 Currency curr = (Currency)service.get(loc); in createInstance() 51 Object registerInstance(Currency currency, ULocale locale) { in registerInstance() 65 return Currency.createCurrency(loc); in CFService()
|
D | Currency.java | 61 public class Currency extends MeasureUnit { class 151 abstract Currency createInstance(ULocale l); in createInstance() 152 abstract Object registerInstance(Currency c, ULocale l); in registerInstance() 184 public static Currency getInstance(Locale locale) { in getInstance() 193 public static Currency getInstance(ULocale locale) { in getInstance() 252 public static Set<Currency> getAvailableCurrencies() { in getAvailableCurrencies() 255 HashSet<Currency> resultSet = new HashSet<>(list.size()); in getAvailableCurrencies() 262 private static final CacheBase<String, Currency, Void> regionCurrencyCache = 263 new SoftCache<String, Currency, Void>() { 265 protected Currency createInstance(String key, Void unused) { [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | CustomSymbolCurrency.java | 7 import android.icu.util.Currency; 13 public class CustomSymbolCurrency extends Currency { 20 … public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) { in resolve() 25 return Currency.getInstance("XXX"); in resolve() 32 String currency1 = currency.getName(symbols.getULocale(), Currency.SYMBOL_NAME, null); in resolve()
|
D | MutablePatternModifier.java | 14 import android.icu.util.Currency; 51 Currency currency; 115 Currency currency, in setSymbols() 412 selector = Currency.SYMBOL_NAME; in getSymbol() 415 selector = Currency.NARROW_SYMBOL_NAME; in getSymbol() 418 selector = Currency.FORMAL_SYMBOL_NAME; in getSymbol() 421 selector = Currency.VARIANT_SYMBOL_NAME; in getSymbol() 436 … .getName(symbols.getULocale(), Currency.PLURAL_LONG_NAME, plural.getKeyword(), null); in getSymbol() 440 return currency.getName(symbols.getULocale(), Currency.NARROW_SYMBOL_NAME, null); in getSymbol()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | CustomSymbolCurrency.java | 6 import com.ibm.icu.util.Currency; 9 public class CustomSymbolCurrency extends Currency { 16 … public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) { in resolve() 21 return Currency.getInstance("XXX"); in resolve() 28 String currency1 = currency.getName(symbols.getULocale(), Currency.SYMBOL_NAME, null); in resolve()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | CombinedCurrencyMatcher.java | 11 import com.ibm.icu.util.Currency; 12 import com.ibm.icu.util.Currency.CurrencyStringInfo; 42 …public static CombinedCurrencyMatcher getInstance(Currency currency, DecimalFormatSymbols dfs, int… in getInstance() 47 private CombinedCurrencyMatcher(Currency currency, DecimalFormatSymbols dfs, int parseFlags) { in CombinedCurrencyMatcher() 60 longNameTrie = Currency.getParsingTrie(dfs.getULocale(), Currency.LONG_NAME); in CombinedCurrencyMatcher() 61 symbolTrie = Currency.getParsingTrie(dfs.getULocale(), Currency.SYMBOL_NAME); in CombinedCurrencyMatcher() 71 .getName(dfs.getLocale(), Currency.PLURAL_LONG_NAME, pluralKeyword, null); in CombinedCurrencyMatcher()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | CombinedCurrencyMatcher.java | 12 import android.icu.util.Currency; 13 import android.icu.util.Currency.CurrencyStringInfo; 44 …public static CombinedCurrencyMatcher getInstance(Currency currency, DecimalFormatSymbols dfs, int… in getInstance() 49 private CombinedCurrencyMatcher(Currency currency, DecimalFormatSymbols dfs, int parseFlags) { in CombinedCurrencyMatcher() 62 longNameTrie = Currency.getParsingTrie(dfs.getULocale(), Currency.LONG_NAME); in CombinedCurrencyMatcher() 63 symbolTrie = Currency.getParsingTrie(dfs.getULocale(), Currency.SYMBOL_NAME); in CombinedCurrencyMatcher() 73 .getName(dfs.getLocale(), Currency.PLURAL_LONG_NAME, pluralKeyword, null); in CombinedCurrencyMatcher()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | DecimalFormatSymbolsICU.java | 11 import java.util.Currency; 53 public Currency getCurrency() { in getCurrency() 54 com.ibm.icu.util.Currency icuCurrency = fIcuDecfs.getCurrency(); in getCurrency() 58 return Currency.getInstance(icuCurrency.getCurrencyCode()); in getCurrency() 132 public void setCurrency(Currency currency) { in setCurrency() 133 com.ibm.icu.util.Currency icuCurrency = null; in setCurrency() 135 icuCurrency = com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()); in setCurrency()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
D | NumberFormatJDK.java | 19 import com.ibm.icu.util.Currency; 86 java.util.Currency save = fJdkNfmt.getCurrency(); in format() 90 fJdkNfmt.setCurrency(java.util.Currency.getInstance(currCode)); in format() 119 public Currency getCurrency() { in getCurrency() 120 java.util.Currency jdkCurrency = fJdkNfmt.getCurrency(); in getCurrency() 124 return Currency.getInstance(jdkCurrency.getCurrencyCode()); in getCurrency() 207 public void setCurrency(Currency theCurrency) { in setCurrency() 212 fJdkNfmt.setCurrency(java.util.Currency.getInstance(theCurrency.getCurrencyCode())); in setCurrency()
|