Home
last modified time | relevance | path

Searched refs:setRoundingMode (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DMathContext.java157 RoundingMode setRoundingMode) { in MathContext() argument
160 if (setRoundingMode == null) in MathContext()
164 roundingMode = setRoundingMode; in MathContext()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2152 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_formatToCharacterIterator_roundingUnnecessaryArithmeticException()
2167 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_formatDouble_roundingUnnecessaryArithmeticException()
2183 decimalFormat.setRoundingMode(RoundingMode.UNNECESSARY); in test_format_roundingUnnecessaryArithmeticException()
2203 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_getRoundingMode()
2213 decimalFormat.setRoundingMode(null); in test_setRoundingMode_null()
2227 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_format_withRoundingMode()
2239 decimalFormat.setRoundingMode(RoundingMode.CEILING); in test_format_withRoundingMode()
2248 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode()
2260 decimalFormat.setRoundingMode(RoundingMode.FLOOR); in test_format_withRoundingMode()
2272 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode()
[all …]
DNumberFormatTest.java277 ((NumberFormat) choiceFormat).setRoundingMode(null); in test_setRoundingMode_NullRoundingMode()
291 ((NumberFormat) choiceFormat).setRoundingMode(RoundingMode.CEILING); in test_setRoundingMode_Normal()
/libcore/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java106 nf.setRoundingMode(RoundingMode.UP); in testPercentageRounding()
109 nf.setRoundingMode(RoundingMode.DOWN); in testPercentageRounding()
DDecimalFormatTest.java49 df.setRoundingMode(RoundingMode.HALF_UP); in test_setMaximumFractionDigitsAffectsRoundingMode()
387 df.setRoundingMode(null); in testBug15081434()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4345 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() method in DecimalFormat
4353 icuDecimalFormat.setRoundingMode(convertRoundingMode(roundingMode)); in setRoundingMode()
4590 setRoundingMode(roundingMode); in readObject()
DNumberFormat.java961 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() method in NumberFormat
/libcore/ojluni/annotations/hiddenapi/java/text/
DNumberFormat.java200 public void setRoundingMode(java.math.RoundingMode roundingMode) { in setRoundingMode() method in NumberFormat
/libcore/ojluni/annotations/sdk/nullability/java/text/
DNumberFormat.annotated.java128 public void setRoundingMode(@libcore.util.Nullable java.math.RoundingMode roundingMode) { throw new… in setRoundingMode() method in NumberFormat
/libcore/api/
Dcurrent.txt11296 method public void setRoundingMode(@Nullable java.math.RoundingMode);