Home
last modified time | relevance | path

Searched refs:addDuration (Results 1 – 5 of 5) sorted by relevance

/external/opencensus-java/api/src/test/java/io/opencensus/common/
DTimestampTest.java140 assertThat(timestamp.addDuration(Duration.create(1, 0))).isEqualTo(Timestamp.create(1235, 223)); in timestampAddDuration()
141 assertThat(timestamp.addDuration(Duration.create(0, 1))).isEqualTo(Timestamp.create(1234, 224)); in timestampAddDuration()
142 assertThat(timestamp.addDuration(Duration.create(1, 1))).isEqualTo(Timestamp.create(1235, 224)); in timestampAddDuration()
143 assertThat(timestamp.addDuration(Duration.create(1, 999999900))) in timestampAddDuration()
150 assertThat(timestamp.addDuration(Duration.create(-1234, -223))) in timestampAddDuration_Negative()
152 assertThat(timestamp.addDuration(Duration.create(-1, 0))) in timestampAddDuration_Negative()
154 assertThat(timestamp.addDuration(Duration.create(-1, -1))) in timestampAddDuration_Negative()
156 assertThat(timestamp.addDuration(Duration.create(-1, -323))) in timestampAddDuration_Negative()
158 assertThat(timestamp.addDuration(Duration.create(-33, -999999999))) in timestampAddDuration_Negative()
/external/opencensus-java/testing/src/main/java/io/opencensus/testing/common/
DTestClock.java81 currentTime = validateNanos(currentTime.addDuration(duration)); in advanceTime()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableViewData.java315 .addDuration(bucketDuration); in shiftBucketList()
335 startOfNewBucket = startOfNewBucket.addDuration(bucketDuration); in shiftBucketList()
429 return timestamp.addDuration(Duration.create(-duration.getSeconds(), -duration.getNanos())); in subtractDuration()
/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java129 public Timestamp addDuration(Duration duration) { in addDuration() method in Timestamp
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DViewData.java152 .addDuration(Duration.create(-duration.getSeconds(), -duration.getNanos())), in create()