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
This commit is contained in:
@@ -70,6 +70,8 @@ private:
|
||||
|
||||
void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count) override;
|
||||
void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override;
|
||||
void dispatchConfigChanged(nsecs_t timestamp, PhysicalDisplayId displayId,
|
||||
int32_t configId) override;
|
||||
|
||||
void scheduleCallbacks();
|
||||
|
||||
@@ -164,6 +166,13 @@ void Choreographer::dispatchHotplug(nsecs_t, PhysicalDisplayId displayId, bool c
|
||||
this, displayId, toString(connected));
|
||||
}
|
||||
|
||||
void Choreographer::dispatchConfigChanged(nsecs_t, PhysicalDisplayId displayId,
|
||||
int32_t configId) {
|
||||
ALOGV("choreographer %p ~ received config changed event (displayId=%"
|
||||
ANDROID_PHYSICAL_DISPLAY_ID_FORMAT ", configId=%s), ignoring.",
|
||||
this, displayId, toString(configId));
|
||||
}
|
||||
|
||||
void Choreographer::handleMessage(const Message& message) {
|
||||
switch (message.what) {
|
||||
case MSG_SCHEDULE_CALLBACKS:
|
||||
|
||||
Reference in New Issue
Block a user