Home
last modified time | relevance | path

Searched refs:fromMillis (Results 1 – 25 of 43) 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/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DBasicAttributeProvider.java75 return FileTime.fromMillis(file.getCreationTime()); in get()
77 return FileTime.fromMillis(file.getLastAccessTime()); in get()
79 return FileTime.fromMillis(file.getLastModifiedTime()); in get()
184 this.lastModifiedTime = FileTime.fromMillis(file.getLastModifiedTime()); in Attributes()
185 this.lastAccessTime = FileTime.fromMillis(file.getLastAccessTime()); in Attributes()
186 this.creationTime = FileTime.fromMillis(file.getCreationTime()); in Attributes()
DUnixAttributeProvider.java112 return FileTime.fromMillis(file.getCreationTime()); in get()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DBasicAttributeProviderTest.java86 FileTime time = FileTime.fromMillis(0L); in testSet()
107 FileTime time = FileTime.fromMillis(0L); in testSetOnCreate()
135 view.setTimes(FileTime.fromMillis(0L), null, null); in testView()
140 assertThat(attrs.lastModifiedTime()).isEqualTo(FileTime.fromMillis(0L)); in testView()
DJimfsUnixLikeFileSystemTest.java690 new BasicFileAttribute<>("basic:lastModifiedTime", FileTime.fromMillis(0L))); in testCreateFile_withInitialAttributes_illegalInitialAttribute()
1573 .setTimes(FileTime.fromMillis(100), FileTime.fromMillis(1000), FileTime.fromMillis(10000)); in testCopy_withCopyAttributes()
1575 assertThat(Files.getAttribute(foo, "lastModifiedTime")).isEqualTo(FileTime.fromMillis(100)); in testCopy_withCopyAttributes()
1584 assertThat(attributes.lastModifiedTime()).isEqualTo(FileTime.fromMillis(100)); in testCopy_withCopyAttributes()
1585 assertThat(attributes.lastAccessTime()).isEqualTo(FileTime.fromMillis(1000)); in testCopy_withCopyAttributes()
1586 assertThat(attributes.creationTime()).isEqualTo(FileTime.fromMillis(10000)); in testCopy_withCopyAttributes()
1594 assertThat(attributes.lastModifiedTime()).isNotEqualTo(FileTime.fromMillis(100)); in testCopy_withCopyAttributes()
1595 assertThat(attributes.lastAccessTime()).isNotEqualTo(FileTime.fromMillis(1000)); in testCopy_withCopyAttributes()
1596 assertThat(attributes.creationTime()).isNotEqualTo(FileTime.fromMillis(10000)); in testCopy_withCopyAttributes()
1772 .setTimes(FileTime.fromMillis(0), FileTime.fromMillis(1), FileTime.fromMillis(2)); in testCopy_toDifferentFileSystem_copyAttributes()
[all …]
DDosAttributeProviderTest.java103 view.setTimes(FileTime.fromMillis(0L), null, null); in testView()
104 assertThat(view.readAttributes().lastModifiedTime()).isEqualTo(FileTime.fromMillis(0L)); in testView()
DUnixAttributeProviderTest.java70 assertThat(provider.get(file, "ctime")).isEqualTo(FileTime.fromMillis(file.getCreationTime())); in testInitialAttributes()
/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));
/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()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java130 return Timestamps.fromMillis(milliseconds); in createTimestampFromMillis()
140 return Durations.fromMillis(milliseconds); in createDurationFromMillis()
262 return Timestamps.fromMillis(System.currentTimeMillis()); in getCurrentTime()
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
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);
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);
/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/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/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()

12