Home
last modified time | relevance | path

Searched refs:getSeconds (Results 1 – 25 of 28) sorted by relevance

12

/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java98 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/
DTimestamp.java97 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()
DDuration.java99 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/
DTimeUtilTest.java49 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/
DDurationTest.java34 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()
DTimestampTest.java34 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/
DTraceProtoUtilsTest.java171 .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/
DStackdriverV2ExporterHandlerProtoTest.java213 .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/
DTestClock.java102 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/
DInstanaExporterHandler.java106 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/
DTimer.java32 public double getSeconds() { in getSeconds() method in Timer
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java308 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()
DRpczZPageHandler.java456 return duration.getNanos() / NANOS_PER_SECOND + duration.getSeconds(); in toDoubleSeconds()
/external/cldr/tools/java/org/unicode/cldr/icu/
DSupplementalMapper.java133 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/
DDateTest.java177 theDate.getSeconds(); in testGetSeconds()
DTimestampTest.java296 assertEquals(SECONDS_ARRAY[i], theTimestamp.getSeconds()); in testGetSeconds()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtils.java444 if (censusTimestamp.getSeconds() < 0) {
449 .setSeconds(censusTimestamp.getSeconds())
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandler.java170 return SECONDS.toMicros(timestamp.getSeconds()) + NANOSECONDS.toMicros(timestamp.getNanos()); in toEpochMicros()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestPerf.java206 return timer.getSeconds() / iterations; in checkCost()
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DViewData.java152 .addDuration(Duration.create(-duration.getSeconds(), -duration.getNanos())), in create()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java271 : SECONDS.toMicros(timestamp.getSeconds()) + NANOSECONDS.toMicros(timestamp.getNanos()); in timestampToMicros()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableViewData.java429 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/
DTraceProtoUtils.java283 .setSeconds(timestamp.getSeconds()) in toTimestampProto()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DX5455_ExtendedTimestampTest.java155 … final boolean zipTimeUsesExtendedTimestampButUnsigned = year > 2037 && rawZ.getSeconds() == 1; in testSampleFile()
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandler.java423 .setSeconds(timestamp.getSeconds()) in toTimestampProto()

12