/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 98 if (timestamp.getSeconds() < TIMESTAMP_SECONDS_MIN in toString() 99 || timestamp.getSeconds() > TIMESTAMP_SECONDS_MAX) { in toString() 102 Date date = new Date(timestamp.getSeconds() * MILLIS_PER_SECOND); in toString() 194 if (duration.getSeconds() < DURATION_SECONDS_MIN in toString() 195 || duration.getSeconds() > DURATION_SECONDS_MAX) { in toString() 199 long seconds = duration.getSeconds(); in toString() 283 return timestamp.getSeconds() * MILLIS_PER_SECOND + timestamp.getNanos() in toMillis() 293 return duration.getSeconds() * MILLIS_PER_SECOND + duration.getNanos() in toMillis() 321 return timestamp.getSeconds() * MICROS_PER_SECOND + timestamp.getNanos() in toMicros() 331 return duration.getSeconds() * MICROS_PER_SECOND + duration.getNanos() in toMicros() [all …]
|
/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 | 49 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MIN, start.getSeconds()); in testTimestampStringFormat() 51 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MAX, end.getSeconds()); in testTimestampStringFormat() 57 assertEquals(0, value.getSeconds()); in testTimestampStringFormat() 62 assertEquals(-1, value.getSeconds()); in testTimestampStringFormat() 103 if (result.getSeconds() != values[index].getSeconds() in run() 272 assertEquals(315576000000L, duration.getSeconds()); in testDurationStringFormat() 275 assertEquals(-315576000000L, duration.getSeconds()); in testDurationStringFormat() 491 assertEquals(-2, TimeUtil.divide(d1, 2).getSeconds()); in testTimeOperations() 492 assertEquals(-1, TimeUtil.remainder(d1, d2).getSeconds()); in testTimeOperations() 497 assertEquals(2, TimeUtil.divide(d1, -2).getSeconds()); in testTimeOperations() [all …]
|
/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/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/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/cldr/tools/java/org/unicode/cldr/util/ |
D | Timer.java | 32 public double getSeconds() { in getSeconds() method in Timer
|
/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()
|
D | RpczZPageHandler.java | 456 return duration.getNanos() / NANOS_PER_SECOND + duration.getSeconds(); in toDoubleSeconds()
|
/external/cldr/tools/java/org/unicode/cldr/icu/ |
D | SupplementalMapper.java | 133 return getSeconds(args[0], dft); in create() 393 private static String getSeconds(String dateStr, DateFieldType type) { in getSeconds() method in SupplementalMapper
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | DateTest.java | 177 theDate.getSeconds(); in testGetSeconds()
|
D | TimestampTest.java | 296 assertEquals(SECONDS_ARRAY[i], theTimestamp.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/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/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestPerf.java | 206 return timer.getSeconds() / iterations; in checkCost()
|
/external/opencensus-java/api/src/main/java/io/opencensus/stats/ |
D | ViewData.java | 152 .addDuration(Duration.create(-duration.getSeconds(), -duration.getNanos())), in create()
|
/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/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MutableViewData.java | 429 return timestamp.addDuration(Duration.create(-duration.getSeconds(), -duration.getNanos())); in subtractDuration()
|
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtils.java | 283 .setSeconds(timestamp.getSeconds()) in toTimestampProto()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | X5455_ExtendedTimestampTest.java | 155 … final boolean zipTimeUsesExtendedTimestampButUnsigned = year > 2037 && rawZ.getSeconds() == 1; in testSampleFile()
|
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/ |
D | StackdriverV2ExporterHandler.java | 423 .setSeconds(timestamp.getSeconds()) in toTimestampProto()
|