Loading services/java/com/android/server/accessibility/AccessibilityInputFilter.java +8 −5 Original line number Diff line number Diff line Loading @@ -56,6 +56,11 @@ public class AccessibilityInputFilter extends InputFilter { * @param policyFlags The policy flags associated with the event. */ public void clear(MotionEvent event, int policyFlags); /** * Requests that the explorer clears its internal state. */ public void clear(); } private TouchExplorer mTouchExplorer; Loading @@ -71,6 +76,7 @@ public class AccessibilityInputFilter extends InputFilter { if (DEBUG) { Slog.d(TAG, "Accessibility input filter installed."); } mTouchExplorer = new TouchExplorer(this, mContext); super.onInstalled(); } Loading @@ -79,6 +85,7 @@ public class AccessibilityInputFilter extends InputFilter { if (DEBUG) { Slog.d(TAG, "Accessibility input filter uninstalled."); } mTouchExplorer.clear(); super.onUninstalled(); } Loading @@ -93,11 +100,7 @@ public class AccessibilityInputFilter extends InputFilter { int deviceId = event.getDeviceId(); if (mTouchscreenSourceDeviceId != deviceId) { mTouchscreenSourceDeviceId = deviceId; if (mTouchExplorer != null) { mTouchExplorer.clear(motionEvent, policyFlags); } else { mTouchExplorer = new TouchExplorer(this, mContext); } } if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) != 0) { mTouchExplorer.onMotionEvent(motionEvent, policyFlags); Loading services/java/com/android/server/accessibility/TouchExplorer.java +2 −1 Original line number Diff line number Diff line Loading @@ -858,8 +858,9 @@ public class TouchExplorer implements Explorer { /** * Clears the internal state of this explorer. */ private void clear() { public void clear() { mSendHoverDelayed.remove(); mPerformLongPressDelayed.remove(); mPointerTracker.clear(); mLastTouchExploreEvent = null; mCurrentState = STATE_TOUCH_EXPLORING; Loading Loading
services/java/com/android/server/accessibility/AccessibilityInputFilter.java +8 −5 Original line number Diff line number Diff line Loading @@ -56,6 +56,11 @@ public class AccessibilityInputFilter extends InputFilter { * @param policyFlags The policy flags associated with the event. */ public void clear(MotionEvent event, int policyFlags); /** * Requests that the explorer clears its internal state. */ public void clear(); } private TouchExplorer mTouchExplorer; Loading @@ -71,6 +76,7 @@ public class AccessibilityInputFilter extends InputFilter { if (DEBUG) { Slog.d(TAG, "Accessibility input filter installed."); } mTouchExplorer = new TouchExplorer(this, mContext); super.onInstalled(); } Loading @@ -79,6 +85,7 @@ public class AccessibilityInputFilter extends InputFilter { if (DEBUG) { Slog.d(TAG, "Accessibility input filter uninstalled."); } mTouchExplorer.clear(); super.onUninstalled(); } Loading @@ -93,11 +100,7 @@ public class AccessibilityInputFilter extends InputFilter { int deviceId = event.getDeviceId(); if (mTouchscreenSourceDeviceId != deviceId) { mTouchscreenSourceDeviceId = deviceId; if (mTouchExplorer != null) { mTouchExplorer.clear(motionEvent, policyFlags); } else { mTouchExplorer = new TouchExplorer(this, mContext); } } if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) != 0) { mTouchExplorer.onMotionEvent(motionEvent, policyFlags); Loading
services/java/com/android/server/accessibility/TouchExplorer.java +2 −1 Original line number Diff line number Diff line Loading @@ -858,8 +858,9 @@ public class TouchExplorer implements Explorer { /** * Clears the internal state of this explorer. */ private void clear() { public void clear() { mSendHoverDelayed.remove(); mPerformLongPressDelayed.remove(); mPointerTracker.clear(); mLastTouchExploreEvent = null; mCurrentState = STATE_TOUCH_EXPLORING; Loading