Searched refs:TimeUtils (Results 1 – 12 of 12) sorted by relevance
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | Timestamp.java | 19 import static io.opencensus.common.TimeUtils.MAX_NANOS; 20 import static io.opencensus.common.TimeUtils.MAX_SECONDS; 21 import static io.opencensus.common.TimeUtils.MILLIS_PER_SECOND; 22 import static io.opencensus.common.TimeUtils.NANOS_PER_MILLI; 23 import static io.opencensus.common.TimeUtils.NANOS_PER_SECOND; 164 int cmp = TimeUtils.compareLongs(getSeconds(), otherTimestamp.getSeconds()); in compareTo() 168 return TimeUtils.compareLongs(getNanos(), otherTimestamp.getNanos()); in compareTo() 176 long epochSec = TimeUtils.checkedAdd(getSeconds(), secondsToAdd); in plus() 177 epochSec = TimeUtils.checkedAdd(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus() 186 long secs = TimeUtils.checkedAdd(epochSecond, floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()
|
D | Duration.java | 19 import static io.opencensus.common.TimeUtils.MAX_NANOS; 20 import static io.opencensus.common.TimeUtils.MAX_SECONDS; 21 import static io.opencensus.common.TimeUtils.MILLIS_PER_SECOND; 22 import static io.opencensus.common.TimeUtils.NANOS_PER_MILLI; 128 int cmp = TimeUtils.compareLongs(getSeconds(), otherDuration.getSeconds()); in compareTo() 132 return TimeUtils.compareLongs(getNanos(), otherDuration.getNanos()); in compareTo()
|
D | TimeUtils.java | 22 final class TimeUtils { class 29 private TimeUtils() {} in TimeUtils() method in TimeUtils
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | TimeUtilsTest.java | 35 assertThat(TimeUtils.compareLongs(-1L, 1L)).isLessThan(0); in compareLongs() 36 assertThat(TimeUtils.compareLongs(10L, 10L)).isEqualTo(0); in compareLongs() 37 assertThat(TimeUtils.compareLongs(1L, 0L)).isGreaterThan(0); in compareLongs() 44 TimeUtils.checkedAdd(Long.MIN_VALUE + 1, -2); in checkedAdd_TooLow() 51 TimeUtils.checkedAdd(Long.MAX_VALUE - 1, 2); in checkedAdd_TooHigh() 56 assertThat(TimeUtils.checkedAdd(1, 2)).isEqualTo(3); in checkedAdd_Valid() 57 assertThat(TimeUtils.checkedAdd(Integer.MAX_VALUE, Integer.MAX_VALUE)) in checkedAdd_Valid()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowChoreographerTest.java | 13 import org.robolectric.util.TimeUtils; 20 final long frameInterval = 10 * TimeUtils.NANOS_PER_MS; in setFrameInterval_shouldUpdateFrameInterval() 46 assertThat(ShadowChoreographer.getFrameInterval()).isEqualTo(10 * TimeUtils.NANOS_PER_MS); in reset_shouldResetFrameInterval()
|
D | ShadowValueAnimatorTest.java | 14 import org.robolectric.util.TimeUtils; 23 ShadowChoreographer.setFrameInterval(100 * TimeUtils.NANOS_PER_MS); in start_shouldRunAnimation() 50 ShadowChoreographer.setFrameInterval(100 * TimeUtils.NANOS_PER_MS); in test_WhenInfiniteAnimationIsPlayed_AnimationIsOnlyPlayedOnce()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowChoreographer.java | 13 import org.robolectric.util.TimeUtils; 24 private static long FRAME_INTERVAL = 10 * TimeUtils.NANOS_PER_MS; // 10ms 171 FRAME_INTERVAL = 10 * TimeUtils.NANOS_PER_MS; // 10ms
|
D | ShadowView.java | 40 import org.robolectric.util.TimeUtils; 483 elapsedTime += ShadowChoreographer.getFrameInterval() / TimeUtils.NANOS_PER_MS; in run()
|
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
D | TimeUtils.java | 6 public class TimeUtils { class
|
/external/lzma/CPP/7zip/UI/Console/ |
D | makefile | 39 $O\TimeUtils.obj \
|
/external/lzma/CPP/7zip/Bundles/Alone7z/ |
D | makefile | 42 $O\TimeUtils.obj \
|
D | Alone.dsp | 541 SOURCE=..\..\..\Windows\TimeUtils.cpp 545 SOURCE=..\..\..\Windows\TimeUtils.h
|