Home
last modified time | relevance | path

Searched refs:ShadowChoreographer (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowChoreographerTest.java21 ShadowChoreographer.setFrameInterval(frameInterval); in setFrameInterval_shouldUpdateFrameInterval()
23 final Choreographer instance = ShadowChoreographer.getInstance(); in setFrameInterval_shouldUpdateFrameInterval()
32 Choreographer instance = ShadowChoreographer.getInstance(); in removeFrameCallback_shouldRemoveCallback()
42 ShadowChoreographer.setFrameInterval(1); in reset_shouldResetFrameInterval()
43 assertThat(ShadowChoreographer.getFrameInterval()).isEqualTo(1); in reset_shouldResetFrameInterval()
45 ShadowChoreographer.reset(); in reset_shouldResetFrameInterval()
46 assertThat(ShadowChoreographer.getFrameInterval()).isEqualTo(10 * TimeUtils.NANOS_PER_MS); in reset_shouldResetFrameInterval()
DShadowValueAnimatorTest.java23 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/
DShadowChoreographer.java22 public class ShadowChoreographer { class
141 nanoTime += ShadowChoreographer.FRAME_INTERVAL;
151 return ShadowChoreographer.FRAME_INTERVAL;
160 ShadowChoreographer.FRAME_INTERVAL = frameInterval;
DShadowView.java457 Choreographer choreographer = ShadowChoreographer.getInstance(); in start()
483 elapsedTime += ShadowChoreographer.getFrameInterval() / TimeUtils.NANOS_PER_MS; in run()
484ShadowChoreographer.getInstance().postCallback(Choreographer.CALLBACK_ANIMATION, this, null); in run()