/libcore/support/src/test/java/tests/support/ |
D | Support_DecimalFormat.java | 21 import java.text.NumberFormat; 42 DecimalFormat format = (DecimalFormat) NumberFormat in t_format_with_FieldPosition() 47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, in t_format_with_FieldPosition() 49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, in t_format_with_FieldPosition() 52 NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition() 54 NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition() 55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, in t_format_with_FieldPosition() 59 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, in t_format_with_FieldPosition() 61 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, in t_format_with_FieldPosition() 64 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() [all …]
|
D | Support_MessageFormat.java | 22 import java.text.NumberFormat; 64 NumberFormat.Field.FRACTION, 0, 0); in t_format_with_FieldPosition() 69 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() 107 v.add(new FieldContainer(38, 39, NumberFormat.Field.INTEGER)); in getMessageVector1() 110 v.add(new FieldContainer(61, 62, NumberFormat.Field.INTEGER)); in getMessageVector1() 112 v.add(new FieldContainer(62, 63, NumberFormat.Field.DECIMAL_SEPARATOR)); in getMessageVector1() 114 v.add(new FieldContainer(63, 64, NumberFormat.Field.FRACTION)); in getMessageVector1()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_DecimalFormat.java | 21 import java.text.NumberFormat; 41 DecimalFormat format = (DecimalFormat) NumberFormat.getCurrencyInstance(Locale.US); in t_format_with_FieldPosition() 45 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 0, 1); in t_format_with_FieldPosition() 46 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 1, 11); in t_format_with_FieldPosition() 47 t_FormatWithField(2, format, number, text, NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition() 48 t_FormatWithField(3, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition() 49 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 12, 14); in t_format_with_FieldPosition() 52 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, 0); in t_format_with_FieldPosition() 53 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, 0, 0); in t_format_with_FieldPosition() 54 t_FormatWithField(7, format, number, text, NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() [all …]
|
D | NumberFormatTest.java | 23 import java.text.NumberFormat; 38 DecimalFormat format = (DecimalFormat) NumberFormat in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 125 DecimalFormat format = (DecimalFormat) NumberFormat in test_getIntegerInstance() 153 DecimalFormat format = (DecimalFormat) NumberFormat in test_getIntegerInstanceLjava_util_Locale() 174 format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale); in test_getIntegerInstanceLjava_util_Locale() 207 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_getCurrency() 214 ((NumberFormat) cformat).getCurrency(); in test_getCurrency() 224 NumberFormat format = NumberFormat.getInstance(); in test_getMaximumIntegerDigits() 236 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_setCurrencyLjava_util_Currency() 244 ((NumberFormat) cformat).setCurrency(currA); in test_setCurrencyLjava_util_Currency() [all …]
|
D | Support_MessageFormat.java | 24 import java.text.NumberFormat; 71 NumberFormat.Field.FRACTION, 0, 0); in t_format_with_FieldPosition() 76 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() 114 v.add(new FieldContainer(38, 39, NumberFormat.Field.INTEGER)); in getMessageVector1() 117 v.add(new FieldContainer(61, 62, NumberFormat.Field.INTEGER)); in getMessageVector1() 119 v.add(new FieldContainer(62, 63, NumberFormat.Field.DECIMAL_SEPARATOR)); in getMessageVector1() 121 v.add(new FieldContainer(63, 64, NumberFormat.Field.FRACTION)); in getMessageVector1()
|
D | MessageFormatTest.java | 32 import java.text.NumberFormat; 118 f1.setFormat(2, NumberFormat.getInstance()); in test_setFormatILjava_text_Format() 129 NumberFormat.getInstance(), in test_setFormatILjava_text_Format() 235 NumberFormat.getCurrencyInstance(), in test_setFormats$Ljava_text_Format() 314 assertEquals(format.getFormats()[1], NumberFormat.getCurrencyInstance(mk)); in test_ConstructorLjava_lang_StringLjava_util_Locale() 315 assertEquals(format.getFormats()[2], NumberFormat.getIntegerInstance(mk)); in test_ConstructorLjava_lang_StringLjava_util_Locale() 330 assertTrue("Wrong number format", formats[2].equals(NumberFormat in test_ConstructorLjava_lang_String() 348 buffer.append(NumberFormat.getInstance().format(Double.valueOf(7.2))); in test_ConstructorLjava_lang_String() 470 .equals(NumberFormat.getNumberInstance())); in test_applyPatternLjava_lang_String() 475 .equals(NumberFormat.getCurrencyInstance())); in test_applyPatternLjava_lang_String() [all …]
|
D | DecimalFormatTest.java | 28 import java.text.NumberFormat; 96 DecimalFormat form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 103 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 117 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 143 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 152 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 160 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 178 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 190 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() 202 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); in test_parse_returnType() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldNumberFormatTest.java | 25 import java.text.NumberFormat; 35 DecimalFormat format = (DecimalFormat) NumberFormat.getIntegerInstance(Locale.US); in test_getIntegerInstanceLjava_util_Locale() 45 format = (DecimalFormat) NumberFormat.getIntegerInstance(chLocale); in test_getIntegerInstanceLjava_util_Locale() 54 format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale); in test_getIntegerInstanceLjava_util_Locale() 69 NumberFormat format = NumberFormat.getInstance(); in test_setMaximumIntegerDigits() 84 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_setCurrencyLjava_util_Currency() 92 ((NumberFormat) cformat).setCurrency(currA); in test_setCurrencyLjava_util_Currency() 98 NumberFormat.getInstance().setCurrency(null); in test_setCurrencyLjava_util_Currency() 105 NumberFormat.getIntegerInstance().setCurrency(null); in test_setCurrencyLjava_util_Currency() 114 assertNull(NumberFormat.getInstance().parseObject("0", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | NumberFormatTest.java | 24 import java.text.NumberFormat; 42 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US); in test_custom_Number_gets_longValue() 49 class MyNumberFormat extends NumberFormat { in test_small_BigInteger_gets_longValue() 62 NumberFormat nf = new MyNumberFormat(); in test_small_BigInteger_gets_longValue() 72 NumberFormat numberFormat = NumberFormat.getNumberInstance(new Locale("ar")); in test_getIntegerInstance_ar() 75 NumberFormat integerFormat = NumberFormat.getIntegerInstance(new Locale("ar")); in test_getIntegerInstance_ar() 82 NumberFormat nf = NumberFormat.getNumberInstance(arabic); in test_numberLocalization() 91 NumberFormat nf = NumberFormat.getPercentInstance(Locale.US); in test_10333() 102 NumberFormat nf = NumberFormat.getPercentInstance(Locale.US); in testPercentageRounding() 118 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US); in test_62269() [all …]
|
D | DecimalFormatTest.java | 30 import java.text.NumberFormat; 57 NumberFormat numberFormat = NumberFormat.getNumberInstance(Locale.US); in test_setMaximumIntegerDigits() 70 NumberFormat pf = NumberFormat.getPercentInstance(); in testBigDecimalBug1897917() 129 DecimalFormat df = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); in testFieldPosition() 130 DecimalFormat currencyDf = (DecimalFormat) NumberFormat.getCurrencyInstance(Locale.US); in testFieldPosition() 131 DecimalFormat percentDf = (DecimalFormat) NumberFormat.getPercentInstance(Locale.US); in testFieldPosition() 132 DecimalFormat milledf = (DecimalFormat) NumberFormat.getInstance(Locale.US); in testFieldPosition() 134 DecimalFormat scientificDf = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); in testFieldPosition() 138 assertFieldPosition4Types(df, 123, NumberFormat.Field.INTEGER, "123", 0, 3); in testFieldPosition() 139 assertFieldPosition4Types(df, 123, NumberFormat.Field.FRACTION, "123", 3, 3); in testFieldPosition() [all …]
|
D | OldNumberFormatFieldTest.java | 25 import java.text.NumberFormat; 50 NumberFormat.Field nfield = NumberFormat.Field.CURRENCY; in test_readResolve() 58 NumberFormat.Field nfield2 = (NumberFormat.Field) in.readObject(); in test_readResolve() 71 static class MyNumberFormat extends NumberFormat.Field {
|
D | AttributedCharacterIteratorAttributeTest.java | 23 import java.text.NumberFormat; 37 assertSameReserialized(NumberFormat.Field.INTEGER); in testSerialization()
|
D | OldDecimalFormatTestICU.java | 20 import java.text.NumberFormat; 35 format = (DecimalFormat) NumberFormat.getNumberInstance(); in setUp() 40 DecimalFormat format = (DecimalFormat) NumberFormat in test_sigDigitPatterns()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | NumberFormat.java | 45 public abstract class NumberFormat extends java.text.Format { class 47 protected NumberFormat() { in NumberFormat() method in NumberFormat 92 public static final java.text.NumberFormat getInstance() { in getInstance() 96 public static java.text.NumberFormat getInstance(java.util.Locale inLocale) { in getInstance() 100 public static final java.text.NumberFormat getNumberInstance() { in getNumberInstance() 104 public static java.text.NumberFormat getNumberInstance(java.util.Locale inLocale) { in getNumberInstance() 108 public static final java.text.NumberFormat getIntegerInstance() { in getIntegerInstance() 112 public static java.text.NumberFormat getIntegerInstance(java.util.Locale inLocale) { in getIntegerInstance() 116 public static final java.text.NumberFormat getCurrencyInstance() { in getCurrencyInstance() 120 public static java.text.NumberFormat getCurrencyInstance(java.util.Locale inLocale) { in getCurrencyInstance() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | NumberFormat.annotated.java | 50 public abstract class NumberFormat extends java.text.Format { class 52 protected NumberFormat() { throw new RuntimeException("Stub!"); } in NumberFormat() method in NumberFormat 74 @libcore.util.NonNull public static final java.text.NumberFormat getInstance() { throw new RuntimeE… in getInstance() 76 @libcore.util.NonNull public static java.text.NumberFormat getInstance(@libcore.util.NonNull java.u… in getInstance() 78 @libcore.util.NonNull public static final java.text.NumberFormat getNumberInstance() { throw new Ru… in getNumberInstance() 80 @libcore.util.NonNull public static java.text.NumberFormat getNumberInstance(@libcore.util.NonNull … in getNumberInstance() 82 @libcore.util.NonNull public static final java.text.NumberFormat getIntegerInstance() { throw new R… in getIntegerInstance() 84 @libcore.util.NonNull public static java.text.NumberFormat getIntegerInstance(@libcore.util.NonNull… in getIntegerInstance() 86 @libcore.util.NonNull public static final java.text.NumberFormat getCurrencyInstance() { throw new … in getCurrencyInstance() 88 @libcore.util.NonNull public static java.text.NumberFormat getCurrencyInstance(@libcore.util.NonNul… in getCurrencyInstance() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | NumberFormat.java | 213 public abstract class NumberFormat extends Format { class 233 protected NumberFormat() { in NumberFormat() method in NumberFormat 485 public static final NumberFormat getInstance() { in getInstance() 498 public static NumberFormat getInstance(Locale inLocale) { in getInstance() 514 public static final NumberFormat getNumberInstance() { in getNumberInstance() 525 public static NumberFormat getNumberInstance(Locale inLocale) { in getNumberInstance() 547 public static final NumberFormat getIntegerInstance() { in getIntegerInstance() 564 public static NumberFormat getIntegerInstance(Locale inLocale) { in getIntegerInstance() 579 public static final NumberFormat getCurrencyInstance() { in getCurrencyInstance() 598 public static NumberFormat getCurrencyInstance(Locale inLocale) { in getCurrencyInstance() [all …]
|
D | DecimalFormat.java | 387 public class DecimalFormat extends NumberFormat { 529 android.icu.text.NumberFormat.Field attribute; in getIcuFieldPosition() 531 attribute = android.icu.text.NumberFormat.Field.INTEGER; in getIcuFieldPosition() 533 attribute = android.icu.text.NumberFormat.Field.FRACTION; in getIcuFieldPosition() 535 attribute = android.icu.text.NumberFormat.Field.DECIMAL_SEPARATOR; in getIcuFieldPosition() 537 attribute = android.icu.text.NumberFormat.Field.EXPONENT_SYMBOL; in getIcuFieldPosition() 539 attribute = android.icu.text.NumberFormat.Field.EXPONENT_SIGN; in getIcuFieldPosition() 541 attribute = android.icu.text.NumberFormat.Field.EXPONENT; in getIcuFieldPosition() 543 attribute = android.icu.text.NumberFormat.Field.GROUPING_SEPARATOR; in getIcuFieldPosition() 545 attribute = android.icu.text.NumberFormat.Field.CURRENCY; in getIcuFieldPosition() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ExpensiveObjectsBenchmark.java | 23 import java.text.NumberFormat; 96 NumberFormat.getInstance(Locale.US); in timeNewNumberFormat() 101 NumberFormat nf = NumberFormat.getInstance(Locale.US); in timeClonedNumberFormat() 108 NumberFormat nf = NumberFormat.getInstance(Locale.US); in timeNumberFormatTrivialFormatLong() 121 NumberFormat nf = NumberFormat.getInstance(Locale.US); in timeNumberFormatTrivialFormatDouble()
|
D | NumberFormatBenchmark.java | 19 import java.text.NumberFormat; 28 NumberFormat.getInstance(locale); in time_instantiation()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | MessageFormatsByArgumentIndex.java | 35 import java.text.NumberFormat; 59 format.setFormatByArgumentIndex(0, NumberFormat.getInstance()); in main() 65 checkSubformat(subformats, 0, NumberFormat.getInstance()); in main() 74 checkSubformat(subformats, 2, NumberFormat.getInstance()); in main() 84 checkSubformat(subformats, 2, NumberFormat.getInstance()); in main() 90 checkSubformat(subformats, 1, NumberFormat.getInstance()); in main()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DecimalFormatData.java | 21 import android.icu.text.NumberFormat; 76 DecimalFormat df = (DecimalFormat) NumberFormat.getInstance( in DecimalFormatData() 77 locale, NumberFormat.NUMBERSTYLE); in DecimalFormatData() 80 df = (DecimalFormat) NumberFormat.getInstance(locale, NumberFormat.CURRENCYSTYLE); in DecimalFormatData() 83 df = (DecimalFormat) NumberFormat.getInstance(locale, NumberFormat.PERCENTSTYLE); in DecimalFormatData()
|
/libcore/ojluni/src/test/java/text/Format/NumberFormat/ |
D | BigDecimalFormat.java | 32 package test.java.text.Format.NumberFormat; 109 NumberFormat nf = NumberFormat.getInstance(Locale.US); in test_Format_in_NumberFormat_BigDecimal() 125 fp = new FieldPosition(NumberFormat.Field.SIGN); in test_Format_in_NumberFormat_BigDecimal() 253 fp = new FieldPosition(NumberFormat.Field.GROUPING_SEPARATOR); in test_Format_in_NumberFormat_BigDecimal() 312 fp = new FieldPosition(NumberFormat.Field.EXPONENT); in test_Format_in_NumberFormat_BigDecimal() 368 fp = new FieldPosition(NumberFormat.Field.EXPONENT_SYMBOL); in test_Format_in_NumberFormat_BigDecimal() 381 fp = new FieldPosition(NumberFormat.Field.EXPONENT_SIGN); in test_Format_in_NumberFormat_BigDecimal() 414 fp = new FieldPosition(NumberFormat.Field.DECIMAL_SEPARATOR); in test_Format_in_NumberFormat_BigDecimal() 530 NumberFormat nf = NumberFormat.getInstance(Locale.US); in test_Format_in_NumberFormat_BigDecimal_usingMultiplier() 590 NumberFormat nf = NumberFormat.getInstance(Locale.US); in test_Format_in_NumberFormat_BigInteger() [all …]
|
D | SerializationLoadTest.java | 34 package test.java.text.Format.NumberFormat.SerializationLoadTest; 41 import java.text.NumberFormat; 75 DecimalFormat _decFormat = (DecimalFormat)NumberFormat.getInstance();
|
D | SerializationSaveTest.java | 30 package test.java.text.Format.NumberFormat.SerializationSaveTest; 64 DecimalFormat _decFormat = (DecimalFormat)NumberFormat.getInstance();
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | unsupported_new_apis.txt | 83 java/text/NumberFormat#getCompactNumberInstance()Ljava/text/NumberFormat; 84 java/text/NumberFormat#getCompactNumberInstance(Ljava/util/Locale;Ljava/text/NumberFormat$Style;)Lj… 85 java/text/NumberFormat$Style#LONG:Ljava/text/NumberFormat$Style; 86 java/text/NumberFormat$Style#SHORT:Ljava/text/NumberFormat$Style; 87 java/text/NumberFormat$Style#valueOf(Ljava/lang/String;)Ljava/text/NumberFormat$Style; 88 java/text/NumberFormat$Style#values()[Ljava/text/NumberFormat$Style;
|