/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
D | ViewDataTest.java | 66 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/ |
D | DurationTest.java | 88 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()
|
D | TimestampTest.java | 88 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/ |
D | NetworkEventTest.java | 47 .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/ |
D | ViewManagerImplTest.java | 420 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 …]
|
D | MutableAggregationTest.java | 170 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()
|
D | StatsRecorderImplTest.java | 77 private static final Timestamp START_TIME = Timestamp.fromMillis(0); 78 private static final Duration ONE_SECOND = Duration.fromMillis(1000);
|
D | MetricUtilsTest.java | 85 private static final Timestamp TIMESTAMP = Timestamp.fromMillis(1000);
|
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/ |
D | RpczZPageHandlerTest.java | 58 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(5000)); 59 private static final IntervalData INTERVAL_DATA = IntervalData.create(Timestamp.fromMillis(8000));
|
D | StatszZPageHandlerTest.java | 96 Timestamp.fromMillis(1000), Timestamp.fromMillis(5000));
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
D | MetricTest.java | 64 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);
|
D | TimeSeriesTest.java | 44 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/ |
D | StackdriverExporterWorkerTest.java | 126 CumulativeData.create(Timestamp.fromMillis(100), Timestamp.fromMillis(200))); in export() 173 CumulativeData.create(Timestamp.fromMillis(100), Timestamp.fromMillis(200))); in doNotExportForEmptyViewData()
|
D | StackdriverExportUtilsTest.java | 481 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/ |
D | StructTimeval.java | 37 public static StructTimeval fromMillis(long millis) { in fromMillis() method in StructTimeval
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/common/ |
D | MillisClock.java | 41 return Timestamp.fromMillis(System.currentTimeMillis()); in now()
|
/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusStatsCollectorTest.java | 81 CumulativeData.create(Timestamp.fromMillis(1000), Timestamp.fromMillis(2000));
|
D | PrometheusExportUtilsTest.java | 119 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/ |
D | JaegerExporterHandlerTest.java | 75 Timestamp.fromMillis(startTime), in exportShouldConvertFromSpanDataToJaegerThriftSpan() 82 Timestamp.fromMillis(endTime)); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
|
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | Duration.java | 86 public static Duration fromMillis(long millis) { in fromMillis() method in Duration
|
D | Timestamp.java | 85 public static Timestamp fromMillis(long epochMilli) { in fromMillis() method in Timestamp
|
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/ |
D | BinlogHelperTest.java | 572 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/ |
D | OcAgentNodeUtils.java | 57 Timestamp censusTimestamp = Timestamp.fromMillis(System.currentTimeMillis()); in getNodeInfo()
|
/external/turbine/javatests/com/google/turbine/zip/ |
D | ZipTest.java | 136 Files.setLastModifiedTime(entry, FileTime.fromMillis(0)); in attributes()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MutableViewData.java | 234 this.bucketDuration = Duration.fromMillis(totalDuration.toMillis() / N); in IntervalMutableViewData()
|