diff options
| -rw-r--r-- | core/jni/android_view_InputEventReceiver.cpp | 7 | ||||
| -rw-r--r-- | core/jni/android_view_InputEventSender.cpp | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/core/jni/android_view_InputEventReceiver.cpp b/core/jni/android_view_InputEventReceiver.cpp index 9501cf225293..198814a6417e 100644 --- a/core/jni/android_view_InputEventReceiver.cpp +++ b/core/jni/android_view_InputEventReceiver.cpp @@ -118,8 +118,13 @@ status_t NativeInputEventReceiver::finishInputEvent(uint32_t seq, bool handled) int NativeInputEventReceiver::handleEvent(int receiveFd, int events, void* data) { if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) { - ALOGE("channel '%s' ~ Publisher closed input channel or an error occurred. " +#if DEBUG_DISPATCH_CYCLE + // This error typically occurs when the publisher has closed the input channel + // as part of removing a window or finishing an IME session, in which case + // the consumer will soon be disposed as well. + ALOGD("channel '%s' ~ Publisher closed input channel or an error occurred. " "events=0x%x", getInputChannelName(), events); +#endif return 0; // remove the callback } diff --git a/core/jni/android_view_InputEventSender.cpp b/core/jni/android_view_InputEventSender.cpp index bd1d1039906a..2306cf238e3c 100644 --- a/core/jni/android_view_InputEventSender.cpp +++ b/core/jni/android_view_InputEventSender.cpp @@ -151,8 +151,13 @@ status_t NativeInputEventSender::sendMotionEvent(uint32_t seq, const MotionEvent int NativeInputEventSender::handleEvent(int receiveFd, int events, void* data) { if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) { - ALOGE("channel '%s' ~ Consumer closed input channel or an error occurred. " +#if DEBUG_DISPATCH_CYCLE + // This error typically occurs when the consumer has closed the input channel + // as part of finishing an IME session, in which case the publisher will + // soon be disposed as well. + ALOGD("channel '%s' ~ Consumer closed input channel or an error occurred. " "events=0x%x", getInputChannelName(), events); +#endif return 0; // remove the callback } |