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

Commit b7270392 authored by Minche Li's avatar Minche Li Committed by Automerger Merge Worker
Browse files

Merge "Documentation cleanup for AccessibilityNodeInfo.ExtraRenderingInfo"...

Merge "Documentation cleanup for AccessibilityNodeInfo.ExtraRenderingInfo" into rvc-dev am: e85c54f3 am: 40d61d7f am: 6752577d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745990

Change-Id: I5efbe3aeda26ef4fb8e1014ebb967c4ce94bc4b5
parents 275e21f1 6752577d
Loading
Loading
Loading
Loading
+13 −10
Original line number Original line Diff line number Diff line
@@ -635,7 +635,7 @@ public class AccessibilityNodeInfo implements Parcelable {
            "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH";
            "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH";


    /**
    /**
     * Key used to request extra data for accessibility scanning tool's purposes.
     * Key used to request extra data for the rendering information.
     * The key requests that a {@link AccessibilityNodeInfo.ExtraRenderingInfo} be added to this
     * The key requests that a {@link AccessibilityNodeInfo.ExtraRenderingInfo} be added to this
     * info. This request is made with {@link #refreshWithExtraData(String, Bundle)} without
     * info. This request is made with {@link #refreshWithExtraData(String, Bundle)} without
     * argument.
     * argument.
@@ -5847,12 +5847,15 @@ public class AccessibilityNodeInfo implements Parcelable {
        }
        }


        /**
        /**
         * Gets the size object containing the height and the width of layout params if the node is
         * Gets the size object containing the height and the width of
         * a {@link ViewGroup} or a {@link TextView}, or null otherwise. Useful for accessibility
         * {@link android.view.ViewGroup.LayoutParams}  if the node is a {@link ViewGroup} or
         * scanning tool to understand whether the text is scalable and fits the view or not.
         * a {@link TextView}, or null otherwise. Useful for some accessibility services to
         * understand whether the text is scalable and fits the view or not.
         *
         *
         * @return a {@link Size} stores layout height and layout width of the view,
         * @return a {@link Size} stores layout height and layout width of the view, or null
         *         or null otherwise.
         * otherwise. And the size value may be in pixels,
         * {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT},
         * or {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
         */
         */
        public @Nullable Size getLayoutSize() {
        public @Nullable Size getLayoutSize() {
            return mLayoutSize;
            return mLayoutSize;
@@ -5870,9 +5873,9 @@ public class AccessibilityNodeInfo implements Parcelable {
        }
        }


        /**
        /**
         * Gets the text size if the node is a {@link TextView}, or -1 otherwise.  Useful for
         * Gets the text size if the node is a {@link TextView}, or -1 otherwise. Useful for some
         * accessibility scanning tool to understand whether the text is scalable and fits the view
         * accessibility services to understand whether the text is scalable and fits the view or
         * or not.
         * not.
         *
         *
         * @return the text size of a {@code TextView}, or -1 otherwise.
         * @return the text size of a {@code TextView}, or -1 otherwise.
         */
         */
@@ -5893,7 +5896,7 @@ public class AccessibilityNodeInfo implements Parcelable {
        /**
        /**
         * Gets the text size unit if the node is a {@link TextView}, or -1 otherwise.
         * Gets the text size unit if the node is a {@link TextView}, or -1 otherwise.
         * Text size returned from {@link #getTextSizeInPx} in raw pixels may scale by factors and
         * Text size returned from {@link #getTextSizeInPx} in raw pixels may scale by factors and
         * convert from other units. Useful for accessibility scanning tool to understand whether
         * convert from other units. Useful for some accessibility services to understand whether
         * the text is scalable and fits the view or not.
         * the text is scalable and fits the view or not.
         *
         *
         * @return the text size unit which type is {@link TypedValue#TYPE_DIMENSION} of a
         * @return the text size unit which type is {@link TypedValue#TYPE_DIMENSION} of a