/external/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()
|
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | Timestamp.java | 106 public abstract int getNanos(); in getNanos() method in Timestamp 130 return plus(duration.getSeconds(), duration.getNanos()); in addDuration() 143 int durationNanos = getNanos() - timestamp.getNanos(); in subtractTimestamp() 168 return TimeUtils.compareLongs(getNanos(), otherTimestamp.getNanos()); in compareTo() 179 long nanoAdjustment = getNanos() + nanosToAdd; // safe int + NANOS_PER_SECOND in plus()
|
D | Duration.java | 99 return TimeUnit.SECONDS.toMillis(getSeconds()) + TimeUnit.NANOSECONDS.toMillis(getNanos()); in toMillis() 116 public abstract int getNanos(); in getNanos() method in Duration 132 return TimeUtils.compareLongs(getNanos(), otherDuration.getNanos()); in compareTo()
|
/external/junit/src/main/java/org/junit/rules/ |
D | Stopwatch.java | 99 return unit.convert(getNanos(), TimeUnit.NANOSECONDS); in runtime() 126 private long getNanos() { in getNanos() method in Stopwatch 158 Stopwatch.this.finished(getNanos(), description); in finished() 163 Stopwatch.this.succeeded(getNanos(), description); in succeeded() 168 Stopwatch.this.failed(getNanos(), e, description); in failed() 173 Stopwatch.this.skipped(getNanos(), e, description); in skipped()
|
/external/opencensus-java/testing/src/main/java/io/opencensus/testing/common/ |
D | TestClock.java | 91 return getNanos(currentTime); in nowNanos() 95 getNanos(time); in validateNanos() 100 private static long getNanos(Timestamp time) { in getNanos() method in TestClock 102 LongMath.checkedMultiply(time.getSeconds(), NUM_NANOS_PER_SECOND), time.getNanos()); in getNanos()
|
/external/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()
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | DurationTest.java | 35 assertThat(Duration.create(24, 42).getNanos()).isEqualTo(42); in testDurationCreate() 37 assertThat(Duration.create(-24, -42).getNanos()).isEqualTo(-42); in testDurationCreate() 39 assertThat(Duration.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in testDurationCreate() 41 assertThat(Duration.create(-315576000000L, -999999999).getNanos()).isEqualTo(-999999999); in testDurationCreate()
|
D | TimestampTest.java | 35 assertThat(Timestamp.create(24, 42).getNanos()).isEqualTo(42); in timestampCreate() 37 assertThat(Timestamp.create(-24, 42).getNanos()).isEqualTo(42); in timestampCreate() 39 assertThat(Timestamp.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate() 41 assertThat(Timestamp.create(-315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate()
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TimestampTest.java | 206 assertEquals(NANOS_ARRAY[i], theTimestamp.getNanos()); in testSetTimelong() 350 assertEquals(theReturnNanos[i], theReturn.getNanos()); in testValueOfString1() 431 assertEquals(NANOS_ARRAY[i], theTimestamp.getNanos()); in testGetNanos() 448 assertEquals(NANOS_ARRAY2[i], theTimestamp.getNanos()); in testSetNanosint() 457 int originalNanos = theTimestamp.getNanos(); in testSetNanosint() 465 assertEquals(originalNanos, theTimestamp.getNanos()); in testSetNanosint() 545 theTest.setNanos(theTest.getNanos() + 1); in testBeforeTimestamp() 576 theTimestamp.setNanos(theTimestamp.getNanos() + 1); in testAfterTimestamp()
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtilsTest.java | 172 .setNanos(eventTimestamp1.getNanos()) in toSpanProto() 185 .setNanos(eventTimestamp3.getNanos()) in toSpanProto() 198 .setNanos(eventTimestamp2.getNanos()) in toSpanProto() 210 .setNanos(eventTimestamp1.getNanos()) in toSpanProto() 235 .setNanos(startTimestamp.getNanos()) in toSpanProto() 240 .setNanos(endTimestamp.getNanos()) in toSpanProto()
|
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/ |
D | StackdriverV2ExporterHandlerProtoTest.java | 214 .setNanos(eventTimestamp1.getNanos()) in generateSpan() 228 .setNanos(eventTimestamp3.getNanos()) in generateSpan() 241 .setNanos(eventTimestamp2.getNanos()) in generateSpan() 253 .setNanos(eventTimestamp1.getNanos()) in generateSpan() 278 .setNanos(startTimestamp.getNanos()) in generateSpan() 283 .setNanos(endTimestamp.getNanos()) in generateSpan()
|
/external/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
|
/external/protobuf/php/tests/ |
D | well_known_test.php | 311 $this->assertSame(2, $timestamp->getNanos()); 317 $this->assertEquals(1000 * $from->format('u'), $timestamp->getNanos()); 355 $this->assertSame(2, $duration->getNanos());
|
D | memory_leak_test.php | 157 assert(1000 * $from->format('u') == $timestamp->getNanos());
|
D | encode_decode_test.php | 862 $this->assertEquals(567800000, $m->getNanos()); 878 $this->assertEquals(123456789, $m->getNanos());
|
/external/protobuf/js/ |
D | proto3_test.js | 383 assertEquals(789000000, msg.getNanos()); 388 assertEquals(msg.getNanos(), anotherMsg.getNanos());
|
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
D | InstanaExporterHandler.java | 106 return SECONDS.toMillis(timestamp.getSeconds()) + NANOSECONDS.toMillis(timestamp.getNanos()); in toMillis() 111 return SECONDS.toMillis(duration.getSeconds()) + NANOSECONDS.toMillis(duration.getNanos()); in toMillis()
|
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/ |
D | TracezZPageHandler.java | 309 long microsField = TimeUnit.NANOSECONDS.toMicros(span.getStartTimestamp().getNanos()); in emitSingleSpan() 370 + TimeUnit.NANOSECONDS.toMillis(event.getTimestamp().getNanos())); in emitSingleSpan() 371 microsField = TimeUnit.NANOSECONDS.toMicros(event.getTimestamp().getNanos()); in emitSingleSpan() 572 return TimeUnit.SECONDS.toNanos(duration.getSeconds()) + duration.getNanos(); in durationToNanos()
|
/external/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBUtil.php | 467 $nanoseconds = static::getNanosecondsForTimestamp($value->getNanos()); 514 $nanos = $value->getNanos();
|
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ |
D | ZipkinExporterHandler.java | 170 return SECONDS.toMicros(timestamp.getSeconds()) + NANOSECONDS.toMicros(timestamp.getNanos()); in toEpochMicros()
|
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandler.java | 271 : SECONDS.toMicros(timestamp.getSeconds()) + NANOSECONDS.toMicros(timestamp.getNanos()); in timestampToMicros()
|
/external/opencensus-java/api/src/main/java/io/opencensus/stats/ |
D | ViewData.java | 152 .addDuration(Duration.create(-duration.getSeconds(), -duration.getNanos())), in create()
|