Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc5199f3 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13738215 from 8fa1c4c4 to 25Q4-release

Change-Id: I638b3ce126fb60c9a9d5c0bcf7c78908544c4997
parents 8565a2ca 8fa1c4c4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@

#include <math.h>

#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <android/input.h>
#include <com_android_input_flags.h>
@@ -1490,6 +1491,7 @@ std::list<NotifyArgs> TouchInputMapper::cookAndDispatch(nsecs_t when, nsecs_t re
    bool consumed;
    out += consumeRawTouches(when, readTime, policyFlags, consumed /*byref*/);
    if (consumed) {
        LOG_IF(INFO, debugRawEvents()) << "Touch consumed by consumeRawTouches, eventTime=" << when;
        mCurrentRawState.rawPointerData.clear();
    }

@@ -1730,6 +1732,7 @@ std::list<NotifyArgs> TouchInputMapper::consumeRawTouches(nsecs_t when, nsecs_t
        }
        if (!hoveringPointersInFrame) {
            // All hovering pointers are outside the physical frame.
            LOG(WARNING) << "Dropping hover, all pointers are outside the physical frame";
            outConsumed = true;
            return out;
        }
@@ -1768,6 +1771,8 @@ std::list<NotifyArgs> TouchInputMapper::consumeRawTouches(nsecs_t when, nsecs_t
                    }
                }
            }
            LOG(WARNING) << "Dropping pointer " << id << " at (" << pointer.x << ", " << pointer.y
                         << "), it is outside of the physical frame";
            outConsumed = true;
            return out;
        }