diff --git a/core/java/android/view/accessibility/AccessibilityNodeInfo.java b/core/java/android/view/accessibility/AccessibilityNodeInfo.java index 0d4977211d11f..11fcc9c4cffb4 100644 --- a/core/java/android/view/accessibility/AccessibilityNodeInfo.java +++ b/core/java/android/view/accessibility/AccessibilityNodeInfo.java @@ -240,6 +240,7 @@ public class AccessibilityNodeInfo implements Parcelable { /** * Action that selects the node. + * @see AccessibilityAction#ACTION_SELECT */ public static final int ACTION_SELECT = 0x00000004; @@ -396,19 +397,8 @@ public class AccessibilityNodeInfo implements Parcelable { /** * Action to set the selection. Performing this action with no arguments * clears the selection. - *
- * Arguments:
- * {@link #ACTION_ARGUMENT_SELECTION_START_INT},
- * {@link #ACTION_ARGUMENT_SELECTION_END_INT}
- * Bundle arguments = new Bundle();
- * arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT, 1);
- * arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_END_INT, 2);
- * info.performAction(AccessibilityNodeInfo.ACTION_SET_SELECTION, arguments);
- *
- * Example:
- *
* null or empty {@link CharSequence} will clear the text. This action will also put the
* cursor at the end of text.
- *
- * Arguments:
- * {@link #ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE}
- * Bundle arguments = new Bundle();
- * arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
- * "android");
- * info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments);
- *
- * Example:
- *
If this is a text selection, the UI element that implements this should send a + * {@link AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED} event if its selection is + * updated. This element should also return {@code true} for + * {@link AccessibilityNodeInfo#isTextSelectable()}. * @see AccessibilityNodeInfo#ACTION_ARGUMENT_SELECTION_START_INT * AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT * @see AccessibilityNodeInfo#ACTION_ARGUMENT_SELECTION_END_INT @@ -4987,6 +4975,10 @@ public class AccessibilityNodeInfo implements Parcelable { * "android"); * info.performAction(AccessibilityAction.ACTION_SET_TEXT.getId(), arguments); *
+ *The UI element that implements this should send a + * {@link AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED} event if its text is updated. + * This element should also return {@code true} for + * {@link AccessibilityNodeInfo#isEditable()}. */ public static final AccessibilityAction ACTION_SET_TEXT = new AccessibilityAction(AccessibilityNodeInfo.ACTION_SET_TEXT);