Use Display Events from DisplayEventType Enum class

Display Events are now defined as part of the new
DisplayEventType Enum class in android namespace.
Use it from there instead of DisplayEventReceiver enum.

Bug: 393133868
Test: Manual
Flag: com.android.graphics.surfaceflinger.flags.display_config_error_hal

Change-Id: Idcd2bc3f0ab532a3e5c86e52e59367c22351b994
Signed-off-by: Manasi Navare <navaremanasi@google.com>
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index b43905b..844e52c 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -441,7 +441,7 @@
             numEvents = mBootAnimation->mDisplayEventReceiver->getEvents(buffer, kBufferSize);
             for (size_t i = 0; i < static_cast<size_t>(numEvents); i++) {
                 const auto& event = buffer[i];
-                if (event.header.type == DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG) {
+                if (event.header.type == DisplayEventType::DISPLAY_EVENT_HOTPLUG) {
                     SLOGV("Hotplug received");
 
                     if (!event.hotplug.connected) {