HomeSort by relevance Sort by last modified time
    Searched refs:Choreographer (Results 1 - 25 of 67) sorted by null

1 2 3

  /frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
ChoreographerCompat.java 18 import static android.view.Choreographer.CALLBACK_INPUT;
20 import android.view.Choreographer;
23 * Wraps the internal choreographer.
28 * Posts an input callback to the choreographer.
30 public static void postInputFrame(Choreographer choreographer, Runnable runnable) {
31 choreographer.postCallback(CALLBACK_INPUT, runnable, null);
34 public static Choreographer getSfInstance() {
35 return Choreographer.getSfInstance();
InputConsumerController.java 28 import android.view.Choreographer;
66 super(inputChannel, looper, Choreographer.getSfInstance());
  /frameworks/base/core/java/com/android/internal/graphics/
SfVsyncFrameCallbackProvider.java 20 import android.view.Choreographer;
23 * Provider of timing pulse that uses SurfaceFlinger Vsync Choreographer for frame callbacks.
29 private final Choreographer mChoreographer;
32 mChoreographer = Choreographer.getSfInstance();
35 public SfVsyncFrameCallbackProvider(Choreographer choreographer) {
36 mChoreographer = choreographer;
40 public void postFrameCallback(Choreographer.FrameCallback callback) {
46 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null);
56 return Choreographer.getFrameDelay()
    [all...]
  /frameworks/layoutlib/bridge/src/android/view/
Choreographer_Delegate.java 27 * Delegate used to provide new implementation of a select few methods of {@link Choreographer}
29 * Through the layoutlib_create tool, the original methods of Choreographer have been
34 private static final AtomicReference<Choreographer> mInstance = new AtomicReference<Choreographer>();
37 public static Choreographer getInstance() {
39 mInstance.compareAndSet(null, Choreographer.getInstance_Original());
51 static void scheduleVsyncLocked(Choreographer thisChoreographer) {
56 Choreographer thisChoreographer = Choreographer.getInstance();
63 thisChoreographer.doCallbacks(Choreographer.CALLBACK_INPUT, frameTimeNanos)
    [all...]
  /frameworks/base/native/android/
choreographer.cpp 17 #define LOG_TAG "Choreographer"
24 #include <android/choreographer.h>
50 class Choreographer : public DisplayEventDispatcher, public MessageHandler {
61 static Choreographer* getForThread();
64 virtual ~Choreographer() = default;
67 explicit Choreographer(const sp<Looper>& looper);
68 Choreographer(const Choreographer&) = delete;
85 static thread_local Choreographer* gChoreographer;
86 Choreographer* Choreographer::getForThread()
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ChoreographerTest.java 32 import android.view.Choreographer;
47 private Choreographer mChoreographer;
52 mChoreographer = Choreographer.getInstance();
57 assertTrue(Choreographer.getFrameDelay() > 0);
59 long oldFrameDelay = Choreographer.getFrameDelay();
61 Choreographer.setFrameDelay(newFrameDelay);
62 assertEquals(newFrameDelay, Choreographer.getFrameDelay());
64 Choreographer.setFrameDelay(oldFrameDelay);
75 Choreographer.CALLBACK_ANIMATION, addedCallback1, null);
77 Choreographer.CALLBACK_ANIMATION, addedCallback2, null)
    [all...]
  /frameworks/base/core/java/android/view/
BatchedInputEventReceiver.java 26 Choreographer mChoreographer;
30 InputChannel inputChannel, Looper looper, Choreographer choreographer) {
32 mChoreographer = choreographer;
63 mChoreographer.postCallback(Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null);
71 Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null);
Choreographer.java 39 * The choreographer receives timing pulses (such as vertical synchronization)
43 * Applications typically interact with the choreographer indirectly using
63 * choreographer directly in your application. Here are some examples.
69 * {@link Choreographer#postFrameCallback}.</li>
73 * Each {@link Looper} thread has its own choreographer. Other threads can
74 * post callbacks to run on the choreographer but they will run on the {@link Looper}
75 * to which the choreographer belongs.
78 public final class Choreographer {
79 private static final String TAG = "Choreographer";
100 // Thread local storage for the choreographer
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowChoreographer.java 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..
    [all...]
ShadowRenderNodeAnimator.java 8 import android.view.Choreographer;
9 import android.view.Choreographer.FrameCallback;
22 private Choreographer choreographer = Choreographer.getInstance(); field in class:ShadowRenderNodeAnimator
30 // callbacks on the Choreographer, this is a problem if not reset between tests (as once the
42 // Choreographer callbacks synchronously when unpaused (and thus end up running the full
91 choreographer.postFrameCallback(frameCallback);
97 choreographer.removeFrameCallback(frameCallback);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowChoreographerTest.java 9 import android.view.Choreographer;
23 final Choreographer instance = ShadowChoreographer.getInstance();
32 Choreographer instance = ShadowChoreographer.getInstance();
33 Choreographer.FrameCallback callback = mock(Choreographer.FrameCallback.class);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
DejankUtils.java 23 import android.view.Choreographer;
32 private static final Choreographer sChoreographer = Choreographer.getInstance();
80 sChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, sAnimationCallbackRunnable,
  /frameworks/base/core/java/android/animation/
AnimationHandler.java 21 import android.view.Choreographer;
31 * The handler uses the Choreographer by default for doing periodic callbacks. A custom
51 private final Choreographer.FrameCallback mFrameCallback = new Choreographer.FrameCallback() {
72 * By default, the Choreographer is used to provide timing for frame callbacks. A custom
240 * Default provider of timing pulse that uses Choreographer for frame callbacks.
244 final Choreographer mChoreographer = Choreographer.getInstance();
247 public void postFrameCallback(Choreographer.FrameCallback callback) {
253 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null)
    [all...]
  /packages/apps/Launcher3/quickstep/src/com/android/quickstep/
TouchConsumer.java 21 import android.view.Choreographer;
59 default Choreographer getIntrimChoreographer(MotionEventQueue queue) {
MotionEventQueue.java 27 import android.view.Choreographer;
71 private final Choreographer mMainChoreographer;
75 private Choreographer mInterimChoreographer;
76 private Choreographer mCurrentChoreographer;
80 public MotionEventQueue(Choreographer choreographer, TouchConsumer consumer) {
81 mMainChoreographer = choreographer;
89 public void setInterimChoreographer(Choreographer choreographer) {
92 setInterimChoreographerLocked(choreographer);
    [all...]
DeferredTouchConsumer.java 20 import android.view.Choreographer;
82 public Choreographer getIntrimChoreographer(MotionEventQueue queue) {
  /frameworks/base/core/java/com/android/internal/view/
SurfaceFlingerVsyncChoreographer.java 21 import android.view.Choreographer;
34 private final Choreographer mChoreographer;
43 Choreographer choreographer) {
45 mChoreographer = choreographer;
  /frameworks/base/services/core/java/com/android/server/display/
RampAnimator.java 21 import android.view.Choreographer;
30 private final Choreographer mChoreographer;
47 mChoreographer = Choreographer.getInstance();
124 mChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, mAnimationCallback, null);
128 mChoreographer.removeCallbacks(Choreographer.CALLBACK_ANIMATION, mAnimationCallback, null);
132 @Override // Choreographer callback
DisplayPowerState.java 27 import android.view.Choreographer;
56 private final Choreographer mChoreographer;
75 mChoreographer = Choreographer.getInstance();
293 mChoreographer.postCallback(Choreographer.CALLBACK_TRAVERSAL,
  /frameworks/base/core/java/com/android/internal/view/animation/
FallbackLUTInterpolator.java 21 import android.view.Choreographer;
48 long frameIntervalNanos = Choreographer.getInstance().getFrameIntervalNanos();
  /frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
AnimationHandler.java 23 import android.view.Choreographer;
36 * The handler uses the Choreographer by default for doing periodic callbacks. A custom
100 * By default, the Choreographer is used to provide timing for frame callbacks. A custom
190 * Default provider of timing pulse that uses Choreographer for frame callbacks.
195 private final Choreographer mChoreographer = Choreographer.getInstance();
196 private final Choreographer.FrameCallback mChoreographerCallback;
200 mChoreographerCallback = new Choreographer.FrameCallback() {
247 * timing pulse without using Choreographer. That way we could use any arbitrary interval for
  /cts/hostsidetests/incident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/
DrawFramesActivity.java 24 import android.view.Choreographer;
53 private Choreographer mChoreographer;
65 mChoreographer = Choreographer.getInstance();
  /packages/apps/WallpaperPicker/src/com/android/photos/views/
TiledImageView.java 23 import android.view.Choreographer;
24 import android.view.Choreographer.FrameCallback;
160 Choreographer.getInstance().postFrameCallback(mFrameCallback);
  /frameworks/base/services/core/java/com/android/server/wm/
SurfaceAnimationRunner.java 20 import static android.view.Choreographer.CALLBACK_TRAVERSAL;
21 import static android.view.Choreographer.getSfInstance;
30 import android.view.Choreographer;
54 Choreographer mChoreographer;
  /frameworks/base/core/java/com/android/internal/policy/
BackdropFrameRenderer.java 23 import android.view.Choreographer;
33 * executed via the Choreographer.
36 public class BackdropFrameRenderer extends Thread implements Choreographer.FrameCallback {
52 private Choreographer mChoreographer;
215 mChoreographer = Choreographer.getInstance();
224 Choreographer.releaseInstance();

Completed in 358 milliseconds

1 2 3