diff options
author | 2024-11-07 23:49:46 +0000 | |
---|---|---|
committer | 2024-11-27 20:02:20 +0000 | |
commit | 5ef1fa1b61ed3e73e450b8b4997509fe706b9fbe (patch) | |
tree | a06b223fbb160fac1399c4017a31b830508956e2 /libs/gui/DisplayEventDispatcher.cpp | |
parent | b03dfd3b1139d1308f5e6da5057040e8e56b4dcf (diff) |
SF: Propagate Display Mode Rejection from SF to DM
Create a new DisplayEventReceiver callback for onModeRejected
to signal mode rejection from SF to DM so that DM can trigger
a retry.
Add the plumbing through DisplayEventReceiver and EventThread
Bug: 374184110
Test: manual
Flag: com.android.graphics.surfaceflinger.flags.display_config_error_hal
Change-Id: I78515d413bdf2e6e07d6649b7b60df8ced199b19
Signed-off-by: Manasi Navare <navaremanasi@google.com>
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
-rw-r--r-- | libs/gui/DisplayEventDispatcher.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/DisplayEventDispatcher.cpp b/libs/gui/DisplayEventDispatcher.cpp index c46f9c50ef..68f10f4d80 100644 --- a/libs/gui/DisplayEventDispatcher.cpp +++ b/libs/gui/DisplayEventDispatcher.cpp @@ -211,6 +211,9 @@ bool DisplayEventDispatcher::processPendingEvents(nsecs_t* outTimestamp, ev.hdcpLevelsChange.connectedLevel, ev.hdcpLevelsChange.maxLevel); break; + case DisplayEventReceiver::DISPLAY_EVENT_MODE_REJECTION: + dispatchModeRejected(ev.header.displayId, ev.modeRejection.modeId); + break; default: ALOGW("dispatcher %p ~ ignoring unknown event type %#x", this, ev.header.type); break; |