/frameworks/native/libs/gui/ |
D | Choreographer.cpp | 70 Choreographer::Context Choreographer::gChoreographers; 72 static thread_local Choreographer* gChoreographer; 74 void Choreographer::initJVM(JNIEnv* env) { in initJVM() 89 Choreographer* Choreographer::getForThread() { in getForThread() 96 gChoreographer = new Choreographer(looper); in getForThread() 106 Choreographer::Choreographer(const sp<Looper>& looper, const sp<IBinder>& layerHandle) in Choreographer() function in android::Choreographer 115 Choreographer::~Choreographer() { in ~Choreographer() 119 [=, this](Choreographer* c) { return c == this; }), in ~Choreographer() 143 void Choreographer::postFrameCallbackDelayed(AChoreographer_frameCallback cb, in postFrameCallbackDelayed() 174 void Choreographer::registerRefreshRateCallback(AChoreographer_refreshRateCallback cb, void* data) { in registerRefreshRateCallback() [all …]
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | SfVsyncFrameCallbackProvider.java | 20 import android.view.Choreographer; 30 private final Choreographer mChoreographer; 33 mChoreographer = Choreographer.getSfInstance(); in SfVsyncFrameCallbackProvider() 36 public SfVsyncFrameCallbackProvider(Choreographer choreographer) { in SfVsyncFrameCallbackProvider() 41 public void postFrameCallback(Choreographer.FrameCallback callback) { in postFrameCallback() 47 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback() 57 return Choreographer.getFrameDelay(); in getFrameDelay() 62 Choreographer.setFrameDelay(delay); in setFrameDelay()
|
/frameworks/native/libs/gui/include/gui/ |
D | Choreographer.h | 57 class Choreographer; variable 67 const Choreographer* choreographer; 70 class Choreographer : public DisplayEventDispatcher, public MessageHandler { 74 std::vector<Choreographer*> ptrs GUARDED_BY(lock); 82 explicit Choreographer(const sp<Looper>& looper, const sp<IBinder>& layerHandle = nullptr) 106 static Choreographer* getForThread(); 109 virtual ~Choreographer() override EXCLUDES(gChoreographers.lock); 115 Choreographer(const Choreographer&) = delete;
|
D | SurfaceControl.h | 39 class Choreographer; variable 85 std::shared_ptr<Choreographer> getChoreographer(); 137 std::shared_ptr<Choreographer> mChoreographer;
|
/frameworks/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 36 static inline Choreographer* AChoreographer_to_Choreographer(AChoreographer* choreographer) { in AChoreographer_to_Choreographer() 37 return reinterpret_cast<Choreographer*>(choreographer); in AChoreographer_to_Choreographer() 40 static inline const Choreographer* AChoreographer_to_Choreographer( in AChoreographer_to_Choreographer() 42 return reinterpret_cast<const Choreographer*>(choreographer); in AChoreographer_to_Choreographer() 54 Choreographer::signalRefreshRateCallbacks(vsyncPeriod); in AChoreographer_signalRefreshRateCallbacks() 58 Choreographer::initJVM(env); in AChoreographer_initJVM() 133 return Choreographer::getStartTimeNanosForVsyncId(vsyncId); in AChoreographer_getStartTimeNanosForVsyncId() 140 static inline AChoreographer* Choreographer_to_AChoreographer(Choreographer* choreographer) { in Choreographer_to_AChoreographer() 145 return Choreographer_to_AChoreographer(Choreographer::getForThread()); in AChoreographer_getInstance() 241 Choreographer* choreographer = new Choreographer(nullptr); in AChoreographer_create() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | AnimationHandler.java | 24 import android.view.Choreographer; 84 private final Choreographer.FrameCallback mFrameCallback = new Choreographer.FrameCallback() { 228 Choreographer.getInstance().postFrameCallbackDelayed(mPauser, in requestAnimatorsEnabledImpl() 244 Choreographer.getInstance().removeFrameCallback(mPauser); in resumeAnimators() 251 private Choreographer.FrameCallback mPauser = frameTimeNanos -> { 445 final Choreographer mChoreographer = Choreographer.getInstance(); 448 public void postFrameCallback(Choreographer.FrameCallback callback) { in postFrameCallback() 454 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback() 464 return Choreographer.getFrameDelay(); in getFrameDelay() 469 Choreographer.setFrameDelay(delay); in setFrameDelay() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifPipelineChoreographerTest.kt | 19 import android.view.Choreographer 42 val viewChoreographer: Choreographer = mock() 61 val frameCallback: Choreographer.FrameCallback = withArgCaptor { in scheduleThenEvalFrameCallback() 80 val frameCallback: Choreographer.FrameCallback = withArgCaptor { in scheduleThenEvalTimeoutCallback() 97 val frameCallback: Choreographer.FrameCallback = withArgCaptor { in scheduleThenCancel() 117 @BindsInstance viewChoreographer: Choreographer,
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 32 import android.view.Choreographer; 70 private Choreographer mChoreographer; 156 Choreographer choreographer1 = sc1.getChoreographer(); in testCreateChoreographer() 166 Choreographer choreographer2 = sc2.getChoreographer(Looper.myLooper()); in testCreateChoreographer() 176 Choreographer choreographer3 = sc3.getChoreographer(Looper.getMainLooper()); in testCreateChoreographer() 278 Choreographer copyChoreographer = copySc.getChoreographer(); in testPostFrameCallback() 304 Choreographer copyChoreographer = copySc.getChoreographer(); in testPostFrameCallbackDelayed() 326 sc.getChoreographer().postCallback(Choreographer.CALLBACK_COMMIT, in testPostCallback() 330 Choreographer copyChoreographer = copySc.getChoreographer(); in testPostCallback() 336 copyChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, in testPostCallback() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Choreographer.java | 87 public final class Choreographer { class 110 private static final ThreadLocal<Choreographer> sThreadInstance = 111 new ThreadLocal<Choreographer>() { 113 protected Choreographer initialValue() { 118 Choreographer choreographer = new Choreographer(looper, VSYNC_SOURCE_APP); 126 private static volatile Choreographer mMainInstance; 129 private static final ThreadLocal<Choreographer> sSfThreadInstance = 130 new ThreadLocal<Choreographer>() { 132 protected Choreographer initialValue() { 137 return new Choreographer(looper, VSYNC_SOURCE_SURFACE_FLINGER); [all …]
|
D | BatchedInputEventReceiver.java | 29 private Choreographer mChoreographer; 43 InputChannel inputChannel, Looper looper, Choreographer choreographer) { in BatchedInputEventReceiver() 106 mChoreographer.postCallback(Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null); in scheduleBatchedInput() 115 Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null); in unscheduleBatchedInput() 156 Choreographer choreographer, InputEventListener listener) { in SimpleBatchedInputEventReceiver()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | Choreographer_Delegate.java | 46 Choreographer thiz, int callbackType, Object action, Object token, long delayMillis) { in postCallbackDelayedInternal() 61 if (callbackType != Choreographer.CALLBACK_ANIMATION) { in postCallbackDelayedInternal() 75 Choreographer thiz, int callbackType, Object action, Object token) { in removeCallbacksInternal() 80 if (callbackType != Choreographer.CALLBACK_ANIMATION) { in removeCallbacksInternal() 88 public static long getFrameTimeNanos(Choreographer thiz) { in getFrameTimeNanos()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NoRemeasureMotionLayout.kt | 21 import android.view.Choreographer 46 Choreographer.getMainThreadInstance()?.frameTime == lastFrame in onMeasure() 55 lastFrame = Choreographer.getMainThreadInstance()?.frameTime in onMeasure()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/ |
D | WMShellConcurrencyModule.java | 29 import android.view.Choreographer; 152 public static Choreographer provideShellMainChoreographer( in provideShellMainChoreographer() 155 final Choreographer[] choreographer = new Choreographer[1]; in provideShellMainChoreographer() 156 executor.executeBlocking(() -> choreographer[0] = Choreographer.getInstance()); in provideShellMainChoreographer()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | InputChannelCompat.java | 25 import android.view.Choreographer; 68 Choreographer choreographer, final InputEventListener listener) { in InputEventReceiver() 73 Choreographer choreographer, final InputEventListener listener) { in InputEventReceiver()
|
D | InputConsumerController.java | 28 import android.view.Choreographer; 67 Choreographer choreographer) { in InputEventReceiver() 148 Choreographer.getInstance()); in registerInputConsumer()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | RampAnimator.java | 21 import android.view.Choreographer; 212 private final Choreographer mChoreographer; 221 mChoreographer = Choreographer.getInstance(); in DualRampAnimator() 264 mChoreographer.removeCallbacks(Choreographer.CALLBACK_ANIMATION, in animateTo() 287 mChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, mAnimationCallback, null); in postAnimationCallback()
|
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/ |
D | UnfoldFrameCallbackScheduler.kt | 19 import android.view.Choreographer 37 private val choreographer = Choreographer.getInstance()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifPipelineChoreographer.kt | 19 import android.view.Choreographer 63 private val viewChoreographer: Choreographer, 71 private val frameCallback = Choreographer.FrameCallback { in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubblesNavBarInputEventReceiver.java | 21 import android.view.Choreographer; 34 Choreographer choreographer, BubblesNavBarMotionEventHandler motionEventHandler) { in BubblesNavBarInputEventReceiver()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | UiThreadContext.kt | 21 import android.view.Choreographer 32 val choreographer: Choreographer
|
/frameworks/libs/systemui/viewcapturelib/tests/com/android/app/viewcapture/ |
D | SettingsAwareViewCaptureTest.kt | 25 import android.view.Choreographer in <lambda>() 57 Choreographer.getInstance().postFrameCallback { in <lambda>() 83 Choreographer.getInstance().postFrameCallback { in <lambda>()
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | CustomTestActivity.java | 24 import android.view.Choreographer; 64 Choreographer.getInstance().postCallback( in onCreate() 65 Choreographer.CALLBACK_COMMIT, in onCreate()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowTracing.java | 36 import android.view.Choreographer; 67 private final Choreographer mChoreographer; 73 private final Choreographer.FrameCallback mFrameCallback = (frameTimeNanos) -> 85 Choreographer choreographer) { in createDefaultAndStartLooper() 90 private WindowTracing(File file, WindowManagerService service, Choreographer choreographer, in WindowTracing() 95 WindowTracing(File file, WindowManagerService service, Choreographer choreographer, in WindowTracing()
|
/frameworks/base/graphics/java/android/graphics/animation/ |
D | FallbackLUTInterpolator.java | 21 import android.view.Choreographer; 49 long frameIntervalNanos = Choreographer.getInstance().getFrameIntervalNanos(); in createLUT()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipInputConsumer.java | 26 import android.view.Choreographer; 67 Choreographer choreographer) { in InputEventReceiver() 150 Looper.myLooper(), Choreographer.getInstance()); in registerInputConsumer()
|