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

Commit 9eafaa30 authored by Manasi Navare's avatar Manasi Navare Committed by Android (Google) Code Review
Browse files

Merge "Consume the modeRejected event based on Event Registration flag value" into main

parents 66ae830a 92f9b393
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -77,6 +77,13 @@ public abstract class DisplayEventReceiver {
     */
    public static final int EVENT_REGISTRATION_FRAME_RATE_OVERRIDE_FLAG = 0x2;

    /**
     * Specifies to generate mode rejected events from Surface Flinger.
     * <p>
     * Keep in sync with frameworks/native/libs/gui/aidl/android/gui/ISurfaceComposer.aidl
     */
    public static final int EVENT_REGISTRATION_MODE_REJECTED_FLAG = 0x4;

    private static final String TAG = "DisplayEventReceiver";

    @UnsupportedAppUsage
+2 −1
Original line number Diff line number Diff line
@@ -1633,7 +1633,8 @@ final class LocalDisplayAdapter extends DisplayAdapter {
        ProxyDisplayEventReceiver(Looper looper, DisplayEventListener listener) {
            super(looper, VSYNC_SOURCE_APP,
                    EVENT_REGISTRATION_MODE_CHANGED_FLAG
                            | EVENT_REGISTRATION_FRAME_RATE_OVERRIDE_FLAG);
                            | EVENT_REGISTRATION_FRAME_RATE_OVERRIDE_FLAG
                            | EVENT_REGISTRATION_MODE_REJECTED_FLAG);
            mListener = listener;
        }