Home
last modified time | relevance | path

Searched refs:nanosToAdd (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DInstant.java899 public Instant plusNanos(long nanosToAdd) { in plusNanos() argument
900 return plus(0, nanosToAdd); in plusNanos()
914 private Instant plus(long secondsToAdd, long nanosToAdd) { in plus() argument
915 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
919 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
920 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()
921 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
DDuration.java794 public Duration plusNanos(long nanosToAdd) { in plusNanos() argument
795 return plus(0, nanosToAdd); in plusNanos()
808 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument
809 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
813 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
814 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()
815 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
DLocalTime.java1160 public LocalTime plusNanos(long nanosToAdd) { in plusNanos() argument
1161 if (nanosToAdd == 0) { in plusNanos()
1165 long newNofd = ((nanosToAdd % NANOS_PER_DAY) + nofd + NANOS_PER_DAY) % NANOS_PER_DAY; in plusNanos()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java209 public java.time.Duration plusNanos(long nanosToAdd) { in plusNanos() argument
213 private java.time.Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument