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

Commit 31d12630 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Removing the UnsupportedAppUsage annotation from Choreographer"

parents 869e7e0c 504c828e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -673,8 +673,6 @@ public final class Choreographer {
        ThreadedRenderer.setFPSDivisor(divisor);
    }

    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, publicAlternatives = "Use {@link "
            + "#postFrameCallback} instead")
    void doFrame(long frameTimeNanos, int frame, long frameTimelineVsyncId) {
        final long startNanos;
        synchronized (mLock) {
+0 −5
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package android.view;

import android.compat.annotation.UnsupportedAppUsage;
import android.os.Build;
import android.os.Looper;
import android.os.MessageQueue;
import android.util.Log;
@@ -158,8 +157,6 @@ public abstract class DisplayEventReceiver {
     * @param frameTimelineVsyncId The frame timeline vsync id, used to correlate a frame
     * produced by HWUI with the timeline data stored in Surface Flinger.
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, publicAlternatives = "Use {@link "
            + "Choreographer#postFrameCallback} instead")
    public void onVsync(long timestampNanos, long physicalDisplayId, int frame,
            long frameTimelineVsyncId) {
    }
@@ -203,8 +200,6 @@ public abstract class DisplayEventReceiver {

    // Called from native code.
    @SuppressWarnings("unused")
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, publicAlternatives = "Use {@link "
            + "Choreographer#postFrameCallback} instead")
    private void dispatchVsync(long timestampNanos, long physicalDisplayId, int frame,
            long frameTimelineVsyncId) {
        onVsync(timestampNanos, physicalDisplayId, frame, frameTimelineVsyncId);