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.java900 public Instant plusNanos(long nanosToAdd) { in plusNanos() argument
901 return plus(0, nanosToAdd); in plusNanos()
915 private Instant plus(long secondsToAdd, long nanosToAdd) { in plus() argument
916 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
920 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
921 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()
922 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
DDuration.java793 public Duration plusNanos(long nanosToAdd) { in plusNanos() argument
794 return plus(0, nanosToAdd); in plusNanos()
807 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument
808 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
812 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
813 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()
814 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