Searched refs:ShadowChoreographer (Results 1 – 4 of 4) sorted by relevance
21 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()
23 ShadowChoreographer.setFrameInterval(100 * TimeUtils.NANOS_PER_MS); in start_shouldRunAnimation()50 ShadowChoreographer.setFrameInterval(100 * TimeUtils.NANOS_PER_MS); in test_WhenInfiniteAnimationIsPlayed_AnimationIsOnlyPlayedOnce()
22 public class ShadowChoreographer { class141 nanoTime += ShadowChoreographer.FRAME_INTERVAL;151 return ShadowChoreographer.FRAME_INTERVAL;160 ShadowChoreographer.FRAME_INTERVAL = frameInterval;
457 Choreographer choreographer = ShadowChoreographer.getInstance(); in start()483 elapsedTime += ShadowChoreographer.getFrameInterval() / TimeUtils.NANOS_PER_MS; in run()484 … ShadowChoreographer.getInstance().postCallback(Choreographer.CALLBACK_ANIMATION, this, null); in run()