/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | Durations.java | 81 int secDiff = Long.compare(d1.getSeconds(), d2.getSeconds()); 115 return isValid(duration.getSeconds(), duration.getNanos()); in isValid() 146 return (duration.getSeconds() == 0) ? duration.getNanos() < 0 : duration.getSeconds() < 0; in isNegative() 181 long seconds = duration.getSeconds(); in checkValid() 217 long seconds = duration.getSeconds(); in toString() 340 return checkValid(duration).getSeconds() / SECONDS_PER_DAY; in toDays() 349 return checkValid(duration).getSeconds() / SECONDS_PER_HOUR; in toHours() 358 return checkValid(duration).getSeconds() / SECONDS_PER_MINUTE; in toMinutes() 367 return checkValid(duration).getSeconds(); in toSeconds() 385 return duration.getSeconds() + duration.getNanos() / 1e9; in toSecondsAsDouble() [all …]
|
D | Timestamps.java | 109 int secDiff = Long.compare(t1.getSeconds(), t2.getSeconds()); 143 return isValid(timestamp.getSeconds(), timestamp.getNanos()); in isValid() 169 long seconds = timestamp.getSeconds(); in checkValid() 206 long seconds = timestamp.getSeconds(); in toString() 298 return checkValid(timestamp).getSeconds(); in toSeconds() 319 checkedMultiply(timestamp.getSeconds(), MILLIS_PER_SECOND), in toMillis() 341 checkedMultiply(timestamp.getSeconds(), MICROS_PER_SECOND), in toMicros() 357 checkedMultiply(timestamp.getSeconds(), NANOS_PER_SECOND), timestamp.getNanos()); in toNanos() 365 checkedSubtract(to.getSeconds(), from.getSeconds()), in between() 374 checkedAdd(start.getSeconds(), length.getSeconds()), in add() [all …]
|
D | TimeUtil.java | 330 double result = duration.getSeconds() * times + duration.getNanos() * times / 1000000000.0; in multiply() 368 return toBigInteger(duration.getSeconds()) in toBigInteger()
|
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | Timestamp.java | 97 public abstract long getSeconds(); in getSeconds() method in Timestamp 130 return plus(duration.getSeconds(), duration.getNanos()); in addDuration() 142 long durationSeconds = getSeconds() - timestamp.getSeconds(); in subtractTimestamp() 164 int cmp = TimeUtils.compareLongs(getSeconds(), otherTimestamp.getSeconds()); in compareTo() 176 long epochSec = TimeUtils.checkedAdd(getSeconds(), secondsToAdd); in plus()
|
D | Duration.java | 99 return TimeUnit.SECONDS.toMillis(getSeconds()) + TimeUnit.NANOSECONDS.toMillis(getNanos()); in toMillis() 108 public abstract long getSeconds(); in getSeconds() method in Duration 128 int cmp = TimeUtils.compareLongs(getSeconds(), otherDuration.getSeconds()); in compareTo()
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 46 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MIN, start.getSeconds()); in testTimestampStringFormat() 48 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MAX, end.getSeconds()); in testTimestampStringFormat() 54 assertEquals(0, value.getSeconds()); in testTimestampStringFormat() 59 assertEquals(-1, value.getSeconds()); in testTimestampStringFormat() 101 if (result.getSeconds() != values[index].getSeconds() in run() 270 assertEquals(315576000000L, duration.getSeconds()); in testDurationStringFormat() 273 assertEquals(-315576000000L, duration.getSeconds()); in testDurationStringFormat() 483 assertEquals(-2, TimeUtil.divide(d1, 2).getSeconds()); in testTimeOperations() 484 assertEquals(-1, TimeUtil.remainder(d1, d2).getSeconds()); in testTimeOperations() 489 assertEquals(2, TimeUtil.divide(d1, -2).getSeconds()); in testTimeOperations() [all …]
|
/external/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBUtil.php | 461 if (bccomp($value->getSeconds(), "253402300800") != -1) { 464 if (bccomp($value->getSeconds(), "-62135596801") != 1) { 471 $date = new \DateTime('@'.$value->getSeconds(), new \DateTimeZone("UTC")); 507 if (bccomp($value->getSeconds(), '315576000001') != -1) { 510 if (bccomp($value->getSeconds(), '-315576000001') != 1) { 516 return (string) $value->getSeconds(); 528 return bcadd($value->getSeconds(), $nanos, $digits);
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | DurationTest.java | 34 assertThat(Duration.create(24, 42).getSeconds()).isEqualTo(24); in testDurationCreate() 36 assertThat(Duration.create(-24, -42).getSeconds()).isEqualTo(-24); in testDurationCreate() 38 assertThat(Duration.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in testDurationCreate() 40 assertThat(Duration.create(-315576000000L, -999999999).getSeconds()).isEqualTo(-315576000000L); in testDurationCreate()
|
D | TimestampTest.java | 34 assertThat(Timestamp.create(24, 42).getSeconds()).isEqualTo(24); in timestampCreate() 36 assertThat(Timestamp.create(-24, 42).getSeconds()).isEqualTo(-24); in timestampCreate() 38 assertThat(Timestamp.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in timestampCreate() 40 assertThat(Timestamp.create(-315576000000L, 999999999).getSeconds()).isEqualTo(-315576000000L); in timestampCreate()
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtilsTest.java | 171 .setSeconds(eventTimestamp1.getSeconds()) in toSpanProto() 184 .setSeconds(eventTimestamp3.getSeconds()) in toSpanProto() 197 .setSeconds(eventTimestamp2.getSeconds()) in toSpanProto() 209 .setSeconds(eventTimestamp1.getSeconds()) in toSpanProto() 234 .setSeconds(startTimestamp.getSeconds()) in toSpanProto() 239 .setSeconds(endTimestamp.getSeconds()) in toSpanProto()
|
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/ |
D | StackdriverV2ExporterHandlerProtoTest.java | 213 .setSeconds(eventTimestamp1.getSeconds()) in generateSpan() 227 .setSeconds(eventTimestamp3.getSeconds()) in generateSpan() 240 .setSeconds(eventTimestamp2.getSeconds()) in generateSpan() 252 .setSeconds(eventTimestamp1.getSeconds()) in generateSpan() 277 .setSeconds(startTimestamp.getSeconds()) in generateSpan() 282 .setSeconds(endTimestamp.getSeconds()) in generateSpan()
|
/external/protobuf/php/tests/ |
D | memory_leak_test.php | 149 assert(1, $from->getSeconds()); 156 assert($from->format('U') == $timestamp->getSeconds());
|
D | well_known_test.php | 310 $this->assertEquals(1, $timestamp->getSeconds()); 316 $this->assertEquals($from->format('U'), $timestamp->getSeconds()); 354 $this->assertEquals(1, $duration->getSeconds());
|
/external/protobuf/php/src/Google/Protobuf/ |
D | Duration.php | 114 public function getSeconds() function in Google\\Protobuf\\Duration
|
D | Timestamp.php | 124 public function getSeconds() function in Google\\Protobuf\\Timestamp
|
/external/opencensus-java/testing/src/main/java/io/opencensus/testing/common/ |
D | TestClock.java | 102 LongMath.checkedMultiply(time.getSeconds(), NUM_NANOS_PER_SECOND), time.getNanos()); in getNanos()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Timer.java | 32 public double getSeconds() { in getSeconds() method in Timer
|
/external/protobuf/js/ |
D | proto3_test.js | 382 assertEquals(123456, msg.getSeconds()); 387 assertEquals(msg.getSeconds(), anotherMsg.getSeconds());
|
/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 | 308 calendar.setTimeInMillis(TimeUnit.SECONDS.toMillis(span.getStartTimestamp().getSeconds())); in emitSingleSpan() 369 TimeUnit.SECONDS.toMillis(event.getTimestamp().getSeconds()) in emitSingleSpan() 572 return TimeUnit.SECONDS.toNanos(duration.getSeconds()) + duration.getNanos(); in durationToNanos()
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | DateTest.java | 177 theDate.getSeconds(); in testGetSeconds()
|
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExportUtils.java | 444 if (censusTimestamp.getSeconds() < 0) { 449 .setSeconds(censusTimestamp.getSeconds())
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestPerf.java | 195 return timer.getSeconds() / iterations; in checkCost()
|
/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/icu/android_icu4j/testing/src/com/android/icu/test/util/ |
D | ExtendedTimeZoneParameterizedTest.java | 252 zoneRulesDstOffset.getSeconds() * 1000); in assertSameOffset()
|