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

Commit 493a723d authored by Rachel Lee's avatar Rachel Lee Committed by Cherrypicker Worker
Browse files

Make Display.Mode.isSynthetic TestApi

To use in CTS (FrameRateOverrideTest) for vrr device with synthetic
modes.

Bug: 353142444
Flag: TEST_ONLY
Test: atest FrameRateOverrideTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:62fb8f943b0251ecec710f14b63e562ac63ce0dd)
Merged-In: Ic28956ac65f9642b9a78a31fff0111e28c6a69e0
Change-Id: Ic28956ac65f9642b9a78a31fff0111e28c6a69e0
parent ef1359f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3633,6 +3633,7 @@ package android.view {

  public static final class Display.Mode implements android.os.Parcelable {
    ctor public Display.Mode(int, int, float);
    method public boolean isSynthetic();
    method public boolean matches(int, int, float);
  }

+2 −0
Original line number Diff line number Diff line
@@ -2344,6 +2344,8 @@ public final class Display {
         * SurfaceControl.DisplayMode
         * @hide
         */
        @SuppressWarnings("UnflaggedApi") // For testing only
        @TestApi
        public boolean isSynthetic() {
            return mIsSynthetic;
        }