Home
last modified time | relevance | path

Searched refs:fromMillis (Results 1 – 25 of 30) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DViewDataTest.java66 Timestamp start = Timestamp.fromMillis(1000); in testCumulativeViewData()
67 Timestamp end = Timestamp.fromMillis(2000); in testCumulativeViewData()
79 Timestamp end = Timestamp.fromMillis(2000); in testIntervalViewData()
99 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000))), in testViewDataEquals()
103 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000)))) in testViewDataEquals()
108 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(3000)))) in testViewDataEquals()
110 ViewData.create(intervalView, ENTRIES, IntervalData.create(Timestamp.fromMillis(2000))), in testViewDataEquals()
111 ViewData.create(intervalView, ENTRIES, IntervalData.create(Timestamp.fromMillis(2000)))) in testViewDataEquals()
116 IntervalData.create(Timestamp.fromMillis(2000)))) in testViewDataEquals()
122 final Timestamp start = Timestamp.fromMillis(1000); in testAggregationWindowDataMatch()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/common/
DDurationTest.java88 assertThat(Duration.fromMillis(0)).isEqualTo(Duration.create(0, 0)); in testDurationFromMillis()
89 assertThat(Duration.fromMillis(987)).isEqualTo(Duration.create(0, 987000000)); in testDurationFromMillis()
90 assertThat(Duration.fromMillis(3456)).isEqualTo(Duration.create(3, 456000000)); in testDurationFromMillis()
95 assertThat(Duration.fromMillis(-1)).isEqualTo(Duration.create(0, -1000000)); in testDurationFromMillisNegative()
96 assertThat(Duration.fromMillis(-999)).isEqualTo(Duration.create(0, -999000000)); in testDurationFromMillisNegative()
97 assertThat(Duration.fromMillis(-1000)).isEqualTo(Duration.create(-1, 0)); in testDurationFromMillisNegative()
98 assertThat(Duration.fromMillis(-3456)).isEqualTo(Duration.create(-3, -456000000)); in testDurationFromMillisNegative()
105 Duration.fromMillis(-315576000001000L); in fromMillis_TooLow()
112 Duration.fromMillis(315576000001000L); in fromMillis_TooHigh()
DTimestampTest.java88 assertThat(Timestamp.fromMillis(0)).isEqualTo(Timestamp.create(0, 0)); in timestampFromMillis()
89 assertThat(Timestamp.fromMillis(987)).isEqualTo(Timestamp.create(0, 987000000)); in timestampFromMillis()
90 assertThat(Timestamp.fromMillis(3456)).isEqualTo(Timestamp.create(3, 456000000)); in timestampFromMillis()
95 assertThat(Timestamp.fromMillis(-1)).isEqualTo(Timestamp.create(-1, 999000000)); in timestampFromMillis_Negative()
96 assertThat(Timestamp.fromMillis(-999)).isEqualTo(Timestamp.create(-1, 1000000)); in timestampFromMillis_Negative()
97 assertThat(Timestamp.fromMillis(-3456)).isEqualTo(Timestamp.create(-4, 544000000)); in timestampFromMillis_Negative()
104 Timestamp.fromMillis(-315576000001000L); in fromMillis_TooLow()
111 Timestamp.fromMillis(315576000001000L); in fromMillis_TooHigh()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DNetworkEventTest.java47 .setKernelTimestamp(Timestamp.fromMillis(123456L)) in buildNetworkEvent_WithTimestamp()
49 assertThat(networkEvent.getKernelTimestamp()).isEqualTo(Timestamp.fromMillis(123456L)); in buildNetworkEvent_WithTimestamp()
91 .setKernelTimestamp(Timestamp.fromMillis(123456L)) in buildNetworkEvent_WithAllValues()
95 assertThat(networkEvent.getKernelTimestamp()).isEqualTo(Timestamp.fromMillis(123456L)); in buildNetworkEvent_WithAllValues()
108 .setKernelTimestamp(Timestamp.fromMillis(123456L)) in networkEvent_ToString()
112 assertThat(networkEvent.toString()).contains(Timestamp.fromMillis(123456L).toString()); in networkEvent_ToString()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DViewManagerImplTest.java420 clock.setTime(Timestamp.fromMillis(startTimeMillis)); in testRecordInterval()
432 clock.setTime(Timestamp.fromMillis(startTimeMillis + i * MILLIS_PER_SECOND)); in testRecordInterval()
436 clock.setTime(Timestamp.fromMillis(startTimeMillis + 8 * MILLIS_PER_SECOND)); in testRecordInterval()
445 clock.setTime(Timestamp.fromMillis(startTimeMillis + 11 * MILLIS_PER_SECOND)); in testRecordInterval()
452 clock.setTime(Timestamp.fromMillis(startTimeMillis + 12 * MILLIS_PER_SECOND)); in testRecordInterval()
456 clock.setTime(Timestamp.fromMillis(startTimeMillis + 17 * MILLIS_PER_SECOND)); in testRecordInterval()
464 clock.setTime(Timestamp.fromMillis(60 * MILLIS_PER_SECOND)); in testRecordInterval()
472 clock.setTime(Timestamp.fromMillis(100 * MILLIS_PER_SECOND)); in testRecordInterval()
553 clock.setTime(Timestamp.fromMillis(11 * MILLIS_PER_SECOND)); in testRecordIntervalMultipleTagValues()
560 clock.setTime(Timestamp.fromMillis(15 * MILLIS_PER_SECOND)); in testRecordIntervalMultipleTagValues()
[all …]
DMutableAggregationTest.java170 Timestamp.fromMillis(500), in testAdd_DistributionWithExemplarAttachments()
171 Timestamp.fromMillis(1000), in testAdd_DistributionWithExemplarAttachments()
172 Timestamp.fromMillis(2000), in testAdd_DistributionWithExemplarAttachments()
173 Timestamp.fromMillis(3000), in testAdd_DistributionWithExemplarAttachments()
174 Timestamp.fromMillis(4000)); in testAdd_DistributionWithExemplarAttachments()
DStatsRecorderImplTest.java77 private static final Timestamp START_TIME = Timestamp.fromMillis(0);
78 private static final Duration ONE_SECOND = Duration.fromMillis(1000);
DMetricUtilsTest.java85 private static final Timestamp TIMESTAMP = Timestamp.fromMillis(1000);
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/
DRpczZPageHandlerTest.java58 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(5000));
59 private static final IntervalData INTERVAL_DATA = IntervalData.create(Timestamp.fromMillis(8000));
DStatszZPageHandlerTest.java96 Timestamp.fromMillis(1000), Timestamp.fromMillis(5000));
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
DMetricTest.java64 private static final Timestamp TIMESTAMP_1 = Timestamp.fromMillis(1000);
65 private static final Timestamp TIMESTAMP_2 = Timestamp.fromMillis(2000);
66 private static final Timestamp TIMESTAMP_3 = Timestamp.fromMillis(3000);
DTimeSeriesTest.java44 private static final Timestamp TIMESTAMP_1 = Timestamp.fromMillis(1000);
45 private static final Timestamp TIMESTAMP_2 = Timestamp.fromMillis(2000);
46 private static final Timestamp TIMESTAMP_3 = Timestamp.fromMillis(3000);
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExporterWorkerTest.java126 CumulativeData.create(Timestamp.fromMillis(100), Timestamp.fromMillis(200))); in export()
173 CumulativeData.create(Timestamp.fromMillis(100), Timestamp.fromMillis(200))); in doNotExportForEmptyViewData()
DStackdriverExportUtilsTest.java481 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000)); in createTimeSeriesList_cumulative()
529 ViewData.create(view, aggregationMap, IntervalData.create(Timestamp.fromMillis(2000))); in createTimeSeriesList_interval()
552 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000)); in createTimeSeriesList_withCustomMonitoredResource()
/external/conscrypt/libcore-stub/src/main/java/android/system/
DStructTimeval.java37 public static StructTimeval fromMillis(long millis) { in fromMillis() method in StructTimeval
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/common/
DMillisClock.java41 return Timestamp.fromMillis(System.currentTimeMillis()); in now()
/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/
DPrometheusStatsCollectorTest.java81 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000));
DPrometheusExportUtilsTest.java119 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000));
120 private static final IntervalData INTERVAL_DATA = IntervalData.create(Timestamp.fromMillis(1000));
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerTest.java75 Timestamp.fromMillis(startTime), in exportShouldConvertFromSpanDataToJaegerThriftSpan()
82 Timestamp.fromMillis(endTime)); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
/external/opencensus-java/api/src/main/java/io/opencensus/common/
DDuration.java86 public static Duration fromMillis(long millis) { in fromMillis() method in Duration
DTimestamp.java85 public static Timestamp fromMillis(long epochMilli) { in fromMillis() method in Timestamp
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/
DBinlogHelperTest.java572 Durations.fromMillis(1234), in logSendInitialMetadata_client()
580 .setTimeout(Durations.fromMillis(1234)) in logSendInitialMetadata_client()
611 Durations.fromMillis(1234), in logRecvInitialMetadata_server()
620 .setTimeout(Durations.fromMillis(1234)) in logRecvInitialMetadata_server()
1147 eq(Durations.fromMillis(1234)), in serverInterceptor()
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/
DOcAgentNodeUtils.java57 Timestamp censusTimestamp = Timestamp.fromMillis(System.currentTimeMillis()); in getNodeInfo()
/external/turbine/javatests/com/google/turbine/zip/
DZipTest.java136 Files.setLastModifiedTime(entry, FileTime.fromMillis(0)); in attributes()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableViewData.java234 this.bucketDuration = Duration.fromMillis(totalDuration.toMillis() / N); in IntervalMutableViewData()

12