Home | History | Annotate | Download | only in shadows

Lines Matching refs:Choreographer

6 import android.view.Choreographer;
7 import android.view.Choreographer.FrameCallback;
16 * Robolectric maintains its own concept of the current time from the Choreographer's
19 * {@link Choreographer#getFrameTimeNanos()} is called.
21 @Implements(Choreographer.class)
26 private static SoftThreadLocal<Choreographer> instance = makeThreadLocal();
31 private static SoftThreadLocal<Choreographer> makeThreadLocal() {
32 return new SoftThreadLocal<Choreographer>() {
34 protected Choreographer create() {
40 // Choreographer's constructor changes somewhere in Android O...
42 Choreographer.class.getDeclaredConstructor(Looper.class);
43 return Shadow.newInstance(Choreographer.class, new Class[]{Looper.class}, new Object[]{looper});
45 return Shadow.newInstance(Choreographer.class, new Class[]{Looper.class, int.class}, new Object[]{looper, 0});
73 public static Choreographer getInstance() {