Home
last modified time | relevance | path

Searched refs:toHours (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java83 public long toHours(long d) { return d/(C5/C0); } in toHours() method
98 public long toHours(long d) { return d/(C5/C1); } in toHours() method
113 public long toHours(long d) { return d/(C5/C2); } in toHours() method
128 public long toHours(long d) { return d/(C5/C3); } in toHours() method
144 public long toHours(long d) { return d/(C5/C4); } in toHours() method
160 public long toHours(long d) { return d; } in toHours() method
162 public long convert(long d, TimeUnit u) { return u.toHours(d); } in convert()
176 public long toHours(long d) { return x(d, C6/C5, MAX/(C6/C5)); } in toHours() method
300 public long toHours(long duration) { in toHours() method in TimeUnit
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnitTest.java260 DAYS.toHours(t)); in testToHours()
262 HOURS.toHours(t)); in testToHours()
264 MINUTES.toHours(t*60)); in testToHours()
266 SECONDS.toHours(t*60*60)); in testToHours()
268 MILLISECONDS.toHours(t*1000L*60*60)); in testToHours()
270 MICROSECONDS.toHours(t*1000000L*60*60)); in testToHours()
272 NANOSECONDS.toHours(t*1000000000L*60*60)); in testToHours()
482 assertEquals(z * ratio, x.toHours(z)); in testToHoursSaturate()
484 assertEquals(Long.MAX_VALUE, x.toHours(max + 1)); in testToHoursSaturate()
485 assertEquals(Long.MIN_VALUE, x.toHours(-max - 1)); in testToHoursSaturate()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java227 DAYS.toHours(t)); in testToHours()
229 HOURS.toHours(t)); in testToHours()
231 MINUTES.toHours(t*60)); in testToHours()
233 SECONDS.toHours(t*60*60)); in testToHours()
235 MILLISECONDS.toHours(t*1000L*60*60)); in testToHours()
237 MICROSECONDS.toHours(t*1000000L*60*60)); in testToHours()
239 NANOSECONDS.toHours(t*1000000000L*60*60)); in testToHours()
/libcore/ojluni/src/main/java/java/time/
DDuration.java1153 public long toHours() { in toHours() method in Duration
1248 return (int) (toHours() % 24); in toHoursPart()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java286 public long toHours() { in toHours() method in Duration
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java1217 assertEquals(t.toHours(), expectedHours); in plusHours_long()
1836 assertEquals(t.toHours(), expectedHours); in minusHours_long()
/libcore/api/
Dcurrent.txt10657 method public long toHours();
15103 method public long toHours(long);