Searched refs:nanoAdjustment (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 238 public static Duration ofSeconds(long seconds, long nanoAdjustment) { in ofSeconds() argument 239 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofSeconds() 240 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds() 492 private static Duration create(long seconds, int nanoAdjustment) { in create() argument 493 if ((seconds | nanoAdjustment) == 0) { in create() 496 return new Duration(seconds, nanoAdjustment); in create() 812 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus() local 813 return ofSeconds(epochSec, nanoAdjustment); in plus()
|
D | Instant.java | 321 public static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) { in ofEpochSecond() argument 322 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond() 323 int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond() 922 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus() local 923 return ofEpochSecond(epochSec, nanoAdjustment); in plus()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 93 public static java.time.Duration ofSeconds(long seconds, long nanoAdjustment) { in ofSeconds() argument 145 private static java.time.Duration create(long seconds, int nanoAdjustment) { in create() argument
|