summaryrefslogtreecommitdiff
path: root/libs/androidfw/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2019-02-13 16:41:59 -0800
committer Ady Abraham <adyabr@google.com> 2019-02-22 17:54:06 -0800
commita5a21f70e125d58184f5446863fc4e3ac022e149 (patch)
tree6c25e2684812fcc9cd6a05d807c456c53a79fbe4 /libs/androidfw/DisplayEventDispatcher.cpp
parent6070ce1be356df378857504ea0e586da523034a5 (diff)
DisplayEventDispatcher: add DISPLAY_EVENT_CONFIG_CHANGED
Add a new event for display configuration change. This event will be sent by SF anytime it changes the display config. Test: Generate DISPLAY_EVENT_CONFIG_CHANGED and observe the log Bug: 122905403 Change-Id: Ifa473a34d7b313501e5e4e8a67186fb82754fdcd
Diffstat (limited to 'libs/androidfw/DisplayEventDispatcher.cpp')
-rw-r--r--libs/androidfw/DisplayEventDispatcher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/androidfw/DisplayEventDispatcher.cpp b/libs/androidfw/DisplayEventDispatcher.cpp
index 3b9a348047ba..660614895603 100644
--- a/libs/androidfw/DisplayEventDispatcher.cpp
+++ b/libs/androidfw/DisplayEventDispatcher.cpp
@@ -135,6 +135,9 @@ bool DisplayEventDispatcher::processPendingEvents(
case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG:
dispatchHotplug(ev.header.timestamp, ev.header.displayId, ev.hotplug.connected);
break;
+ case DisplayEventReceiver::DISPLAY_EVENT_CONFIG_CHANGED:
+ dispatchConfigChanged(ev.header.timestamp, ev.header.displayId, ev.config.configId);
+ break;
default:
ALOGW("dispatcher %p ~ ignoring unknown event type %#x", this, ev.header.type);
break;