Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb4a4307 authored by Tony Huang's avatar Tony Huang
Browse files

Metric velocity on VelocityTracker

Bug: 301343249
Test: record_android_trace view -a*
Flag: ACONFIG android.view.flags.Flags.toolkitMetrics DEVELOPMENT
Change-Id: Ia310f7db365bc2ee03de0791183a17d4112e407a
parent a57a0fb7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -33126,6 +33126,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    public void setFrameContentVelocity(float pixelsPerSecond) {
        if (viewVelocityApi()) {
            mFrameContentVelocity = Math.abs(pixelsPerSecond);
            if (sToolkitMetricsForFrameRateDecisionFlagValue) {
                Trace.setCounter("Set frame velocity", (long) mFrameContentVelocity);
            }
        }
    }