Merge "Revert "Add reporting to monitor apps incorrectly using getRaw"" into sc-dev
This commit is contained in:
@@ -222,14 +222,6 @@ public final class InputManager {
|
|||||||
@ChangeId
|
@ChangeId
|
||||||
public static final long BLOCK_FLAG_SLIPPERY = android.os.IInputConstants.BLOCK_FLAG_SLIPPERY;
|
public static final long BLOCK_FLAG_SLIPPERY = android.os.IInputConstants.BLOCK_FLAG_SLIPPERY;
|
||||||
|
|
||||||
/**
|
|
||||||
* Check whether apps are using MotionEvent.getRawX/Y. This is implementation-specific, and
|
|
||||||
* thus undefined for most 3p app usages.
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
@ChangeId
|
|
||||||
public static final long APP_USES_RAW_INPUT_COORDS = 179274888L;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Input Event Injection Synchronization Mode: None.
|
* Input Event Injection Synchronization Mode: None.
|
||||||
* Never blocks. Injection is asynchronous and is assumed always to be successful.
|
* Never blocks. Injection is asynchronous and is assumed always to be successful.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package android.view;
|
package android.view;
|
||||||
|
|
||||||
import static android.hardware.input.InputManager.APP_USES_RAW_INPUT_COORDS;
|
|
||||||
import static android.view.Display.DEFAULT_DISPLAY;
|
import static android.view.Display.DEFAULT_DISPLAY;
|
||||||
|
|
||||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||||
@@ -24,7 +23,6 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
|
|||||||
import android.annotation.IntDef;
|
import android.annotation.IntDef;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.TestApi;
|
import android.annotation.TestApi;
|
||||||
import android.compat.Compatibility;
|
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.graphics.Matrix;
|
import android.graphics.Matrix;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
@@ -2674,7 +2672,6 @@ public final class MotionEvent extends InputEvent implements Parcelable {
|
|||||||
* @see #AXIS_X
|
* @see #AXIS_X
|
||||||
*/
|
*/
|
||||||
public final float getRawX() {
|
public final float getRawX() {
|
||||||
Compatibility.reportUnconditionalChange(APP_USES_RAW_INPUT_COORDS);
|
|
||||||
return nativeGetRawAxisValue(mNativePtr, AXIS_X, 0, HISTORY_CURRENT);
|
return nativeGetRawAxisValue(mNativePtr, AXIS_X, 0, HISTORY_CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2688,7 +2685,6 @@ public final class MotionEvent extends InputEvent implements Parcelable {
|
|||||||
* @see #AXIS_Y
|
* @see #AXIS_Y
|
||||||
*/
|
*/
|
||||||
public final float getRawY() {
|
public final float getRawY() {
|
||||||
Compatibility.reportUnconditionalChange(APP_USES_RAW_INPUT_COORDS);
|
|
||||||
return nativeGetRawAxisValue(mNativePtr, AXIS_Y, 0, HISTORY_CURRENT);
|
return nativeGetRawAxisValue(mNativePtr, AXIS_Y, 0, HISTORY_CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2705,7 +2701,6 @@ public final class MotionEvent extends InputEvent implements Parcelable {
|
|||||||
* @see #AXIS_X
|
* @see #AXIS_X
|
||||||
*/
|
*/
|
||||||
public float getRawX(int pointerIndex) {
|
public float getRawX(int pointerIndex) {
|
||||||
Compatibility.reportUnconditionalChange(APP_USES_RAW_INPUT_COORDS);
|
|
||||||
return nativeGetRawAxisValue(mNativePtr, AXIS_X, pointerIndex, HISTORY_CURRENT);
|
return nativeGetRawAxisValue(mNativePtr, AXIS_X, pointerIndex, HISTORY_CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2722,7 +2717,6 @@ public final class MotionEvent extends InputEvent implements Parcelable {
|
|||||||
* @see #AXIS_Y
|
* @see #AXIS_Y
|
||||||
*/
|
*/
|
||||||
public float getRawY(int pointerIndex) {
|
public float getRawY(int pointerIndex) {
|
||||||
Compatibility.reportUnconditionalChange(APP_USES_RAW_INPUT_COORDS);
|
|
||||||
return nativeGetRawAxisValue(mNativePtr, AXIS_Y, pointerIndex, HISTORY_CURRENT);
|
return nativeGetRawAxisValue(mNativePtr, AXIS_Y, pointerIndex, HISTORY_CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user