Home
last modified time | relevance | path

Searched refs:Choreographer (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/layoutlib/bridge/src/android/view/
DChoreographer_Delegate.java34 …private static final AtomicReference<Choreographer> mInstance = new AtomicReference<Choreographer>…
37 public static Choreographer getInstance() { in getInstance()
39 mInstance.compareAndSet(null, Choreographer.getInstance_Original()); in getInstance()
51 static void scheduleVsyncLocked(Choreographer thisChoreographer) { in scheduleVsyncLocked()
56 Choreographer thisChoreographer = Choreographer.getInstance(); in doFrame()
63 thisChoreographer.doCallbacks(Choreographer.CALLBACK_INPUT, frameTimeNanos); in doFrame()
66 thisChoreographer.doCallbacks(Choreographer.CALLBACK_ANIMATION, frameTimeNanos); in doFrame()
69 thisChoreographer.doCallbacks(Choreographer.CALLBACK_TRAVERSAL, frameTimeNanos); in doFrame()
71 thisChoreographer.doCallbacks(Choreographer.CALLBACK_COMMIT, frameTimeNanos); in doFrame()
78 Choreographer thisChoreographer = Choreographer.getInstance(); in clearFrames()
[all …]
/frameworks/base/native/android/
Dchoreographer.cpp52 class Choreographer : public DisplayEventDispatcher, public MessageHandler { class
63 static Choreographer* getForThread();
66 virtual ~Choreographer() = default;
69 explicit Choreographer(const sp<Looper>& looper);
70 Choreographer(const Choreographer&) = delete;
89 static thread_local Choreographer* gChoreographer;
90 Choreographer* Choreographer::getForThread() { in getForThread()
97 gChoreographer = new Choreographer(looper); in getForThread()
107 Choreographer::Choreographer(const sp<Looper>& looper) : in Choreographer() function in android::Choreographer
111 void Choreographer::postFrameCallbackDelayed( in postFrameCallbackDelayed()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/
DSfVsyncFrameCallbackProvider.java20 import android.view.Choreographer;
29 private final Choreographer mChoreographer;
32 mChoreographer = Choreographer.getSfInstance(); in SfVsyncFrameCallbackProvider()
35 public SfVsyncFrameCallbackProvider(Choreographer choreographer) { in SfVsyncFrameCallbackProvider()
40 public void postFrameCallback(Choreographer.FrameCallback callback) { in postFrameCallback()
46 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback()
56 return Choreographer.getFrameDelay(); in getFrameDelay()
61 Choreographer.setFrameDelay(delay); in setFrameDelay()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DChoreographerCompat.java18 import static android.view.Choreographer.CALLBACK_INPUT;
20 import android.view.Choreographer;
30 public static void postInputFrame(Choreographer choreographer, Runnable runnable) { in postInputFrame()
34 public static Choreographer getSfInstance() { in getSfInstance()
35 return Choreographer.getSfInstance(); in getSfInstance()
DInputChannelCompat.java22 import android.view.Choreographer;
47 Looper looper, Choreographer choreographer, InputEventListener listener) { in fromBundle()
75 Choreographer choreographer, final InputEventListener listener) { in InputEventReceiver()
DInputMonitorCompat.java20 import android.view.Choreographer;
54 public InputEventReceiver getInputReceiver(Looper looper, Choreographer choreographer, in getInputReceiver()
DInputConsumerController.java29 import android.view.Choreographer;
67 super(inputChannel, looper, Choreographer.getSfInstance()); in InputEventReceiver()
/frameworks/base/core/java/android/animation/
DAnimationHandler.java21 import android.view.Choreographer;
51 private final Choreographer.FrameCallback mFrameCallback = new Choreographer.FrameCallback() {
244 final Choreographer mChoreographer = Choreographer.getInstance();
247 public void postFrameCallback(Choreographer.FrameCallback callback) { in postFrameCallback()
253 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback()
263 return Choreographer.getFrameDelay(); in getFrameDelay()
268 Choreographer.setFrameDelay(delay); in setFrameDelay()
311 void postFrameCallback(Choreographer.FrameCallback callback); in postFrameCallback()
/frameworks/base/core/java/android/view/
DChoreographer.java81 public final class Choreographer { class
104 private static final ThreadLocal<Choreographer> sThreadInstance =
105 new ThreadLocal<Choreographer>() {
107 protected Choreographer initialValue() {
112 Choreographer choreographer = new Choreographer(looper, VSYNC_SOURCE_APP);
120 private static volatile Choreographer mMainInstance;
123 private static final ThreadLocal<Choreographer> sSfThreadInstance =
124 new ThreadLocal<Choreographer>() {
126 protected Choreographer initialValue() {
131 return new Choreographer(looper, VSYNC_SOURCE_SURFACE_FLINGER);
[all …]
DBatchedInputEventReceiver.java27 Choreographer mChoreographer;
32 InputChannel inputChannel, Looper looper, Choreographer choreographer) { in BatchedInputEventReceiver()
65 mChoreographer.postCallback(Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null); in scheduleBatchedInput()
73 Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null); in unscheduleBatchedInput()
/frameworks/opt/gamesdk/src/extras/src/main/java/com/google/androidgamesdk/
DChoreographerCallback.java5 import android.view.Choreographer;
9 public class ChoreographerCallback implements Choreographer.FrameCallback {
37 Choreographer.getInstance().postFrameCallback(ChoreographerCallback.this); in postFrameCallback()
43 Choreographer.getInstance().postFrameCallbackDelayed(this, delayMillis); in postFrameCallbackDelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDejankUtils.java20 import android.view.Choreographer;
32 private static final Choreographer sChoreographer = Choreographer.getInstance();
80 sChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, sAnimationCallbackRunnable, in postAnimationCallback()
/frameworks/base/services/core/java/com/android/server/display/
DRampAnimator.java21 import android.view.Choreographer;
30 private final Choreographer mChoreographer;
47 mChoreographer = Choreographer.getInstance(); in RampAnimator()
124 mChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, mAnimationCallback, null); in postAnimationCallback()
128 mChoreographer.removeCallbacks(Choreographer.CALLBACK_ANIMATION, mAnimationCallback, null); in cancelAnimationCallback()
DDisplayPowerState.java27 import android.view.Choreographer;
56 private final Choreographer mChoreographer;
75 mChoreographer = Choreographer.getInstance(); in DisplayPowerState()
293 mChoreographer.postCallback(Choreographer.CALLBACK_TRAVERSAL, in scheduleColorFadeDraw()
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/java/com/google/tuningfork/
DTFTestActivity.java20 import android.view.Choreographer;
26 public class TFTestActivity extends AppCompatActivity implements Choreographer.FrameCallback, Surfa…
56 Choreographer.getInstance().postFrameCallback(this); in onStart()
68 Choreographer.getInstance().postFrameCallback(this); in doFrame()
/frameworks/base/core/java/com/android/internal/view/
DSurfaceFlingerVsyncChoreographer.java21 import android.view.Choreographer;
34 private final Choreographer mChoreographer;
43 Choreographer choreographer) { in SurfaceFlingerVsyncChoreographer()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowTracing.java32 import android.view.Choreographer;
55 private final Choreographer mChoreographer;
61 private final Choreographer.FrameCallback mFrameCallback = (frameTimeNanos) ->
71 Choreographer choreographer) { in createDefaultAndStartLooper()
76 private WindowTracing(File file, WindowManagerService service, Choreographer choreographer, in WindowTracing()
81 WindowTracing(File file, WindowManagerService service, Choreographer choreographer, in WindowTracing()
DSurfaceAnimationRunner.java20 import static android.view.Choreographer.CALLBACK_TRAVERSAL;
21 import static android.view.Choreographer.getSfInstance;
32 import android.view.Choreographer;
56 Choreographer mChoreographer;
DWindowAnimator.java31 import android.view.Choreographer;
55 final Choreographer.FrameCallback mAnimationFrameCallback;
71 private Choreographer mChoreographer;
93 () -> mChoreographer = Choreographer.getSfInstance(), 0 /* timeout */); in WindowAnimator()
390 Choreographer getChoreographer() { in getChoreographer()
/frameworks/base/core/java/com/android/internal/view/animation/
DFallbackLUTInterpolator.java21 import android.view.Choreographer;
48 long frameIntervalNanos = Choreographer.getInstance().getFrameIntervalNanos(); in createLUT()
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java25 import android.view.Choreographer;
36 public class BackdropFrameRenderer extends Thread implements Choreographer.FrameCallback {
52 private Choreographer mChoreographer;
215 mChoreographer = Choreographer.getInstance(); in run()
224 Choreographer.releaseInstance(); in run()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceAnimationRunnerTest.java39 import android.view.Choreographer;
40 import android.view.Choreographer.FrameCallback;
199 mSurfaceAnimationRunner.mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, in waitUntilNextFrame()
DWindowTracingTest.java38 import android.view.Choreographer;
79 private Choreographer mChoreographer;
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java33 import android.view.Choreographer;
34 import android.view.Choreographer.FrameCallback;
240 Choreographer.getInstance().postFrameCallback(mFrameCallback); in invalOnVsync()
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/java/com/prefabulated/bouncyball/
DOrbitActivity.java29 import android.view.Choreographer;
52 public class OrbitActivity extends AppCompatActivity implements Choreographer.FrameCallback, Surfac…
301 Choreographer.getInstance().postFrameCallback(this); in onStart()
413 Choreographer.getInstance().postFrameCallback(this); in doFrame()

12