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

Commit a39bb8f9 authored by Taran Singh's avatar Taran Singh
Browse files

Limit gestureType API to testAPI

GestureType is public but it doesn't need to be. Reducing visibility to
testApi.

Bug: 249271636
Test: atest CtsInputMethodTestCases
Change-Id: I7f70dd0c0b9effc762fc0923f71d6e35e95af83f
parent 947220af
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -54488,14 +54488,6 @@ package android.view.inputmethod {
  public abstract class HandwritingGesture {
    method @Nullable public final String getFallbackText();
    field public static final int GESTURE_TYPE_DELETE = 4; // 0x4
    field public static final int GESTURE_TYPE_DELETE_RANGE = 64; // 0x40
    field public static final int GESTURE_TYPE_INSERT = 2; // 0x2
    field public static final int GESTURE_TYPE_JOIN_OR_SPLIT = 16; // 0x10
    field public static final int GESTURE_TYPE_NONE = 0; // 0x0
    field public static final int GESTURE_TYPE_REMOVE_SPACE = 8; // 0x8
    field public static final int GESTURE_TYPE_SELECT = 1; // 0x1
    field public static final int GESTURE_TYPE_SELECT_RANGE = 32; // 0x20
    field public static final int GRANULARITY_CHARACTER = 2; // 0x2
    field public static final int GRANULARITY_WORD = 1; // 0x1
  }
+8 −0
Original line number Diff line number Diff line
@@ -3233,6 +3233,14 @@ package android.view.inputmethod {

  public abstract class HandwritingGesture {
    method public final int getGestureType();
    field public static final int GESTURE_TYPE_DELETE = 4; // 0x4
    field public static final int GESTURE_TYPE_DELETE_RANGE = 64; // 0x40
    field public static final int GESTURE_TYPE_INSERT = 2; // 0x2
    field public static final int GESTURE_TYPE_JOIN_OR_SPLIT = 16; // 0x10
    field public static final int GESTURE_TYPE_NONE = 0; // 0x0
    field public static final int GESTURE_TYPE_REMOVE_SPACE = 8; // 0x8
    field public static final int GESTURE_TYPE_SELECT = 1; // 0x1
    field public static final int GESTURE_TYPE_SELECT_RANGE = 32; // 0x20
  }

  public final class InlineSuggestion implements android.os.Parcelable {
+25 −3
Original line number Diff line number Diff line
@@ -82,38 +82,60 @@ public abstract class HandwritingGesture {
    @IntDef({GRANULARITY_CHARACTER, GRANULARITY_WORD})
    @interface Granularity {}

    /** Undefined gesture type. */
    /**
     * Undefined gesture type.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_NONE = 0x0000;

    /**
     * Gesture of type {@link SelectGesture} to select an area of text.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_SELECT = 0x0001;

    /**
     * Gesture of type {@link InsertGesture} to insert text at a designated point.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_INSERT = 1 << 1;

    /**
     * Gesture of type {@link DeleteGesture} to delete an area of text.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_DELETE = 1 << 2;

    /** Gesture of type {@link RemoveSpaceGesture} to remove whitespace from text. */
    /**
     * Gesture of type {@link RemoveSpaceGesture} to remove whitespace from text.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_REMOVE_SPACE = 1 << 3;

    /** Gesture of type {@link JoinOrSplitGesture} to join or split text. */
    /**
     * Gesture of type {@link JoinOrSplitGesture} to join or split text.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_JOIN_OR_SPLIT = 1 << 4;

    /**
     * Gesture of type {@link SelectRangeGesture} to select range of text.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_SELECT_RANGE = 1 << 5;

    /**
     * Gesture of type {@link DeleteRangeGesture} to delete range of text.
     * @hide
     */
    @TestApi
    public static final int GESTURE_TYPE_DELETE_RANGE = 1 << 6;

    /**