Loading core/java/android/view/Choreographer.java +2 −0 Original line number Diff line number Diff line Loading @@ -660,6 +660,8 @@ 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) { Loading core/java/android/view/DisplayEventReceiver.java +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.view; import android.compat.annotation.UnsupportedAppUsage; import android.os.Build; import android.os.Looper; import android.os.MessageQueue; import android.util.Log; Loading Loading @@ -157,6 +158,8 @@ 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) { } Loading Loading @@ -200,6 +203,8 @@ 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); Loading Loading
core/java/android/view/Choreographer.java +2 −0 Original line number Diff line number Diff line Loading @@ -660,6 +660,8 @@ 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) { Loading
core/java/android/view/DisplayEventReceiver.java +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.view; import android.compat.annotation.UnsupportedAppUsage; import android.os.Build; import android.os.Looper; import android.os.MessageQueue; import android.util.Log; Loading Loading @@ -157,6 +158,8 @@ 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) { } Loading Loading @@ -200,6 +203,8 @@ 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); Loading