diff options
| author | Ameer Armaly <aarmaly@google.com> | 2019-05-02 15:18:09 -0700 |
|---|---|---|
| committer | Ameer Armaly <aarmaly@google.com> | 2019-05-21 12:48:58 -0700 |
| commit | 886a7961bea051c2b3f3dbf09ba4cd7067240840 (patch) | |
| tree | 1b2464377bc24c00bfcc1bf80ac7fb72467d4b5c /core/java/android/view/MotionEvent.java | |
| parent | 28033c13a8913853250c4fb2ef6a547e89f84173 (diff) | |
Use AccessibilityManagerService to deliver double tap and double tap and hold rather than touch events.
Test: cts-tradefed run singleCommand cts -d --module CtsAccessibilityServiceTestCases
Change-Id: I84bba65ac16e27e9c564b23a0c27d48245eef447
Diffstat (limited to 'core/java/android/view/MotionEvent.java')
| -rw-r--r-- | core/java/android/view/MotionEvent.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index 86e94f4da170..bff3a1dba3f4 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java @@ -487,23 +487,6 @@ public final class MotionEvent extends InputEvent implements Parcelable { public static final int FLAG_TAINTED = 0x80000000; /** - * Private flag indicating that this event was synthesized by the system and - * should be delivered to the accessibility focused view first. When being - * dispatched such an event is not handled by predecessors of the accessibility - * focused view and after the event reaches that view the flag is cleared and - * normal event dispatch is performed. This ensures that the platform can click - * on any view that has accessibility focus which is semantically equivalent to - * asking the view to perform a click accessibility action but more generic as - * views not implementing click action correctly can still be activated. - * - * @hide - * @see #isTargetAccessibilityFocus() - * @see #setTargetAccessibilityFocus(boolean) - */ - public static final int FLAG_TARGET_ACCESSIBILITY_FOCUS = 0x40000000; - - - /** * Flag indicating the motion event intersected the top edge of the screen. */ public static final int EDGE_TOP = 0x00000001; @@ -2121,20 +2104,6 @@ public final class MotionEvent extends InputEvent implements Parcelable { } /** @hide */ - public final boolean isTargetAccessibilityFocus() { - final int flags = getFlags(); - return (flags & FLAG_TARGET_ACCESSIBILITY_FOCUS) != 0; - } - - /** @hide */ - public final void setTargetAccessibilityFocus(boolean targetsFocus) { - final int flags = getFlags(); - nativeSetFlags(mNativePtr, targetsFocus - ? flags | FLAG_TARGET_ACCESSIBILITY_FOCUS - : flags & ~FLAG_TARGET_ACCESSIBILITY_FOCUS); - } - - /** @hide */ public final boolean isHoverExitPending() { final int flags = getFlags(); return (flags & FLAG_HOVER_EXIT_PENDING) != 0; |
