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

Commit d3701c5a authored by Ying Wei's avatar Ying Wei Committed by Automerger Merge Worker
Browse files

Merge "Update documentation for...

Merge "Update documentation for WindowManager.LayoutParams#preferredRefreshRate" into udc-dev am: 79b8e4c3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22122048



Change-Id: Ib0daab5ec202adfa15e66996f7e0b56a9ee0acdb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 26f8cb75 79b8e4c3
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -3616,9 +3616,20 @@ public interface WindowManager extends ViewManager {
        /**
         * The preferred refresh rate for the window.
         * <p>
         * This must be one of the supported refresh rates obtained for the display(s) the window
         * is on. The selected refresh rate will be applied to the display's default mode.
         * Before API 34, this must be one of the supported refresh rates obtained
         * for the display(s) the window is on. The selected refresh rate will be
         * applied to the display's default mode.
         * <p>
         * Starting API 34, this value is not limited to the supported refresh rates
         * obtained from the display(s) for the window: it can be any refresh rate
         * the window intends to run at. Any refresh rate can be provided as the
         * preferred window refresh rate. The OS will select the refresh rate that
         * best matches the {@link #preferredRefreshRate}.
         * <p>
         * Setting this value is the equivalent of calling {@link Surface#setFrameRate} with (
         *     preferred_frame_rate,
         *     {@link Surface#FRAME_RATE_COMPATIBILITY_DEFAULT},
         *     {@link Surface#CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS}).
         * This should be used in favor of {@link LayoutParams#preferredDisplayModeId} for
         * applications that want to specify the refresh rate, but do not want to specify a
         * preference for any other displayMode properties (e.g., resolution).