Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DAbstractCalendar.java223 long fraction = date.getTimeOfDay(); in getTimeOfDay() local
224 if (fraction != CalendarDate.TIME_UNDEFINED) { in getTimeOfDay()
225 return fraction; in getTimeOfDay()
227 fraction = getTimeOfDayValue(date); in getTimeOfDay()
228 date.setTimeOfDay(fraction); in getTimeOfDay()
229 return fraction; in getTimeOfDay()
233 long fraction = date.getHours(); in getTimeOfDayValue() local
234 fraction *= 60; in getTimeOfDayValue()
235 fraction += date.getMinutes(); in getTimeOfDayValue()
236 fraction *= 60; in getTimeOfDayValue()
[all …]
DCalendarDate.java78 private long fraction; // time of day value in millisecond field in CalendarDate
300 return fraction = TIME_UNDEFINED; in getTimeOfDay()
302 return fraction; in getTimeOfDay()
335 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument
336 this.fraction = fraction; in setTimeOfDay()
DImmutableGregorianDate.java165 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java441 int fraction = ldt.getNano(); in toString() local
460 if (fraction != 0) { in toString()
464 while (fraction % 10 == 0) { in toString()
465 fraction /= 10; in toString()
468 append(sb, w, fraction); in toString()
/libcore/luni/src/main/java/java/math/
DBigDecimal.java2775 long fraction = unscaledVal % sizeOfFraction; in smallRound() local
2778 if (fraction != 0) { in smallRound()
2780 compRem = compareForRounding(fraction, sizeOfFraction); in smallRound()
2783 Long.signum(fraction) * (5 + compRem), in smallRound()
2812 private static int roundingBehavior(int parityBit, int fraction, RoundingMode roundingMode) { in roundingBehavior() argument
2817 if (fraction != 0) { in roundingBehavior()
2822 increment = Integer.signum(fraction); in roundingBehavior()
2827 increment = Math.max(Integer.signum(fraction), 0); in roundingBehavior()
2830 increment = Math.min(Integer.signum(fraction), 0); in roundingBehavior()
2833 if (Math.abs(fraction) >= 5) { in roundingBehavior()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DCalendarDate.java176 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument
266 private long fraction; field in CalendarDate
DAbstractCalendar.java84 sun.util.calendar.CalendarDate cdate, int fraction) { in setTimeOfDay() argument
DImmutableGregorianDate.java161 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java156 private void assertBigDecimalWithFraction(BigDecimal bd, String expectedResult, int fraction) { in assertBigDecimalWithFraction() argument
158 pf.setMaximumFractionDigits(fraction); in assertBigDecimalWithFraction()
162 …private void assertDecFmtWithMultiplierAndFraction(String value, int multiplier, int fraction, Str… in assertDecFmtWithMultiplierAndFraction() argument
165 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFraction()
170 …cFmtWithMultiplierAndFractionByLocale(String value, int multiplier, int fraction, Locale locale, S… in assertDecFmtWithMultiplierAndFractionByLocale() argument
173 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFractionByLocale()