Home
last modified time | relevance | path

Searched refs:numberFormat (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java52 NumberFormat numberFormat = NumberFormat.getNumberInstance(Locale.US); in test_setMaximumIntegerDigits() local
53 numberFormat.setGroupingUsed(false); in test_setMaximumIntegerDigits()
54 numberFormat.setMinimumIntegerDigits(400); in test_setMaximumIntegerDigits()
58 assertEquals(309, numberFormat.format(123).length()); in test_setMaximumIntegerDigits()
59 assertEquals(309, numberFormat.format(BigInteger.valueOf(123)).length()); in test_setMaximumIntegerDigits()
268 NumberFormat numberFormat = NumberFormat.getCurrencyInstance(Locale.GERMAN); in testBug71369() local
269 numberFormat.setCurrency(Currency.getInstance("USD")); in testBug71369()
271 assertEquals("2,01" + nonBreakingSpace + "$", numberFormat.format(2.01)); in testBug71369()
273 numberFormat.setMinimumFractionDigits(0); in testBug71369()
274 numberFormat.setMaximumFractionDigits(0); in testBug71369()
[all …]
DNumberFormatTest.java69 NumberFormat numberFormat = NumberFormat.getNumberInstance(new Locale("ar")); in test_getIntegerInstance_ar() local
70 assertEquals("#,##0.###", ((DecimalFormat) numberFormat).toPattern()); in test_getIntegerInstance_ar()
/libcore/luni/src/main/java/java/text/
DDateFormat.java84 protected NumberFormat numberFormat; field in DateFormat
238 clone.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
262 return numberFormat.equals(dateFormat.numberFormat) in equals()
485 return numberFormat; in getNumberFormat()
553 + numberFormat.hashCode(); in hashCode()
669 numberFormat = format; in setNumberFormat()
DSimpleDateFormat.java362 numberFormat = NumberFormat.getInstance(locale); in SimpleDateFormat()
363 numberFormat.setParseIntegerOnly(true); in SimpleDateFormat()
364 numberFormat.setGroupingUsed(false); in SimpleDateFormat()
765 numberFormat.setMinimumIntegerDigits((count > 3) ? 3 : count); in appendMilliseconds()
766 numberFormat.setMaximumIntegerDigits(10); in appendMilliseconds()
774 numberFormat.format(Integer.valueOf(value), buffer, p); in appendMilliseconds()
776 numberFormat.setMinimumIntegerDigits(count - 3); in appendMilliseconds()
777 numberFormat.format(Integer.valueOf(0), buffer, p); in appendMilliseconds()
785 int minimumIntegerDigits = numberFormat.getMinimumIntegerDigits(); in appendNumber()
786 numberFormat.setMinimumIntegerDigits(count); in appendNumber()
[all …]