Searched refs:numberFormat (Results 1 – 9 of 9) sorted by relevance
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 196 protected NumberFormat numberFormat; field in DateFormat 715 this.numberFormat = newNumberFormat; in setNumberFormat() 725 return numberFormat; in getNumberFormat() 804 return numberFormat.hashCode(); in hashCode() 820 numberFormat.equals(other.numberFormat)); in equals() 830 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
|
D | NumberFormat.java | 989 DecimalFormat numberFormat = new DecimalFormat(numberPatterns[entry], symbols); in getInstance() local 992 numberFormat.setMaximumFractionDigits(0); in getInstance() 993 numberFormat.setDecimalSeparatorAlwaysShown(false); in getInstance() 994 numberFormat.setParseIntegerOnly(true); in getInstance() 996 numberFormat.adjustForCurrencyDefaultFractionDigits(); in getInstance() 999 return numberFormat; in getInstance()
|
D | SimpleDateFormat.java | 742 numberFormat = cachedNumberFormatData.get(loc); in initialize() 743 if (numberFormat == null) { /* cache miss */ in initialize() 744 numberFormat = NumberFormat.getIntegerInstance(loc); in initialize() 745 numberFormat.setGroupingUsed(false); in initialize() 748 cachedNumberFormatData.putIfAbsent(loc, numberFormat); in initialize() 750 numberFormat = (NumberFormat) numberFormat.clone(); in initialize() 1678 zeroDigit = ((DecimalFormat)numberFormat).getDecimalFormatSymbols().getZeroDigit(); in zeroPaddingNumber() 1711 numberFormat.setMinimumIntegerDigits(minDigits); in zeroPaddingNumber() 1712 numberFormat.setMaximumIntegerDigits(maxDigits); in zeroPaddingNumber() 1713 numberFormat.format((long)value, buffer, DontCareFieldPosition.INSTANCE); in zeroPaddingNumber() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | NumberFormatTest.java | 72 NumberFormat numberFormat = NumberFormat.getNumberInstance(new Locale("ar")); in test_getIntegerInstance_ar() local 73 String patternNI = ((DecimalFormat) numberFormat).toPattern(); in test_getIntegerInstance_ar() 266 NumberFormat numberFormat = NumberFormat.getNumberInstance(locale); in test_getInstance_withLocaleExtension() local 267 assertEquals("123", numberFormat.format(123)); in test_getInstance_withLocaleExtension() 270 numberFormat = NumberFormat.getNumberInstance(locale); in test_getInstance_withLocaleExtension() 271 assertEquals("١٢٣", numberFormat.format(123)); in test_getInstance_withLocaleExtension()
|
D | DecimalFormatTest.java | 57 NumberFormat numberFormat = NumberFormat.getNumberInstance(Locale.US); in test_setMaximumIntegerDigits() local 58 numberFormat.setGroupingUsed(false); in test_setMaximumIntegerDigits() 59 numberFormat.setMinimumIntegerDigits(400); in test_setMaximumIntegerDigits() 63 assertEquals(309, numberFormat.format(123).length()); in test_setMaximumIntegerDigits() 64 assertEquals(309, numberFormat.format(BigInteger.valueOf(123)).length()); in test_setMaximumIntegerDigits() 397 NumberFormat numberFormat = NumberFormat.getCurrencyInstance(Locale.GERMAN); in testBug71369() local 398 numberFormat.setCurrency(Currency.getInstance("USD")); in testBug71369() 400 assertEquals("2,01" + nonBreakingSpace + "$", numberFormat.format(2.01)); in testBug71369() 402 numberFormat.setMinimumFractionDigits(0); in testBug71369() 403 numberFormat.setMaximumFractionDigits(0); in testBug71369() [all …]
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 163 protected java.text.NumberFormat numberFormat; field in DateFormat
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DateFormat.java | 226 protected java.text.NumberFormat numberFormat; field in DateFormat
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | DateFormat.annotated.java | 158 @libcore.util.NonNull protected java.text.NumberFormat numberFormat; field in DateFormat
|
/libcore/api/ |
D | current.txt | 11071 field @NonNull protected java.text.NumberFormat numberFormat;
|