Loading services/accessibility/accessibility.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -162,16 +162,6 @@ flag { bug: "409330539" } flag { name: "event_dispatcher_raw_event" namespace: "accessibility" description: "Fixes EventDispatcher#sendMotionEvent callers to properly provide raw event" bug: "385812366" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "fix_drag_pointer_when_ending_drag" namespace: "accessibility" Loading services/accessibility/java/com/android/server/accessibility/gestures/EventDispatcher.java +3 −7 Original line number Diff line number Diff line Loading @@ -310,8 +310,7 @@ public class EventDispatcher { sendMotionEvent( prototype, action, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading Loading @@ -341,8 +340,7 @@ public class EventDispatcher { sendMotionEvent( event, action, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading Loading @@ -409,9 +407,7 @@ public class EventDispatcher { continue; } final int action = computeInjectionAction(MotionEvent.ACTION_POINTER_UP, i); sendMotionEvent(prototype, action, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), sendMotionEvent(prototype, action, mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); pointerIdBits &= ~(1 << pointerId); } Loading services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java +4 −7 Original line number Diff line number Diff line Loading @@ -504,14 +504,13 @@ public class TouchExplorer extends BaseEventStreamTransformation // We have just decided that the user is touch, // exploring so start sending events. mSendHoverEnterAndMoveDelayed.addEvent(event, Flags.eventDispatcherRawEvent() ? rawEvent : mState.getLastReceivedEvent()); mSendHoverEnterAndMoveDelayed.addEvent(event, rawEvent); mSendHoverEnterAndMoveDelayed.forceSendAndRemove(); mSendHoverExitDelayed.cancel(); mDispatcher.sendMotionEvent( event, ACTION_HOVER_MOVE, Flags.eventDispatcherRawEvent() ? rawEvent : event, rawEvent, pointerIdBits, policyFlags); return true; Loading Loading @@ -1129,8 +1128,7 @@ public class TouchExplorer extends BaseEventStreamTransformation mDispatcher.sendMotionEvent( event, ACTION_HOVER_EXIT, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading @@ -1152,8 +1150,7 @@ public class TouchExplorer extends BaseEventStreamTransformation mDispatcher.sendMotionEvent( event, ACTION_HOVER_ENTER, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading services/tests/servicestests/src/com/android/server/accessibility/gestures/TouchExplorerTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -469,7 +469,6 @@ public class TouchExplorerTest { } @Test @EnableFlags(Flags.FLAG_EVENT_DISPATCHER_RAW_EVENT) public void testSendHoverExitIfNeeded_lastSentHoverEnter_sendsHoverExit_withCorrectRawEvent() { final MotionEvent rawEvent = downEvent(); final MotionEvent modifiedEvent = hoverEnterEvent(); Loading Loading
services/accessibility/accessibility.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -162,16 +162,6 @@ flag { bug: "409330539" } flag { name: "event_dispatcher_raw_event" namespace: "accessibility" description: "Fixes EventDispatcher#sendMotionEvent callers to properly provide raw event" bug: "385812366" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "fix_drag_pointer_when_ending_drag" namespace: "accessibility" Loading
services/accessibility/java/com/android/server/accessibility/gestures/EventDispatcher.java +3 −7 Original line number Diff line number Diff line Loading @@ -310,8 +310,7 @@ public class EventDispatcher { sendMotionEvent( prototype, action, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading Loading @@ -341,8 +340,7 @@ public class EventDispatcher { sendMotionEvent( event, action, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading Loading @@ -409,9 +407,7 @@ public class EventDispatcher { continue; } final int action = computeInjectionAction(MotionEvent.ACTION_POINTER_UP, i); sendMotionEvent(prototype, action, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), sendMotionEvent(prototype, action, mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); pointerIdBits &= ~(1 << pointerId); } Loading
services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java +4 −7 Original line number Diff line number Diff line Loading @@ -504,14 +504,13 @@ public class TouchExplorer extends BaseEventStreamTransformation // We have just decided that the user is touch, // exploring so start sending events. mSendHoverEnterAndMoveDelayed.addEvent(event, Flags.eventDispatcherRawEvent() ? rawEvent : mState.getLastReceivedEvent()); mSendHoverEnterAndMoveDelayed.addEvent(event, rawEvent); mSendHoverEnterAndMoveDelayed.forceSendAndRemove(); mSendHoverExitDelayed.cancel(); mDispatcher.sendMotionEvent( event, ACTION_HOVER_MOVE, Flags.eventDispatcherRawEvent() ? rawEvent : event, rawEvent, pointerIdBits, policyFlags); return true; Loading Loading @@ -1129,8 +1128,7 @@ public class TouchExplorer extends BaseEventStreamTransformation mDispatcher.sendMotionEvent( event, ACTION_HOVER_EXIT, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading @@ -1152,8 +1150,7 @@ public class TouchExplorer extends BaseEventStreamTransformation mDispatcher.sendMotionEvent( event, ACTION_HOVER_ENTER, Flags.eventDispatcherRawEvent() ? mState.getLastReceivedRawEvent() : mState.getLastReceivedEvent(), mState.getLastReceivedRawEvent(), pointerIdBits, policyFlags); } Loading
services/tests/servicestests/src/com/android/server/accessibility/gestures/TouchExplorerTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -469,7 +469,6 @@ public class TouchExplorerTest { } @Test @EnableFlags(Flags.FLAG_EVENT_DISPATCHER_RAW_EVENT) public void testSendHoverExitIfNeeded_lastSentHoverEnter_sendsHoverExit_withCorrectRawEvent() { final MotionEvent rawEvent = downEvent(); final MotionEvent modifiedEvent = hoverEnterEvent(); Loading