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

Commit be286362 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Add missing motionevent flags to IntDef

This will help keep them in sync with the native code, and will allow
them to show up correctly in the traces.

Bug: none
Test: none
Flag: EXEMPT refactor

Change-Id: I92cf24d88bbd75725ebd0743636f814e2bf8274e
parent 4caf1ac0
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -582,6 +582,26 @@ public final class MotionEvent extends InputEvent implements Parcelable {
    public static final int FLAG_TARGET_ACCESSIBILITY_FOCUS =
            MotionEventFlag.TARGET_ACCESSIBILITY_FOCUS;

    /**
     * This flag is not used in Java, but is added here for completeness / so that it gets properly
     * displayed in tracing tools.
     * @deprecated This flag is not used in Java.
     * @hide
     */
    @Deprecated
    public static final int FLAG_SUPPORTS_ORIENTATION =
            MotionEventFlag.PRIVATE_FLAG_SUPPORTS_ORIENTATION;

    /**
     * This flag is not used in Java, but is added here for completeness / so that it gets properly
     * displayed in tracing tools.
     * @deprecated This flag is not used in Java.
     * @hide
     */
    @Deprecated
    public static final int FLAG_SUPPORTS_DIRECTIONAL_ORIENTATION =
            MotionEventFlag.PRIVATE_FLAG_SUPPORTS_DIRECTIONAL_ORIENTATION;

    /** @hide */
    @IntDef(flag = true, prefix = { "FLAG_" }, value = {
            FLAG_WINDOW_IS_OBSCURED,