Loading services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java +9 −2 Original line number Diff line number Diff line Loading @@ -414,8 +414,15 @@ public class TouchExplorer extends BaseEventStreamTransformation mSendTouchExplorationEndDelayed.forceSendAndRemove(); } if (!Flags.pointerUpMotionEventInTouchExploration()) { // Announce the end of a new touch interaction. mDispatcher.sendAccessibilityEvent(TYPE_TOUCH_INTERACTION_END); } else { // If there are no pointers left on screen, announce the end of the touch interaction. if (mReceivedPointerTracker.getReceivedPointerDownCount() == 0) { mDispatcher.sendAccessibilityEvent(TYPE_TOUCH_INTERACTION_END); } } mSendTouchInteractionEndDelayed.cancel(); // Try to use the standard accessibility API to click if (!mAms.performActionOnAccessibilityFocusedItem( Loading services/tests/servicestests/src/com/android/server/accessibility/gestures/TouchExplorerTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -360,6 +360,7 @@ public class TouchExplorerTest { public void upEventWhenInTwoFingerMove_clearsState() { goFromStateClearTo(STATE_MOVING_2FINGERS); send(pointerUpEvent()); send(upEvent()); assertState(STATE_CLEAR); } Loading Loading
services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java +9 −2 Original line number Diff line number Diff line Loading @@ -414,8 +414,15 @@ public class TouchExplorer extends BaseEventStreamTransformation mSendTouchExplorationEndDelayed.forceSendAndRemove(); } if (!Flags.pointerUpMotionEventInTouchExploration()) { // Announce the end of a new touch interaction. mDispatcher.sendAccessibilityEvent(TYPE_TOUCH_INTERACTION_END); } else { // If there are no pointers left on screen, announce the end of the touch interaction. if (mReceivedPointerTracker.getReceivedPointerDownCount() == 0) { mDispatcher.sendAccessibilityEvent(TYPE_TOUCH_INTERACTION_END); } } mSendTouchInteractionEndDelayed.cancel(); // Try to use the standard accessibility API to click if (!mAms.performActionOnAccessibilityFocusedItem( Loading
services/tests/servicestests/src/com/android/server/accessibility/gestures/TouchExplorerTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -360,6 +360,7 @@ public class TouchExplorerTest { public void upEventWhenInTwoFingerMove_clearsState() { goFromStateClearTo(STATE_MOVING_2FINGERS); send(pointerUpEvent()); send(upEvent()); assertState(STATE_CLEAR); } Loading