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

Commit ee7d6ded authored by Katie's avatar Katie
Browse files

Update AccessibilityNodeInfo#setBoundsInWindow docs

AccessibilityNodeInfo#setBoundsInWindow returns coordinates
unscaled by full-screen magnification configuration in Views
like the Settings app.

Manually checked #setBoundsInWindow with and without
magnification from an Accessibility service.

Test: ag/29910835
Bug: b/373862605
Flag: DOCS_ONLY
Change-Id: I51baf8a80e69d4e8c57e69c1a74d45a4bcfd37b6
parent 35dbe694
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2288,10 +2288,7 @@ public class AccessibilityNodeInfo implements Parcelable {
    /**
     * Gets the node bounds in window coordinates.
     * <p>
     * When magnification is enabled, the bounds in window are scaled up by magnification scale
     * and the positions are also adjusted according to the offset of magnification viewport.
     * For example, it returns Rect(-180, -180, 0, 0) for original bounds Rect(10, 10, 100, 100),
     * when the magnification scale is 2 and offsets for X and Y are both 200.
     *   The node bounds returned are not scaled by magnification.
     * <p/>
     *
     * @param outBounds The output node bounds.