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

Commit c2e1ba6a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[22/n Dispatcher Refactor] resolving nits from previous review" into main

parents c584628b c884b789
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5806,7 +5806,7 @@ bool InputDispatcher::transferTouchGesture(const sp<IBinder>& fromToken, const s
            return false;
        }

        const auto [toWindowHandle, deviceId, pointers, cancellations, pointerDowns] =
        const auto& [toWindowHandle, deviceId, pointers, cancellations, pointerDowns] =
                result.value();

        for (const auto& cancellationArgs : cancellations) {
@@ -6252,14 +6252,14 @@ status_t InputDispatcher::pilferPointersLocked(const sp<IBinder>& token) {
        return BAD_VALUE;
    }

    ScopedSyntheticEventTracer traceContext(mTracer);
    CancelationOptions options(CancelationOptions::Mode::CANCEL_POINTER_EVENTS,
                               "input channel stole pointer stream", traceContext.getTracker());
    const auto result = mTouchStates.pilferPointers(token, *requestingConnection);
    if (!result.ok()) {
        return result.error().code();
    }

    ScopedSyntheticEventTracer traceContext(mTracer);
    CancelationOptions options(CancelationOptions::Mode::CANCEL_POINTER_EVENTS,
                               "input channel stole pointer stream", traceContext.getTracker());
    const auto cancellations = *result;
    for (const auto& cancellationArgs : cancellations) {
        LOG_ALWAYS_FATAL_IF(cancellationArgs.mode !=