Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e3e5d67 authored by Harry Cutts's avatar Harry Cutts
Browse files

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
parent a6701517
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3506,10 +3506,6 @@ package android.view {
    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 "";
  }
+1 −11
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.view;

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;
@@ -4359,17 +4360,6 @@ public final class MotionEvent extends InputEvent implements Parcelable {
         */
        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.