Revert "MotionEvent: add test API to identify resampled events" Revert submission 24705139-VirtualTouchscreenTest-ignore-resamples Reason for revert: the changes don't fix the flakes and may be causing more Reverted changes: /q/submissionid:24705139-VirtualTouchscreenTest-ignore-resamples Bug: 292544797 Change-Id: Icc41039051e77291ee785b36075d13bb14c7955c
diff --git a/core/api/test-current.txt b/core/api/test-current.txt index a4cc446..40c6fa8 100644 --- a/core/api/test-current.txt +++ b/core/api/test-current.txt
@@ -3506,10 +3506,6 @@ field public static final int FLAG_IS_ACCESSIBILITY_EVENT = 2048; // 0x800 } - public static final class MotionEvent.PointerCoords { - method public boolean isResampled(); - } - @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD}) public @interface RemotableViewMethod { method public abstract String asyncImpl() default ""; }
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index 776eeda..cdf5eec3 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java
@@ -18,6 +18,7 @@ import static android.os.IInputConstants.INPUT_EVENT_FLAG_IS_ACCESSIBILITY_EVENT; import static android.view.Display.DEFAULT_DISPLAY; + import static java.lang.annotation.RetentionPolicy.SOURCE; import android.annotation.IntDef; @@ -4360,17 +4361,6 @@ public boolean isResampled; /** - * Returns true if this pointer coords object was generated by resampling, rather than from - * an actual input event from the device at this time. - * - * @hide - */ - @TestApi - public boolean isResampled() { - return isResampled; - } - - /** * Clears the contents of this object. * Resets all axes to zero. */