Home
last modified time | relevance | path

Searched refs:setNumberFormat (Results 1 – 25 of 52) sorted by relevance

123

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeUnitTest.java44 tuf.setNumberFormat(nf); in Test10219FractionalPlurals()
109 format.setNumberFormat(NumberFormat.getNumberInstance(new ULocale("en"))); in TestAPI()
114 format.setNumberFormat(NumberFormat.getNumberInstance(es)); in TestAPI()
123 format.setNumberFormat(NumberFormat.getNumberInstance(new Locale("en"))); in TestAPI()
131 tuf.setNumberFormat(nf); in TestClone()
283 tuf.setNumberFormat(numfmt); in TestGreekWithSanitization()
376 tuf.setNumberFormat(NumberFormat.getInstance()); in TestSetNumberFormat()
379 if (!tuf.setNumberFormat(NumberFormat.getInstance()).equals(tuf)) { in TestSetNumberFormat()
386 if (!tuf.setNumberFormat(null).equals(tuf)) { in TestSetNumberFormat()
394 tuf1.setNumberFormat(NumberFormat.getInstance()); in TestSetNumberFormat()
[all …]
DIntlTestDateFormatAPI.java203 de.setNumberFormat(newNf); in TestAPI()
204 it.setNumberFormat(newNf); in TestAPI()
DNumberFormatRegressionTest.java88 df.setNumberFormat(nf); in TestJ691()
DPluralFormatTest.java333 pf.setNumberFormat(nf); in TestFractionRounding()
DDateFormatTest.java2497 f.setNumberFormat(nf); in TestCoverage()
4137 fmt.setNumberFormat("y", check_nf); in TestOverrideNumberForamt()
4144 fmt.setNumberFormat("y", reused_nf); in TestOverrideNumberForamt()
4145 fmt.setNumberFormat(reused_nf); // test the same override NF will not crash in TestOverrideNumberForamt()
4167 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4170 fmt.setNumberFormat("M", single_override); in TestOverrideNumberForamt()
4171 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4174 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
4180 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
DPluralFormatUnitTest.java403 pf2.setNumberFormat(new DecimalFormat("0.0", new DecimalFormatSymbols(ULocale.ENGLISH))); in TestDecimals()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeUnitTest.java47 tuf.setNumberFormat(nf); in Test10219FractionalPlurals()
112 format.setNumberFormat(NumberFormat.getNumberInstance(new ULocale("en"))); in TestAPI()
117 format.setNumberFormat(NumberFormat.getNumberInstance(es)); in TestAPI()
126 format.setNumberFormat(NumberFormat.getNumberInstance(new Locale("en"))); in TestAPI()
134 tuf.setNumberFormat(nf); in TestClone()
286 tuf.setNumberFormat(numfmt); in TestGreekWithSanitization()
379 tuf.setNumberFormat(NumberFormat.getInstance()); in TestSetNumberFormat()
382 if (!tuf.setNumberFormat(NumberFormat.getInstance()).equals(tuf)) { in TestSetNumberFormat()
389 if (!tuf.setNumberFormat(null).equals(tuf)) { in TestSetNumberFormat()
397 tuf1.setNumberFormat(NumberFormat.getInstance()); in TestSetNumberFormat()
[all …]
DIntlTestDateFormatAPI.java206 de.setNumberFormat(newNf); in TestAPI()
207 it.setNumberFormat(newNf); in TestAPI()
DGlobalizationPreferencesTest.java1503 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum); in TestNumberFormat()
1505 gp.setNumberFormat(GlobalizationPreferences.NF_CURRENCY, customCur); in TestNumberFormat()
1507 gp.setNumberFormat(GlobalizationPreferences.NF_PERCENT, customPct); in TestNumberFormat()
1509 gp.setNumberFormat(GlobalizationPreferences.NF_SCIENTIFIC, customSci); in TestNumberFormat()
1511 gp.setNumberFormat(GlobalizationPreferences.NF_INTEGER, customInt); in TestNumberFormat()
1542 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
1561 gp1.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
DNumberFormatRegressionTest.java91 df.setNumberFormat(nf); in TestJ691()
DPluralFormatTest.java336 pf.setNumberFormat(nf); in TestFractionRounding()
DDateFormatTest.java2500 f.setNumberFormat(nf); in TestCoverage()
4140 fmt.setNumberFormat("y", check_nf); in TestOverrideNumberForamt()
4147 fmt.setNumberFormat("y", reused_nf); in TestOverrideNumberForamt()
4148 fmt.setNumberFormat(reused_nf); // test the same override NF will not crash in TestOverrideNumberForamt()
4170 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4173 fmt.setNumberFormat("M", single_override); in TestOverrideNumberForamt()
4174 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4177 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
4183 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DSimpleDateFormatICU.java292 public void setNumberFormat(NumberFormat newNumberFormat) { in setNumberFormat() method in SimpleDateFormatICU
294 fIcuSdf.setNumberFormat(((DecimalFormatICU)newNumberFormat).unwrap()); in setNumberFormat()
296 fIcuSdf.setNumberFormat(((NumberFormatICU)newNumberFormat).unwrap()); in setNumberFormat()
298 fIcuSdf.setNumberFormat(NumberFormatJDK.wrap(newNumberFormat)); in setNumberFormat()
/external/icu/icu4c/source/test/intltest/
Dtufmtts.cpp279 tmf_en->setNumberFormat(*numberFmt, status); in testAPI()
295 format->setNumberFormat(*numberFmt, status); in testAPI()
451 timeUnitFormat->setNumberFormat(*numberFmt, status); in testGreekWithSanitization()
480 tuf.setNumberFormat(*nf, status); in test10219Plurals()
Dplurfmts.cpp95 plFmt[0]->setNumberFormat(numFmt,status[0]); in pluralFormatBasicTest()
674 pf2.setNumberFormat(&df, errorCode); in TestDecimals()
Ddtfmapts.cpp240 it->setNumberFormat(*newNf); in testAPI()
/external/icu/libicu/cts_headers/unicode/
Dtmutfmt.h161 void setNumberFormat(const NumberFormat& format, UErrorCode& status);
Dplurfmt.h420 void setNumberFormat(const NumberFormat* format, UErrorCode& status);
Ddatefmt.h772 virtual void setNumberFormat(const NumberFormat& newNumberFormat);
/external/icu/icu4c/source/i18n/unicode/
Dtmutfmt.h161 void setNumberFormat(const NumberFormat& format, UErrorCode& status);
Dplurfmt.h420 void setNumberFormat(const NumberFormat* format, UErrorCode& status);
Ddatefmt.h772 virtual void setNumberFormat(const NumberFormat& newNumberFormat);
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java1500 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum); in TestNumberFormat()
1502 gp.setNumberFormat(GlobalizationPreferences.NF_CURRENCY, customCur); in TestNumberFormat()
1504 gp.setNumberFormat(GlobalizationPreferences.NF_PERCENT, customPct); in TestNumberFormat()
1506 gp.setNumberFormat(GlobalizationPreferences.NF_SCIENTIFIC, customSci); in TestNumberFormat()
1508 gp.setNumberFormat(GlobalizationPreferences.NF_INTEGER, customInt); in TestNumberFormat()
1539 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
1558 gp1.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java157 setNumberFormat((NumberFormat) numberFormat.clone()); in TimeUnitFormat()
202 public TimeUnitFormat setNumberFormat(NumberFormat format) { in setNumberFormat() method in TimeUnitFormat
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java159 setNumberFormat((NumberFormat) numberFormat.clone()); in TimeUnitFormat()
204 public TimeUnitFormat setNumberFormat(NumberFormat format) { in setNumberFormat() method in TimeUnitFormat

123