Home
last modified time | relevance | path

Searched refs:getCurrencyInstance (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java138 NumberFormat.getCurrencyInstance(null); in test_nullLocales()
157 NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US); in test_issue79925()
181 NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US); in test_customCurrencySymbol()
200 NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.FRANCE); in test_currencyFromLocale()
204 nf = NumberFormat.getCurrencyInstance(Locale.UK); in test_currencyFromLocale()
211 NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US); in test_setCurrency()
226 nf = NumberFormat.getCurrencyInstance(Locale.US); in test_setCurrency()
244 NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.JAPAN); in test_currencyWithPatternDigits()
248 nf = NumberFormat.getCurrencyInstance(Locale.forLanguageTag("hy-AM")); in test_currencyWithPatternDigits()
252 nf = NumberFormat.getCurrencyInstance(Locale.forLanguageTag("de-CH")); in test_currencyWithPatternDigits()
[all …]
DOldNumberFormatTest.java290 NumberFormat format = NumberFormat.getCurrencyInstance(); in test_getCurrencyInstance()
313 NumberFormat format = NumberFormat.getCurrencyInstance(usLocale); in test_getCurrencyInstanceLjava_util_Locale()
324 format = NumberFormat.getCurrencyInstance(atLocale); in test_getCurrencyInstanceLjava_util_Locale()
331 NumberFormat.getCurrencyInstance(null); in test_getCurrencyInstanceLjava_util_Locale()
533 NumberFormat nf4 = NumberFormat.getCurrencyInstance(); in test_hashCode()
778 nf1 = NumberFormat.getCurrencyInstance(); in test_parseLjava_lang_String()
DDecimalFormatTest.java130 DecimalFormat currencyDf = (DecimalFormat) NumberFormat.getCurrencyInstance(Locale.US); in testFieldPosition()
308 DecimalFormat df = (DecimalFormat) NumberFormat.getCurrencyInstance(Locale.US); in testBug9087737()
316 DecimalFormat df = (DecimalFormat) NumberFormat.getCurrencyInstance(Locale.US); in testBug15081434()
397 NumberFormat numberFormat = NumberFormat.getCurrencyInstance(Locale.GERMAN); in testBug71369()
463 NumberFormat localeCurrencyFormat = NumberFormat.getCurrencyInstance(locale); in formatArbitraryCurrencyAmountInLocale()
/libcore/support/src/test/java/tests/support/
DSupport_DecimalFormat.java43 .getCurrencyInstance(Locale.US); in t_format_with_FieldPosition()
102 format = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale( in t_format_with_FieldPosition()
152 t_Format(4, number, NumberFormat.getCurrencyInstance(us), getPositiveCurrencyVectorUS()); in t_formatToCharacterIterator()
155 … t_Format(5, negativeNumber, NumberFormat.getCurrencyInstance(us), getNegativeCurrencyVectorUS()); in t_formatToCharacterIterator()
176 t_Format(11, number, NumberFormat.getCurrencyInstance(tr), getPositiveCurrencyVectorCH()); in t_formatToCharacterIterator()
179 … t_Format(12, negativeNumber, NumberFormat.getCurrencyInstance(tr), getNegativeCurrencyVectorCH()); in t_formatToCharacterIterator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_DecimalFormat.java41 DecimalFormat format = (DecimalFormat) NumberFormat.getCurrencyInstance(Locale.US); in t_format_with_FieldPosition()
78 format = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("tr", "TR")); in t_format_with_FieldPosition()
127 t_Format(7, number, NumberFormat.getCurrencyInstance(us), getPositiveCurrencyVectorUS()); in t_formatToCharacterIterator()
130 … t_Format(8, negativeNumber, NumberFormat.getCurrencyInstance(us), getNegativeCurrencyVectorUS()); in t_formatToCharacterIterator()
133 t_Format(9, number, NumberFormat.getCurrencyInstance(tr), getPositiveCurrencyVectorTR()); in t_formatToCharacterIterator()
136 … t_Format(10, negativeNumber, NumberFormat.getCurrencyInstance(tr), getNegativeCurrencyVectorTR()); in t_formatToCharacterIterator()
DMessageFormatTest.java235 NumberFormat.getCurrencyInstance(), in test_setFormats$Ljava_text_Format()
314 assertEquals(format.getFormats()[1], NumberFormat.getCurrencyInstance(mk)); in test_ConstructorLjava_lang_StringLjava_util_Locale()
475 .equals(NumberFormat.getCurrencyInstance())); in test_applyPatternLjava_lang_String()
615 NumberFormat.getCurrencyInstance(), in test_getFormats()
629 correctFormats = new Format[] { NumberFormat.getCurrencyInstance(), in test_getFormats()
652 NumberFormat.getCurrencyInstance(), null }; in test_getFormatsByArgumentIndex()
665 NumberFormat.getCurrencyInstance(), null, null, null, null, in test_getFormatsByArgumentIndex()
694 NumberFormat.getCurrencyInstance(), in test_setFormatByArgumentIndexILjava_text_Format()
708 correctFormats = new Format[] { NumberFormat.getCurrencyInstance(), in test_setFormatByArgumentIndexILjava_text_Format()
747 f3.setFormatByArgumentIndex(1, NumberFormat.getCurrencyInstance()); in test_setFormatByArgumentIndexILjava_text_Format()
[all …]
DDecimalFormatSymbolsTest.java287 .getCurrencyInstance(locale)).getDecimalFormatSymbols(); in test_setCurrencyLjava_util_Currency()
370 .getCurrencyInstance(locale)).getDecimalFormatSymbols(); in test_setInternationalCurrencySymbolLjava_lang_String()
DDecimalFormatTest.java1741 DecimalFormat df = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("ko", "KR")); in test_getCurrency()
1744 df = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("", "KR")); in test_getCurrency()
1747 df = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("ko", "")); in test_getCurrency()
1750 df = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("fr", "FR")); in test_getCurrency()
1754 df = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("QWERTY")); in test_getCurrency()
1908 DecimalFormat df = ((DecimalFormat) NumberFormat.getCurrencyInstance(locale)); in test_setCurrency()
/libcore/ojluni/annotations/hiddenapi/java/text/
DNumberFormat.java116 public static final java.text.NumberFormat getCurrencyInstance() { in getCurrencyInstance() method in NumberFormat
120 public static java.text.NumberFormat getCurrencyInstance(java.util.Locale inLocale) { in getCurrencyInstance() method in NumberFormat
/libcore/ojluni/annotations/sdk/nullability/java/text/
DNumberFormat.annotated.java86 @libcore.util.NonNull public static final java.text.NumberFormat getCurrencyInstance() { throw new … in getCurrencyInstance() method in NumberFormat
88 @libcore.util.NonNull public static java.text.NumberFormat getCurrencyInstance(@libcore.util.NonNul… in getCurrencyInstance() method in NumberFormat
/libcore/ojluni/src/main/java/java/text/
DNumberFormat.java579 public static final NumberFormat getCurrencyInstance() { in getCurrencyInstance() method in NumberFormat
598 public static NumberFormat getCurrencyInstance(Locale inLocale) { in getCurrencyInstance() method in NumberFormat
DMessageFormat.java549 } else if (fmt.equals(NumberFormat.getCurrencyInstance(locale))) { in toPattern()
1496 newFormat = NumberFormat.getCurrencyInstance(locale); in makeFormat()
/libcore/benchmarks/src/benchmarks/regression/
DDecimalFormatBenchmark.java17 NumberFormat.getCurrencyInstance(Locale.US);
/libcore/api/
Dcurrent.txt11269 method @NonNull public static final java.text.NumberFormat getCurrencyInstance();
11270 …method @NonNull public static java.text.NumberFormat getCurrencyInstance(@NonNull java.util.Locale…