/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | EnumBiMapTest.java | 45 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } enum in EnumBiMapTest 48 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> { 51 public BiMap<Country, Currency> create(Object... entries) { in create() 52 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); in create() 54 Entry<Country, Currency> entry = (Entry<Country, Currency>) object; in create() 61 public SampleElements<Entry<Country, Currency>> samples() { in samples() 62 return new SampleElements<Entry<Country, Currency>>( in samples() 63 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR), in samples() 64 Helpers.mapEntry(Country.CHILE, Currency.PESO), in samples() 65 Helpers.mapEntry(Country.UK, Currency.POUND), in samples() [all …]
|
D | EnumHashBiMapTest.java | 38 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } enum in EnumHashBiMapTest 86 EnumHashBiMap<Currency, String> bimap = in testCreate() 87 EnumHashBiMap.create(Currency.class); in testCreate() 91 bimap.put(Currency.DOLLAR, "dollar"); in testCreate() 92 assertEquals("dollar", bimap.get(Currency.DOLLAR)); in testCreate() 93 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); in testCreate() 98 Map<Currency, String> map = ImmutableMap.of( in testCreateFromMap() 99 Currency.DOLLAR, "dollar", in testCreateFromMap() 100 Currency.PESO, "peso", in testCreateFromMap() 101 Currency.FRANC, "franc"); in testCreateFromMap() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | EnumBiMapTest.java | 54 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } enum in EnumBiMapTest 57 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> { 60 public BiMap<Country, Currency> create(Object... entries) { in create() 61 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); in create() 63 Entry<Country, Currency> entry = (Entry<Country, Currency>) object; in create() 70 public SampleElements<Entry<Country, Currency>> samples() { in samples() 71 return new SampleElements<Entry<Country, Currency>>( in samples() 72 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR), in samples() 73 Helpers.mapEntry(Country.CHILE, Currency.PESO), in samples() 74 Helpers.mapEntry(Country.UK, Currency.POUND), in samples() [all …]
|
D | EnumHashBiMapTest.java | 47 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } enum in EnumHashBiMapTest 111 EnumHashBiMap<Currency, String> bimap = in testCreate() 112 EnumHashBiMap.create(Currency.class); in testCreate() 116 bimap.put(Currency.DOLLAR, "dollar"); in testCreate() 117 assertEquals("dollar", bimap.get(Currency.DOLLAR)); in testCreate() 118 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); in testCreate() 123 Map<Currency, String> map = ImmutableMap.of( in testCreateFromMap() 124 Currency.DOLLAR, "dollar", in testCreateFromMap() 125 Currency.PESO, "peso", in testCreateFromMap() 126 Currency.FRANC, "franc"); in testCreateFromMap() [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() 72 Currency nullCurrency = Currency.getInstance((String)null); in TestAPI() 80 Currency bogusCurrency = Currency.getInstance("BOGUS"); in TestAPI() 87 Locale[] avail = Currency.getAvailableLocales(); in TestAPI() 106 final Currency jpy = Currency.getInstance("JPY"); in TestRegistration() 107 final Currency usd = Currency.getInstance(Locale.US); in TestRegistration() 110 Currency.unregister(null); // should fail, coverage in TestRegistration() 117 if (Currency.unregister("")) { // coverage in TestRegistration() [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() 69 Currency nullCurrency = Currency.getInstance((String)null); in TestAPI() 77 Currency bogusCurrency = Currency.getInstance("BOGUS"); in TestAPI() 84 Locale[] avail = Currency.getAvailableLocales(); in TestAPI() 103 final Currency jpy = Currency.getInstance("JPY"); in TestRegistration() 104 final Currency usd = Currency.getInstance(Locale.US); in TestRegistration() 107 Currency.unregister(null); // should fail, coverage in TestRegistration() 114 if (Currency.unregister("")) { // coverage in TestRegistration() [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 | 26 import android.icu.util.Currency; 91 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.NARROW, Currency.getInstance("EUR"), "€0.00–1.00"}, in TestFormatting() 92 … {0.0, 1.0, ULocale.FRENCH, FormatWidth.NARROW, Currency.getInstance("EUR"), "0,00–1,00 €"}, in TestFormatting() 93 … {0.0, 100.0, ULocale.FRENCH, FormatWidth.NARROW, Currency.getInstance("JPY"), "0–100\u00a0JPY"}, in TestFormatting() 95 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.SHORT, Currency.getInstance("EUR"), "EUR0.00–1.00"}, in TestFormatting() 96 … {0.0, 1.0, ULocale.FRENCH, FormatWidth.SHORT, Currency.getInstance("EUR"), "0,00–1,00\u00a0EUR"}, in TestFormatting() 97 … {0.0, 100.0, ULocale.FRENCH, FormatWidth.SHORT, Currency.getInstance("JPY"), "0–100\u00a0JPY"}, in TestFormatting() 99 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, Currency.getInstance("EUR"), "0.00–1.00 euros"}, in TestFormatting() 100 … {0.0, 1.0, ULocale.FRENCH, FormatWidth.WIDE, Currency.getInstance("EUR"), "0,00–1,00 euro"}, in TestFormatting() 101 … {0.0, 2.0, ULocale.FRENCH, FormatWidth.WIDE, Currency.getInstance("EUR"), "0,00–2,00 euros"}, in TestFormatting() [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 | 25 import com.ibm.icu.util.Currency; 88 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.NARROW, Currency.getInstance("EUR"), "€0.00–1.00"}, in TestFormatting() 89 … {0.0, 1.0, ULocale.FRENCH, FormatWidth.NARROW, Currency.getInstance("EUR"), "0,00–1,00 €"}, in TestFormatting() 90 … {0.0, 100.0, ULocale.FRENCH, FormatWidth.NARROW, Currency.getInstance("JPY"), "0–100\u00a0JPY"}, in TestFormatting() 92 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.SHORT, Currency.getInstance("EUR"), "EUR0.00–1.00"}, in TestFormatting() 93 … {0.0, 1.0, ULocale.FRENCH, FormatWidth.SHORT, Currency.getInstance("EUR"), "0,00–1,00\u00a0EUR"}, in TestFormatting() 94 … {0.0, 100.0, ULocale.FRENCH, FormatWidth.SHORT, Currency.getInstance("JPY"), "0–100\u00a0JPY"}, in TestFormatting() 96 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, Currency.getInstance("EUR"), "0.00–1.00 euros"}, in TestFormatting() 97 … {0.0, 1.0, ULocale.FRENCH, FormatWidth.WIDE, Currency.getInstance("EUR"), "0,00–1,00 euro"}, in TestFormatting() 98 … {0.0, 2.0, ULocale.FRENCH, FormatWidth.WIDE, Currency.getInstance("EUR"), "0,00–2,00 euros"}, in TestFormatting() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | Currency.java | 36 public class Currency implements Serializable { class 42 public final java.util.Currency currency; 48 public Currency(java.util.Currency delegate) { in Currency() method in Currency 81 public static Currency getInstance(Locale locale) { in getInstance() 82 return new Currency(java.util.Currency.getInstance(locale)); in getInstance() 90 public static Currency getInstance(ULocale locale) { in getInstance() 91 return new Currency(java.util.Currency.getInstance(locale.toLocale())); in getInstance() 131 public static Currency getInstance(String theISOCode) { in getInstance() 132 return new Currency(java.util.Currency.getInstance(theISOCode)); in getInstance() 227 return currency.equals(((Currency)rhs).currency); in equals()
|
/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/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 128 abstract Currency createInstance(ULocale l); in createInstance() 129 abstract Object registerInstance(Currency c, ULocale l); in registerInstance() 161 public static Currency getInstance(Locale locale) { in getInstance() 170 public static Currency getInstance(ULocale locale) { in getInstance() 229 public static Set<Currency> getAvailableCurrencies() { in getAvailableCurrencies() 232 HashSet<Currency> resultSet = new HashSet<>(list.size()); in getAvailableCurrencies() 240 private static final CacheBase<String, Currency, Void> regionCurrencyCache = 241 new SoftCache<String, Currency, Void>() { 243 protected Currency createInstance(String key, Void unused) { [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 121 abstract Currency createInstance(ULocale l); in createInstance() 122 abstract Object registerInstance(Currency c, ULocale l); in registerInstance() 153 public static Currency getInstance(Locale locale) { in getInstance() 161 public static Currency getInstance(ULocale locale) { in getInstance() 216 public static Set<Currency> getAvailableCurrencies() { in getAvailableCurrencies() 219 HashSet<Currency> resultSet = new HashSet<>(list.size()); in getAvailableCurrencies() 227 private static final CacheBase<String, Currency, Void> regionCurrencyCache = 228 new SoftCache<String, Currency, Void>() { 230 protected Currency createInstance(String key, Void unused) { [all …]
|
/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/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/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/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()
|
/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()
|