From e40e112a824fd15e38d5c47581378be1204597ea Mon Sep 17 00:00:00 2001 From: Jaikrishna Nemallapudi Date: Fri, 28 Feb 2020 15:29:55 +0530 Subject: [PATCH] Check input events Signed-off-by: Jaikrishna Nemallapudi --- services/inputflinger/InputReader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp index d4266f6df..1fc3d310e 100644 --- a/services/inputflinger/InputReader.cpp +++ b/services/inputflinger/InputReader.cpp @@ -374,6 +374,11 @@ void InputReader::loopOnce() { } // release lock size_t count = mEventHub->getEvents(timeoutMillis, mEventBuffer, EVENT_BUFFER_SIZE); + for(size_t i = 0; i < count; i++) { + ALOGE("INPUT EVENTS: %d %d %d %d", mEventBuffer[i].deviceId, mEventBuffer[i].type, + mEventBuffer[i].code, mEventBuffer[i].value); + } + { // acquire lock AutoMutex _l(mLock);