Add dispatchModeRejected in NativeDisplayReceiver

This is added to handle the onModeRejected callback
from SF to signal DM about mode rejection
and requesting a retry.
Also add this method in DisplayEventReceiver.java

Bug: 377547547
Test: manual
Flag: com.android.graphics.surfaceflinger.flags.display_config_error_hal

Change-Id: I408c38eef6036e4c364d8c8616f541dfbc74bb97
Signed-off-by: Manasi Navare <navaremanasi@google.com>
2 files changed