Searched refs:getNanos (Results 1 – 12 of 12) sorted by relevance
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | Durations.java | 82 return (secDiff != 0) ? secDiff : Integer.compare(d1.getNanos(), d2.getNanos()); 115 return isValid(duration.getSeconds(), duration.getNanos()); in isValid() 146 return (duration.getSeconds() == 0) ? duration.getNanos() < 0 : duration.getSeconds() < 0; in isNegative() 182 int nanos = duration.getNanos(); in checkValid() 218 int nanos = duration.getNanos(); in toString() 385 return duration.getSeconds() + duration.getNanos() / 1e9; in toSecondsAsDouble() 397 duration.getNanos() / NANOS_PER_MILLISECOND); in toMillis() 409 duration.getNanos() / NANOS_PER_MICROSECOND); in toMicros() 417 checkedMultiply(duration.getSeconds(), NANOS_PER_SECOND), duration.getNanos()); in toNanos() 427 checkedAdd(d1.getSeconds(), d2.getSeconds()), checkedAdd(d1.getNanos(), d2.getNanos())); in add() [all …]
|
D | Timestamps.java | 110 return (secDiff != 0) ? secDiff : Integer.compare(t1.getNanos(), t2.getNanos()); 143 return isValid(timestamp.getSeconds(), timestamp.getNanos()); in isValid() 170 int nanos = timestamp.getNanos(); in checkValid() 207 int nanos = timestamp.getNanos(); in toString() 320 timestamp.getNanos() / NANOS_PER_MILLISECOND); in toMillis() 342 timestamp.getNanos() / NANOS_PER_MICROSECOND); in toMicros() 357 checkedMultiply(timestamp.getSeconds(), NANOS_PER_SECOND), timestamp.getNanos()); in toNanos() 366 checkedSubtract(to.getNanos(), from.getNanos())); in between() 375 checkedAdd(start.getNanos(), length.getNanos())); in add() 384 checkedSubtract(start.getNanos(), length.getNanos())); in subtract()
|
D | TimeUtil.java | 330 double result = duration.getSeconds() * times + duration.getNanos() * times / 1000000000.0; in multiply() 370 .add(toBigInteger(duration.getNanos())); in toBigInteger()
|
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 47 assertEquals(0, start.getNanos()); in testTimestampStringFormat() 49 assertEquals(999999999, end.getNanos()); in testTimestampStringFormat() 55 assertEquals(0, value.getNanos()); in testTimestampStringFormat() 61 assertEquals(999000000, value.getNanos()); in testTimestampStringFormat() 102 || result.getNanos() != values[index].getNanos()) { in run() 261 assertEquals(100000000, duration.getNanos()); in testDurationStringFormat() 263 assertEquals(100000, duration.getNanos()); in testDurationStringFormat() 265 assertEquals(100, duration.getNanos()); in testDurationStringFormat() 271 assertEquals(999999999, duration.getNanos()); in testDurationStringFormat() 274 assertEquals(-999999999, duration.getNanos()); in testDurationStringFormat()
|
/third_party/protobuf/php/tests/ |
D | WellKnownTest.php | 312 $this->assertSame(2, $timestamp->getNanos()); 318 $this->assertEquals(1000 * $from->format('u'), $timestamp->getNanos()); 356 $this->assertSame(2, $duration->getNanos());
|
D | memory_leak_test.php | 164 assert(1000 * $from->format('u') == $timestamp->getNanos());
|
D | EncodeDecodeTest.php | 945 $this->assertEquals(567800000, $m->getNanos()); 961 $this->assertEquals(123456789, $m->getNanos());
|
/third_party/protobuf/php/src/Google/Protobuf/ |
D | Duration.php | 147 public function getNanos() function in Google\\Protobuf\\Duration
|
D | Timestamp.php | 155 public function getNanos() function in Google\\Protobuf\\Timestamp
|
/third_party/protobuf/js/ |
D | proto3_test.js | 447 assertEquals(789000000, msg.getNanos()); 452 assertEquals(msg.getNanos(), anotherMsg.getNanos());
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBUtil.php | 467 $nanoseconds = static::getNanosecondsForTimestamp($value->getNanos()); 514 $nanos = $value->getNanos();
|
D | Message.php | 842 $submsg->setNanos($timestamp->getNanos());
|