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 | 263 private void assertBigDecimalWithFraction(BigDecimal bd, String expectedResult, int fraction) { in assertBigDecimalWithFraction() argument 265 pf.setMaximumFractionDigits(fraction); in assertBigDecimalWithFraction() 269 …private void assertDecFmtWithMultiplierAndFraction(String value, int multiplier, int fraction, Str… in assertDecFmtWithMultiplierAndFraction() argument 272 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFraction() 277 …cFmtWithMultiplierAndFractionByLocale(String value, int multiplier, int fraction, Locale locale, S… in assertDecFmtWithMultiplierAndFractionByLocale() argument 280 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFractionByLocale()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 2958 BigDecimal fraction = convertToFraction(value); in format() local 2959 if (fraction.scale() == 0) { // scale is zero if value is zero in format() 2969 int outputScale = Math.min(Math.max(fraction.scale(), minWidth), maxWidth); in format() 2970 fraction = fraction.setScale(outputScale, RoundingMode.FLOOR); in format() 2971 String str = fraction.toPlainString().substring(2); in format() 3016 BigDecimal fraction = new BigDecimal(total).movePointLeft(pos - position); in parse() local 3017 long value = convertFromFraction(fraction); in parse() 3043 BigDecimal fraction = valueBD.divide(rangeBD, 9, RoundingMode.FLOOR); in convertToFraction() local 3045 … return fraction.compareTo(BigDecimal.ZERO) == 0 ? BigDecimal.ZERO : fraction.stripTrailingZeros(); in convertToFraction() 3064 private long convertFromFraction(BigDecimal fraction) { in convertFromFraction() argument [all …]
|