Home
last modified time | relevance | path

Searched refs:TimeUtils (Results 1 – 25 of 40) sorted by relevance

12

/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java19 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()
DDuration.java19 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()
DTimeUtils.java22 final class TimeUtils { class
29 private TimeUtils() {} in TimeUtils() method in TimeUtils
/external/opencensus-java/api/src/test/java/io/opencensus/common/
DTimeUtilsTest.java35 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/
DShadowChoreographerTest.java13 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()
DShadowValueAnimatorTest.java14 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/
DTimeUtils.java13 public class TimeUtils { class
14 private TimeUtils() {} in TimeUtils() method in TimeUtils
/external/skia/gm/
Dblurcircles2.cpp37 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()
Dxform.cpp95 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()
Danimated_gif.cpp147 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()
Daddarc.cpp66 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()
Dcrbug_224618.cpp34 fTime = TimeUtils::Scaled(1e-9f * nanos, 0.5f); in onAnimate()
Dimagefilterstransformed.cpp186 fDegrees = TimeUtils::Scaled(1e-9f * nanos, 360.f); in onAnimate()
238 fDegrees = TimeUtils::Scaled(1e-9f * nanos, 360.f); in onAnimate()
Dpostercircle.cpp45 fTime = TimeUtils::Scaled(1e-9 * nanos, 0.5f); in onAnimate()
Ddashcubics.cpp167 fOffset = TimeUtils::NanosToMSec(nanos) / 2000.0f; in onAnimate()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowChoreographer.java13 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/
DTimeUtils.java6 public class TimeUtils { class
/external/skia/samplecode/
DSampleAndroidShadows.cpp321 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()
DSampleCamera.cpp70 fRY = nanos ? TimeUtils::Scaled(1e-9 * nanos, 90, 360) : 0; in onAnimate()
DSampleGlyphTransform.cpp59 double t = TimeUtils::PingPong(1e-9 * nanos, 20, 0, 0, maxt); // d3 t is in milliseconds in onAnimate()
DSampleAnimatedImage.cpp66 fLastWallTime = TimeUtils::NanosToMSec(nanos); in onAnimate()
DSamplePathEffects.cpp135 fPhase = TimeUtils::Scaled(1e-9 * nanos, 40); in onAnimate()
DSampleTextureUpload.cpp145 fActiveTileIndex = floorf(TimeUtils::Scaled(1e-9 * nanos, in onAnimate()
/external/skia/tools/timer/
DTimeUtils.h13 namespace TimeUtils {
/external/lzma/CPP/7zip/UI/Console/
Dmakefile39 $O\TimeUtils.obj \

12