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

Commit 62fb8f94 authored by Rachel Lee's avatar Rachel Lee
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
Change-Id: Ic28956ac65f9642b9a78a31fff0111e28c6a69e0
parent 62c19ce1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3676,6 +3676,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;
        }