Home
last modified time | relevance | path

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

123

/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.java1493 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum); in TestNumberFormat()
1495 gp.setNumberFormat(GlobalizationPreferences.NF_CURRENCY, customCur); in TestNumberFormat()
1497 gp.setNumberFormat(GlobalizationPreferences.NF_PERCENT, customPct); in TestNumberFormat()
1499 gp.setNumberFormat(GlobalizationPreferences.NF_SCIENTIFIC, customSci); in TestNumberFormat()
1501 gp.setNumberFormat(GlobalizationPreferences.NF_INTEGER, customInt); in TestNumberFormat()
1532 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
1551 gp1.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
DNumberFormatRegressionTest.java91 df.setNumberFormat(nf); in TestJ691()
DPluralFormatTest.java336 pf.setNumberFormat(nf); in TestFractionRounding()
DDateFormatTest.java2412 f.setNumberFormat(nf); in TestCoverage()
4052 fmt.setNumberFormat("y", check_nf); in TestOverrideNumberForamt()
4059 fmt.setNumberFormat("y", reused_nf); in TestOverrideNumberForamt()
4060 fmt.setNumberFormat(reused_nf); // test the same override NF will not crash in TestOverrideNumberForamt()
4082 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4085 fmt.setNumberFormat("M", single_override); in TestOverrideNumberForamt()
4086 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4089 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
4095 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
DPluralFormatUnitTest.java406 pf2.setNumberFormat(new DecimalFormat("0.0", new DecimalFormatSymbols(ULocale.ENGLISH))); in TestDecimals()
/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.java2409 f.setNumberFormat(nf); in TestCoverage()
4049 fmt.setNumberFormat("y", check_nf); in TestOverrideNumberForamt()
4056 fmt.setNumberFormat("y", reused_nf); in TestOverrideNumberForamt()
4057 fmt.setNumberFormat(reused_nf); // test the same override NF will not crash in TestOverrideNumberForamt()
4079 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4082 fmt.setNumberFormat("M", single_override); in TestOverrideNumberForamt()
4083 fmt.setNumberFormat(override); in TestOverrideNumberForamt()
4086 fmt.setNumberFormat(field, override); in TestOverrideNumberForamt()
4092 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/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DSimpleDateFormat.java339 public void setNumberFormat(NumberFormat newNumberFormat) { in setNumberFormat() method in SimpleDateFormat
340 super.setNumberFormat(newNumberFormat); in setNumberFormat()
DDateFormat.java1295 public void setNumberFormat(NumberFormat newNumberFormat) in setNumberFormat() method in DateFormat
1297 dateFormat.setNumberFormat(newNumberFormat.numberFormat); in setNumberFormat()
/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.java1490 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum); in TestNumberFormat()
1492 gp.setNumberFormat(GlobalizationPreferences.NF_CURRENCY, customCur); in TestNumberFormat()
1494 gp.setNumberFormat(GlobalizationPreferences.NF_PERCENT, customPct); in TestNumberFormat()
1496 gp.setNumberFormat(GlobalizationPreferences.NF_SCIENTIFIC, customSci); in TestNumberFormat()
1498 gp.setNumberFormat(GlobalizationPreferences.NF_INTEGER, customInt); in TestNumberFormat()
1529 gp.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
1548 gp1.setNumberFormat(GlobalizationPreferences.NF_NUMBER, customNum1); in TestNumberFormat()
/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
/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/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DDateFormatTest.java294 df.setNumberFormat(nf); in testSetNumberFormat()

123