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

Commit a7bc837e authored by Evan Rosky's avatar Evan Rosky Committed by Automerger Merge Worker
Browse files

Merge "plumb display orientation through motionevent for getRaw compatibility"...

Merge "plumb display orientation through motionevent for getRaw compatibility" into sc-v2-dev am: 7dae51ac am: bef82bc5

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15179427

Change-Id: I56530e1b682863f9d52bd8f1f4e7a76b089ee644
parents 3316a2e0 bef82bc5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ status_t NativeInputEventSender::sendMotionEvent(uint32_t seq, const MotionEvent
                                                   event->getYPrecision(),
                                                   event->getRawXCursorPosition(),
                                                   event->getRawYCursorPosition(),
                                                   event->getDisplayOrientation(),
                                                   event->getDisplaySize().x,
                                                   event->getDisplaySize().y, event->getDownTime(),
                                                   event->getHistoricalEventTime(i),
+3 −3
Original line number Diff line number Diff line
@@ -397,9 +397,9 @@ static jlong android_view_MotionEvent_nativeInitialize(
                      flags, edgeFlags, metaState, buttonState,
                      static_cast<MotionClassification>(classification), transform, xPrecision,
                      yPrecision, AMOTION_EVENT_INVALID_CURSOR_POSITION,
                      AMOTION_EVENT_INVALID_CURSOR_POSITION, INVALID_DISPLAY_SIZE,
                      INVALID_DISPLAY_SIZE, downTimeNanos, eventTimeNanos, pointerCount,
                      pointerProperties, rawPointerCoords);
                      AMOTION_EVENT_INVALID_CURSOR_POSITION, ui::Transform::ROT_0,
                      INVALID_DISPLAY_SIZE, INVALID_DISPLAY_SIZE, downTimeNanos, eventTimeNanos,
                      pointerCount, pointerProperties, rawPointerCoords);

    return reinterpret_cast<jlong>(event.release());
}