Searched refs:fraction (Results 1 – 9 of 9) sorted by relevance
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | AbstractCalendar.java | 223 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 …]
|
D | CalendarDate.java | 78 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()
|
D | ImmutableGregorianDate.java | 165 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 441 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/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | CalendarDate.java | 176 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument 266 private long fraction; field in CalendarDate
|
D | AbstractCalendar.java | 84 sun.util.calendar.CalendarDate cdate, int fraction) { in setTimeOfDay() argument
|
D | ImmutableGregorianDate.java | 161 protected void setTimeOfDay(long fraction) { in setTimeOfDay() argument
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | DecimalFormatTest.java | 267 private void assertBigDecimalWithFraction(BigDecimal bd, String expectedResult, int fraction) { in assertBigDecimalWithFraction() argument 269 pf.setMaximumFractionDigits(fraction); in assertBigDecimalWithFraction() 273 …private void assertDecFmtWithMultiplierAndFraction(String value, int multiplier, int fraction, Str… in assertDecFmtWithMultiplierAndFraction() argument 276 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFraction() 281 …cFmtWithMultiplierAndFractionByLocale(String value, int multiplier, int fraction, Locale locale, S… in assertDecFmtWithMultiplierAndFractionByLocale() argument 284 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFractionByLocale()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3247 BigDecimal fraction = convertToFraction(value); in format() local 3248 if (fraction.scale() == 0) { // scale is zero if value is zero in format() 3258 int outputScale = Math.min(Math.max(fraction.scale(), minWidth), maxWidth); in format() 3259 fraction = fraction.setScale(outputScale, RoundingMode.FLOOR); in format() 3260 String str = fraction.toPlainString().substring(2); in format() 3305 BigDecimal fraction = new BigDecimal(total).movePointLeft(pos - position); in parse() local 3306 long value = convertFromFraction(fraction); in parse() 3332 BigDecimal fraction = valueBD.divide(rangeBD, 9, RoundingMode.FLOOR); in convertToFraction() local 3334 … return fraction.compareTo(BigDecimal.ZERO) == 0 ? BigDecimal.ZERO : fraction.stripTrailingZeros(); in convertToFraction() 3353 private long convertFromFraction(BigDecimal fraction) { in convertFromFraction() argument [all …]
|