diff --git a/core/api/current.txt b/core/api/current.txt index dd3d6eb0fcd87..7c3c9c641d295 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -52816,10 +52816,10 @@ package android.view { method public void onRestrictedCaptionAreaChanged(android.graphics.Rect); } - public final class WindowAnimationFrameStats extends android.view.FrameStats implements android.os.Parcelable { - method public int describeContents(); - method public void writeToParcel(android.os.Parcel, int); - field @NonNull public static final android.os.Parcelable.Creator CREATOR; + @Deprecated public final class WindowAnimationFrameStats extends android.view.FrameStats implements android.os.Parcelable { + method @Deprecated public int describeContents(); + method @Deprecated public void writeToParcel(android.os.Parcel, int); + field @Deprecated @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class WindowContentFrameStats extends android.view.FrameStats implements android.os.Parcelable { diff --git a/core/java/android/view/WindowAnimationFrameStats.java b/core/java/android/view/WindowAnimationFrameStats.java index 251ae9bd58f22..25f29a731e3d5 100644 --- a/core/java/android/view/WindowAnimationFrameStats.java +++ b/core/java/android/view/WindowAnimationFrameStats.java @@ -32,7 +32,12 @@ import android.os.Parcelable; * #getRefreshPeriodNano()}. If the system does not render a frame every refresh * period the user will see irregular window transitions. The time when the frame was * actually presented on the display by calling {@link #getFramePresentedTimeNano(int)}. + * + * @deprecated Use Shared + * FrameTimeline + * jank metrics instead. */ +@Deprecated public final class WindowAnimationFrameStats extends FrameStats implements Parcelable { /** * @hide