Home
last modified time | relevance | path

Searched refs:getNumberFormat (Results 1 – 25 of 72) sorted by relevance

123

/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java107 NumberFormat nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestDefault()
1395 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1407 nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestNumberFormat()
1415 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1423 nf = gp.getNumberFormat(GlobalizationPreferences.NF_PERCENT); in TestNumberFormat()
1431 nf = gp.getNumberFormat(GlobalizationPreferences.NF_SCIENTIFIC); in TestNumberFormat()
1439 nf = gp.getNumberFormat(GlobalizationPreferences.NF_INTEGER); in TestNumberFormat()
1449 nf = gp.getNumberFormat(100); in TestNumberFormat()
1459 nf = gp.getNumberFormat(-1); in TestNumberFormat()
1471 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DGlobalizationPreferencesTest.java108 NumberFormat nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestDefault()
1396 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1408 nf = gp.getNumberFormat(GlobalizationPreferences.NF_NUMBER); in TestNumberFormat()
1416 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
1424 nf = gp.getNumberFormat(GlobalizationPreferences.NF_PERCENT); in TestNumberFormat()
1432 nf = gp.getNumberFormat(GlobalizationPreferences.NF_SCIENTIFIC); in TestNumberFormat()
1440 nf = gp.getNumberFormat(GlobalizationPreferences.NF_INTEGER); in TestNumberFormat()
1450 nf = gp.getNumberFormat(100); in TestNumberFormat()
1460 nf = gp.getNumberFormat(-1); in TestNumberFormat()
1472 nf = gp.getNumberFormat(GlobalizationPreferences.NF_CURRENCY); in TestNumberFormat()
[all …]
DIntlTestDateFormatAPI.java205 final NumberFormat nf = def.getNumberFormat(); in TestAPI()
209 if( ! de.getNumberFormat().equals(it.getNumberFormat())) { in TestAPI()
DRelativeDateTimeFormatterTest.java855 fmt.getNumberFormat().setMinimumFractionDigits(5); in TestCustomNumberFormat()
857 "TestCustomNumberformat", 1, fmt.getNumberFormat().getMinimumFractionDigits()); in TestCustomNumberFormat()
888 NumberFormat nf = fmt.getNumberFormat(); in TestJavaLocale()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyFormat.java106 public NumberFormat getNumberFormat() { in getNumberFormat() method in CurrencyFormat
107 return mf.getNumberFormat(); in getNumberFormat()
DTimeUnitFormat.java600 public NumberFormat getNumberFormat() { in getNumberFormat() method in TimeUnitFormat
601 return mf.getNumberFormat(); in getNumberFormat()
DMeasureFormat.java617 && getNumberFormat().equals(rhs.getNumberFormat()); in equals()
628 + getNumberFormat().hashCode()) * 31 + getWidth().hashCode(); in hashCode()
651 public NumberFormat getNumberFormat() { in getNumberFormat() method in MeasureFormat
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCurrencyFormat.java107 public NumberFormat getNumberFormat() { in getNumberFormat() method in CurrencyFormat
108 return mf.getNumberFormat(); in getNumberFormat()
DTimeUnitFormat.java602 public NumberFormat getNumberFormat() { in getNumberFormat() method in TimeUnitFormat
603 return mf.getNumberFormat(); in getNumberFormat()
DMeasureFormat.java596 && getNumberFormat().equals(rhs.getNumberFormat()); in equals()
606 + getNumberFormat().hashCode()) * 31 + getWidth().hashCode(); in hashCode()
626 public NumberFormat getNumberFormat() { in getNumberFormat() method in MeasureFormat
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDateFormatAPI.java204 final NumberFormat nf = def.getNumberFormat(); in TestAPI()
208 if( ! de.getNumberFormat().equals(it.getNumberFormat())) { in TestAPI()
DRelativeDateTimeFormatterTest.java854 fmt.getNumberFormat().setMinimumFractionDigits(5); in TestCustomNumberFormat()
856 "TestCustomNumberformat", 1, fmt.getNumberFormat().getMinimumFractionDigits()); in TestCustomNumberFormat()
887 NumberFormat nf = fmt.getNumberFormat(); in TestJavaLocale()
DTimeUnitTest.java441 …assertEquals("getNumberFormat", ULocale.FRENCH, tuf.getNumberFormat().getLocale(ULocale.VALID_LOCA… in TestStandInForMeasureFormat()
/external/icu/icu4c/source/test/intltest/
Ddtfmapts.cpp237 const NumberFormat *nf = def->getNumberFormat(); in testAPI()
241 if( *(de->getNumberFormat()) != *(it->getNumberFormat())) { in testAPI()
320 sdf.getNumberFormat(); in TestNameHiding()
/external/icu/icu4c/source/i18n/
Dwinnmfmt.cpp81 static void getNumberFormat(NUMBERFMTW *fmt, int32_t lcid) in getNumberFormat() function
160 getNumberFormat(&fFormatInfo->number, fLCID); in Win32NumberFormat()
201 getNumberFormat(&fFormatInfo->number, fLCID); in operator =()
Dnfsubs.h55 const DecimalFormat* getNumberFormat() const { return numberFormat; } in getNumberFormat() function
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DTimer.java60 public DecimalFormat getNumberFormat() { in getNumberFormat() method in Timer
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DTimer.java59 public DecimalFormat getNumberFormat() { in getNumberFormat() method in Timer
/external/icu/icu4c/source/i18n/unicode/
Dreldatefmt.h488 const NumberFormat& getNumberFormat() const;
Dmeasfmt.h314 const NumberFormat &getNumberFormat() const;
Ddatefmt.h742 virtual const NumberFormat* getNumberFormat(void) const;
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DSimpleDateFormatICU.java227 public NumberFormat getNumberFormat() { in getNumberFormat() method in SimpleDateFormatICU
228 com.ibm.icu.text.NumberFormat nfmt = fIcuSdf.getNumberFormat(); in getNumberFormat()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java143 metadata.getNumberFormat(1).getPattern()); in testGetInstanceLoadUSMetadata()
144 assertEquals("$1 $2 $3", metadata.getNumberFormat(1).getFormat()); in testGetInstanceLoadUSMetadata()
166 assertEquals(1, metadata.getNumberFormat(5).leadingDigitsPatternSize()); in testGetInstanceLoadDEMetadata()
167 assertEquals("900", metadata.getNumberFormat(5).getLeadingDigitsPattern(0)); in testGetInstanceLoadDEMetadata()
169 metadata.getNumberFormat(5).getPattern()); in testGetInstanceLoadDEMetadata()
170 assertEquals("$1 $2 $3", metadata.getNumberFormat(5).getFormat()); in testGetInstanceLoadDEMetadata()
192 assertEquals("$2 15 $3-$4", metadata.getNumberFormat(2).getFormat()); in testGetInstanceLoadARMetadata()
194 metadata.getNumberFormat(3).getPattern()); in testGetInstanceLoadARMetadata()
204 assertEquals("$1 $2", metadata.getNumberFormat(0).getFormat()); in testGetInstanceLoadInternationalTollFreeMetadata()
205 assertEquals("(\\d{4})(\\d{4})", metadata.getNumberFormat(0).getPattern()); in testGetInstanceLoadInternationalTollFreeMetadata()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DDateFormat.java1306 public NumberFormat getNumberFormat() in getNumberFormat() method in DateFormat
1308 return new NumberFormat(dateFormat.getNumberFormat()); in getNumberFormat()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DDateFormatTest.java296 assertEquals(nf, df.getNumberFormat()); in testSetNumberFormat()

123