/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/libchrome/base/android/java/src/org/chromium/base/ |
D | TimeUtils.java | 13 public class TimeUtils { class 14 private TimeUtils() {} in TimeUtils() method in TimeUtils
|
/external/skia/gm/ |
D | blurcircles2.cpp | 37 fAnimRadius = TimeUtils::PingPong( in BlurCircles2GM() 39 fAnimBlurRadius = TimeUtils::PingPong(0, in BlurCircles2GM() 144 …fAnimRadius = TimeUtils::PingPong(1e-9 * nanos, kRadiusPingPoingPeriod, kRadiusPingPoingShift, kMi… in onAnimate() 146 …fAnimBlurRadius = TimeUtils::PingPong(1e-9 * nanos, kBlurRadiusPingPoingPeriod, kBlurRadiusPingPoi… in onAnimate()
|
D | xform.cpp | 95 float scale = 3 + sinf(TimeUtils::Scaled(1e-9 * nanos, 1, 0)) * 2; in onAnimate() 97 fRA->setRotate(TimeUtils::Scaled(1e-9 * nanos, 40, 0)); in onAnimate() 98 fB->setRotate(TimeUtils::Scaled(1e-9 * nanos, 40*sqrtf(2), 0)); in onAnimate()
|
D | animated_gif.cpp | 147 double secs = TimeUtils::NanosToMSec(nanos) * .1; in onAnimate() 223 fBaseMSec = TimeUtils::NanosToMSec(nanos); in onAnimate() 226 (void)p->seek(TimeUtils::NanosToMSec(nanos) - fBaseMSec); in onAnimate()
|
D | addarc.cpp | 66 fRotate = TimeUtils::Scaled(1e-9 * nanos, 1, 360); in onAnimate() 150 fRotate = TimeUtils::Scaled(1e-9 * nanos, 60, 360); in onAnimate() 203 fRotate = TimeUtils::Scaled(1e-9 * nanos, 60, 360); in onAnimate()
|
D | crbug_224618.cpp | 34 fTime = TimeUtils::Scaled(1e-9f * nanos, 0.5f); in onAnimate()
|
D | imagefilterstransformed.cpp | 186 fDegrees = TimeUtils::Scaled(1e-9f * nanos, 360.f); in onAnimate() 238 fDegrees = TimeUtils::Scaled(1e-9f * nanos, 360.f); in onAnimate()
|
D | postercircle.cpp | 45 fTime = TimeUtils::Scaled(1e-9 * nanos, 0.5f); in onAnimate()
|
D | dashcubics.cpp | 167 fOffset = TimeUtils::NanosToMSec(nanos) / 2000.0f; in onAnimate()
|
/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
|
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
D | TimeUtils.java | 6 public class TimeUtils { class
|
/external/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 321 fAnimTranslate = TimeUtils::PingPong(1e-9 * nanos, 30, 0, 125, -125); in onAnimate() 322 fAnimAngle = TimeUtils::PingPong(1e-9 * nanos, 15, 0, 0, 20); in onAnimate() 324 fAnimAlpha = TimeUtils::PingPong(1e-9 * nanos, 5, 0, 1, 0); in onAnimate()
|
D | SampleCamera.cpp | 70 fRY = nanos ? TimeUtils::Scaled(1e-9 * nanos, 90, 360) : 0; in onAnimate()
|
D | SampleGlyphTransform.cpp | 59 double t = TimeUtils::PingPong(1e-9 * nanos, 20, 0, 0, maxt); // d3 t is in milliseconds in onAnimate()
|
D | SampleAnimatedImage.cpp | 66 fLastWallTime = TimeUtils::NanosToMSec(nanos); in onAnimate()
|
D | SamplePathEffects.cpp | 135 fPhase = TimeUtils::Scaled(1e-9 * nanos, 40); in onAnimate()
|
D | SampleTextureUpload.cpp | 145 fActiveTileIndex = floorf(TimeUtils::Scaled(1e-9 * nanos, in onAnimate()
|
/external/skia/tools/timer/ |
D | TimeUtils.h | 13 namespace TimeUtils {
|
/external/lzma/CPP/7zip/UI/Console/ |
D | makefile | 39 $O\TimeUtils.obj \
|